/* ==========================================================================
   GABRIEL BRIGGS — DESIGN SYSTEM 2026
   Réalisateur Vidéo & Photographe (Mobilité France entière)
   Pure CSS3 | Dark/Light Anamorphic Vignette | 60fps Micro-interactions
   ========================================================================== */

/* ---------- 1. TOKENS & DUAL THEME VARIABLES ---------- */
:root,
[data-theme="dark"] {
  --bg-center: #10192d;
  --bg-mid: #0b111e;
  --bg-edge: #05080f;

  --surface-1: rgba(20, 31, 54, 0.54);
  --surface-2: rgba(27, 42, 74, 0.72);
  --surface-card: rgba(13, 21, 38, 0.78);
  --surface-glass: rgba(10, 16, 30, 0.72);
  --surface-dropdown: rgba(12, 19, 35, 0.95);

  --text-primary: #f5f1ea;
  --text-secondary: #b7c0d0;
  --text-muted: #76859f;

  /* Accent Crème éditorial & intemporel */
  --accent-primary: #efe7da;
  --accent-primary-hover: #f8f3eb;
  --accent-on-primary: #0b111e;
  --accent-primary-soft: rgba(239, 231, 218, 0.11);
  --accent-warm: #e4d5bc;
  --accent-rec: #ef4444;
  --accent-success: #10b981;

  --border-subtle: rgba(239, 231, 218, 0.12);
  --border-strong: rgba(239, 231, 218, 0.24);
  --border-hover: rgba(239, 231, 218, 0.48);

  --shadow-sm: 0 8px 24px -8px rgba(2, 5, 12, 0.55);
  --shadow-lg: 0 28px 64px -18px rgba(2, 4, 10, 0.78);
  --shadow-glow: 0 22px 52px -18px rgba(0, 0, 0, 0.65);

  --vignette-mid: rgba(7, 11, 20, 0.42);
  --vignette-edge: rgba(4, 7, 13, 0.92);
  /* Fondu sombre progressif de la gauche (texte) vers la droite dégagée (visage de Gabriel) + fondu continu sans démarcation en bas */
  --hero-scrim:
    linear-gradient(
      90deg,
      rgba(7, 11, 21, 0.96) 0%,
      rgba(9, 14, 26, 0.9) 34%,
      rgba(11, 17, 30, 0.5) 50%,
      rgba(11, 17, 30, 0.05) 68%,
      rgba(11, 17, 30, 0.03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 11, 21, 0.35) 0%,
      transparent 24%,
      transparent 60%,
      rgba(11, 17, 30, 0.45) 85%,
      transparent 100%
    );

  color-scheme: dark;
}

[data-theme="light"] {
  --bg-center: #f7f9fc;
  --bg-mid: #eff4fa;
  --bg-edge: #d8e2f0;

  --surface-1: rgba(255, 255, 255, 0.8);
  --surface-2: rgba(238, 244, 252, 0.94);
  --surface-card: rgba(255, 255, 255, 0.88);
  --surface-glass: rgba(247, 249, 252, 0.82);
  --surface-dropdown: rgba(255, 255, 255, 0.96);

  --text-primary: #0b1324;
  --text-secondary: #3e506e;
  --text-muted: #6c7f9e;

  --accent-primary: #141e33;
  --accent-primary-hover: #1e2c48;
  --accent-on-primary: #f7f4ee;
  --accent-primary-soft: rgba(20, 30, 51, 0.08);
  --accent-warm: #8c6d46;
  --accent-rec: #dc2626;
  --accent-success: #059669;

  --border-subtle: rgba(15, 25, 45, 0.11);
  --border-strong: rgba(15, 25, 45, 0.22);
  --border-hover: rgba(20, 30, 51, 0.46);

  --shadow-sm: 0 10px 28px -10px rgba(15, 28, 56, 0.1);
  --shadow-lg: 0 28px 64px -18px rgba(15, 28, 56, 0.16);
  --shadow-glow: 0 20px 50px -15px rgba(15, 28, 56, 0.18);

  --vignette-mid: rgba(216, 226, 240, 0.28);
  --vignette-edge: rgba(203, 216, 234, 0.78);
  --hero-scrim:
    linear-gradient(
      90deg,
      rgba(247, 249, 252, 0.96) 0%,
      rgba(245, 248, 252, 0.9) 34%,
      rgba(245, 248, 252, 0.48) 50%,
      rgba(245, 248, 252, 0.06) 68%,
      rgba(245, 248, 252, 0.03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 249, 252, 0.35) 0%,
      transparent 24%,
      transparent 60%,
      rgba(239, 244, 250, 0.45) 85%,
      transparent 100%
    );

  color-scheme: light;
}

:root {
  --font-display: 'Coolvetica', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container-max: 1380px;
  --header-height: 74px;
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-mid);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(
    ellipse 78% 72% at 50% 30%,
    var(--bg-center) 0%,
    var(--bg-mid) 62%,
    var(--bg-edge) 100%
  );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  transition: background-color 0.45s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.still-card,
.stacked-item,
.gallery-item,
.direct-video-frame,
.service-card,
.mode-switch-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent-primary);
  color: var(--accent-on-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Anamorphic Lens Fixed Vignette Overlay */
.anamorphic-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse 78% 72% at 50% 45%,
    transparent 0%,
    transparent 52%,
    var(--vignette-mid) 82%,
    var(--vignette-edge) 100%
  );
  transition: background 0.45s var(--ease-smooth);
}

/* Subtle Optical Film Grain (CSS SVG data URI, zero network request) */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
footer,
section {
  position: relative;
  z-index: 4;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.5vw, 3rem);
}

/* ---------- 3. TYPOGRAPHY (COOLVETICA / INTER DRIBBBLE STYLE) ---------- */
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.038em;
  line-height: 0.98;
  font-weight: 800;
}

.font-mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-primary);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text-primary);
  margin-top: 0.65rem;
}

.section-lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ---------- 4. BUTTONS & PILLS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.35s var(--ease-expo), color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-expo);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-glass {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.85rem;
}

/* ---------- 5. HEADER FIXE (VEILLE AU SCROLL) & EFFET LIQUID GLASS BORDS ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  transition: transform 0.38s var(--ease-expo), opacity 0.28s ease, padding 0.35s var(--ease-expo);
}

.site-header.is-scrolled {
  padding-top: 0.55rem;
}

.site-header.is-sleeping {
  transform: translate3d(0, -135%, 0);
  opacity: 0;
  pointer-events: none;
}

#scroll-thread-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.header-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  height: 62px;
  padding: 0 0.9rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-primary);
  color: var(--accent-on-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Primary Nav with Two Distinct Dropdowns */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.92rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown-trigger .pill-dot {
  display: none;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-item.is-open .nav-dropdown-trigger,
.nav-link.is-active,
.nav-dropdown-trigger.is-active {
  color: var(--text-primary);
  background: var(--surface-2);
}

.nav-dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-expo);
}

.nav-item.is-open .nav-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.98);
  min-width: 270px;
  padding: 0.7rem;
  border-radius: var(--radius-lg);
  background: var(--surface-dropdown);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth), transform 0.32s var(--ease-expo),
    visibility 0.25s ease;
}

/* Pont de survol invisible entre le bouton et le menu déroulant */
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 22px;
}

.nav-item.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .nav-dropdown-panel,
  .nav-item.has-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem 0.65rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.nav-dropdown-panel.is-wide .dropdown-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.25s var(--ease-expo);
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background: var(--accent-primary-soft);
  transform: translateX(3px);
}

.dropdown-link-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.dropdown-link-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dropdown-link-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.dropdown-link-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.dropdown-footer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-all-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: background-color 0.2s ease;
}

.dropdown-all-link:hover {
  background: var(--accent-primary-soft);
}

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

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: var(--surface-dropdown);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-expo), visibility 0.3s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin: 1.4rem 0 0.65rem;
}

.mobile-section-label.is-photo {
  color: var(--accent-warm);
}

.mobile-nav-list {
  display: grid;
  gap: 0.45rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  font-size: 0.96rem;
}

/* ---------- 6. HERO LANDING PAGE (PORTRAIT DE FOND À DROITE, TEXTE CALME À GAUCHE) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img,
.hero-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 24%;
  opacity: 1;
  /* Dissolution continue sans démarcation entre la hero et la section À propos */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.2vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: var(--text-primary);
}

.hero-subtitle-line {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent-primary);
}

.hero-desc {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.15rem, 3vw, 2.1rem);
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  opacity: 0.78;
  transform: translate(-50%, 0);
  transition: opacity 0.35s ease, color 0.25s ease, transform 0.35s var(--ease-expo);
}

.hero-scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: heroScrollBounce 2.2s var(--ease-smooth) infinite;
}

.hero-scroll-cue:hover {
  opacity: 1;
  color: var(--accent-primary);
}

body.is-scrolled-down .hero-scroll-cue {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
}

@keyframes heroScrollBounce {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---------- 7. SECTION ABOUT ---------- */
.section-pad {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

#about.section-pad {
  padding-top: clamp(2rem, 4.5vw, 4rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-copy p + p {
  margin-top: 1.15rem;
}

.about-copy p {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 52ch;
}

.about-single-visual {
  max-width: 420px;
  width: 100%;
  justify-self: end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.about-single-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

/* ---------- 8. PRESTATIONS VIDÉO & PHOTO CARDS (BENTO / ÉDITORIAL) ---------- */
.pole-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pole-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pole-badge.is-video {
  background: var(--accent-primary-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
}

.pole-badge.is-photo {
  background: rgba(228, 213, 188, 0.1);
  border: 1px solid rgba(228, 213, 188, 0.28);
  color: var(--accent-warm);
}

.video-services-grid,
.photo-services-grid,
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

.prestations-grid .service-card.is-wide-last {
  grid-column: span 2;
  min-height: 360px;
}

.card-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.card-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 2.4s cubic-bezier(0.45, 0.05, 0.2, 1);
}

.card-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-edge);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease-expo), border-color 0.3s ease, box-shadow 0.55s var(--ease-expo);
}

.service-card.is-photo-card {
  min-height: 330px;
}

.service-card.is-photo-wide {
  grid-column: span 2;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo), filter 0.6s ease;
}

.service-card:hover .service-card-bg {
  transform: scale(1.06);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 20, 0.12) 0%,
    rgba(6, 10, 20, 0.45) 45%,
    rgba(5, 8, 16, 0.94) 100%
  );
  transition: background 0.35s ease;
}

.service-card-top {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(241, 245, 249, 0.85);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 13, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.service-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease;
}

.service-card:hover .service-arrow {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-on-primary);
  transform: rotate(45deg);
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 1.65rem;
  color: #f8fafc;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.24rem 0.58rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.service-card-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.5;
  max-width: 44ch;
}

/* ---------- 9. SOUS-PAGES : HERO SERVICE, SWITCH LIQUID GLASS & ANCHOR BAR ---------- */
.subpage-hero {
  padding-top: calc(var(--header-height) + 3.2rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.mode-switch-bar {
  position: sticky;
  top: 18px;
  z-index: 84;
  display: flex;
  justify-content: center;
  margin-block: 0.5rem 2.5rem;
  pointer-events: none;
  transition: top 0.38s var(--ease-expo);
}

body.header-awake .mode-switch-bar {
  top: calc(var(--header-height) + 12px);
}

.mode-switch-pill {
  position: relative;
  pointer-events: auto;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mode-switch-glider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.42s var(--ease-expo);
}

.mode-switch-pill[data-active="photo"] .mode-switch-glider {
  transform: translateX(100%);
}

.mode-switch-btn {
  position: relative;
  z-index: 2;
  min-width: 112px;
  padding: 0.56rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.mode-switch-btn.is-active {
  color: var(--accent-on-primary);
}

.projects-stage {
  position: relative;
}

.media-view {
  display: none;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
  transition: opacity 0.42s var(--ease-expo), filter 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
}

.media-view.is-active {
  display: block;
}

.media-view.is-visible-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: var(--text-primary);
}

.subpage-lead {
  margin-top: 1.15rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--text-secondary);
  line-height: 1.68;
}

.subpage-meta-box {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.meta-item-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.meta-item-value {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

/* Sticky Project Anchor Navigation */
.project-anchors-bar {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 40;
  margin-block: 1.5rem 2.5rem;
}

.project-anchors-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.anchor-prefix {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-inline: 0.6rem;
}

.anchor-pill {
  padding: 0.42rem 0.92rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.anchor-pill:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-color: var(--border-subtle);
}

/* ---------- 10. PROJETS VIDÉO DIRECT, STILLS 1 LIGNE & GALERIE EMPILÉE ---------- */
.project-block,
.photo-collection-block {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
  border-bottom: 1px solid var(--border-subtle);
}

.project-block:last-of-type,
.photo-collection-block:last-of-type {
  border-bottom: none;
}

.project-minimal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 1.45rem;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Lecteur Vidéo Direct Fluide sur le Site */
.direct-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060a14;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.direct-video-frame.is-vertical {
  max-width: 400px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.direct-video-frame.is-scope {
  aspect-ratio: 2.39 / 1;
}

.direct-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo), filter 0.5s ease;
}

.direct-video-frame:hover .direct-video-poster {
  transform: scale(1.03);
  filter: brightness(0.84);
}

.direct-video-scrim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(6, 10, 20, 0.18) 0%, rgba(5, 8, 16, 0.62) 100%);
}

.direct-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(239, 231, 218, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease, color 0.25s ease;
}

.direct-video-frame:hover .direct-play-btn {
  transform: scale(1.09);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

.direct-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.direct-video-frame.is-playing {
  cursor: auto;
}

.direct-video-frame iframe,
.direct-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.direct-video-frame iframe.is-ready,
.direct-video-frame video.is-ready {
  opacity: 1;
}

.direct-video-quality {
  position: absolute;
  bottom: 3.25rem;
  right: 0.9rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 20, 0.78);
  border: 1px solid rgba(239, 231, 218, 0.28);
  color: #efe7da;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.direct-video-quality select {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 0.2rem;
}

.direct-video-quality option {
  background: #0d1322;
  color: #f8fafc;
}

.direct-video-quality-hint {
  position: absolute;
  bottom: 5.7rem;
  right: 0.9rem;
  z-index: 6;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 20, 0.86);
  border: 1px solid rgba(239, 231, 218, 0.24);
  color: #efe7da;
  font-size: 0.72rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.direct-video-quality-hint.is-visible {
  opacity: 1;
}

/* Duo côte à côte pour formats verticaux Small and Tall */
.vertical-videos-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.vertical-duo-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vertical-duo-subtitle {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.vertical-videos-duo .direct-video-frame.is-vertical {
  max-width: 100%;
  margin-bottom: 0;
}

.direct-video-external {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 20, 0.78);
  border: 1px solid rgba(239, 231, 218, 0.28);
  color: #efe7da;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.2s ease;
}

.direct-video-frame:hover .direct-video-external,
.direct-video-external:focus-visible {
  opacity: 1;
}

/* Bandeau de Stills strictement sur 1 seule ligne, auto-défilant + glissable à la souris */
.stills-carousel {
  position: relative;
  width: 100%;
  height: clamp(112px, 13.5vw, 162px);
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.stills-carousel.is-dragging {
  cursor: grabbing;
}

.stills-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.still-card {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-expo);
}

.still-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.still-card img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Galerie Photo Empilée Équilibrée (tailles variées, aucune très grande photo dominante) */
.stacked-photo-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.7rem, 1.35vw, 1.15rem);
}

.stacked-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  cursor: zoom-in;
  height: clamp(240px, 24vw, 315px);
  transition: transform 0.45s var(--ease-expo), border-color 0.25s ease, box-shadow 0.45s var(--ease-expo);
}

.stacked-item.size-a {
  grid-column: span 5;
}

.stacked-item.size-b {
  grid-column: span 7;
}

.stacked-item.size-c {
  grid-column: span 4;
}

.stacked-item.size-d {
  grid-column: span 4;
  margin-top: 0.55rem;
}

.stacked-item.size-e {
  grid-column: span 4;
}

.stacked-item.size-f {
  grid-column: span 6;
}

.stacked-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-expo);
}

.stacked-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.stacked-item:hover img {
  transform: scale(1.045);
}

.project-block {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-bottom: 1px solid var(--border-subtle);
}

.project-block:last-of-type {
  border-bottom: none;
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 0.35rem;
}

.project-summary {
  max-width: 56ch;
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-top: 0.55rem;
}

.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.34rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* YouTube Lite / Facade Container */
.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060a14;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.yt-facade.is-vertical {
  max-width: 420px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.yt-facade img.yt-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo), filter 0.5s ease;
}

.yt-facade:hover img.yt-poster {
  transform: scale(1.03);
  filter: brightness(0.86);
}

.yt-facade-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: linear-gradient(
    180deg,
    rgba(6, 10, 20, 0.55) 0%,
    rgba(6, 10, 20, 0.22) 50%,
    rgba(5, 8, 16, 0.82) 100%
  );
}

.yt-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-rec);
}

.yt-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease;
}

.yt-facade:hover .yt-play-center {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

.yt-play-center svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.yt-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  color: #f8fafc;
}

.yt-film-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.yt-film-sub {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.82);
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-placeholder-notice {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #f8fafc;
  gap: 0.85rem;
}

.yt-placeholder-notice code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(239, 231, 218, 0.14);
  border: 1px solid rgba(239, 231, 218, 0.34);
  color: #efe7da;
}

/* Stills Row under Video Players */
.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ---------- 11. GALERIE PHOTO ÉDITORIALE (LANDSCAPE + PORTRAIT SAFE) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: stretch;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  cursor: zoom-in;
  transition: transform 0.45s var(--ease-expo), border-color 0.25s ease,
    box-shadow 0.45s var(--ease-expo);
}

.gallery-item.is-landscape {
  grid-column: span 6;
  aspect-ratio: 3 / 2;
}

.gallery-item.is-featured {
  grid-column: span 8;
  aspect-ratio: 3 / 2;
}

.gallery-item.is-portrait {
  grid-column: span 4;
  aspect-ratio: 2 / 3;
}

.stills-grid .gallery-item {
  grid-column: auto;
  aspect-ratio: 3 / 2;
}

.stills-grid .gallery-item.is-portrait {
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-expo);
}

.gallery-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-expo);
}

.gallery-item:hover .gallery-item-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 12. CONTACT SECTION (ÉDITORIAL SOBRE) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: 0.5rem;
}

.contact-editorial-info {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-editorial-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
}

.contact-editorial-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 44ch;
}

.contact-direct-links {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 0.4rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-direct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.direct-email-address,
.contact-direct-item {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.direct-email-address:hover,
.contact-direct-item:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.contact-copy-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contact-copy-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--surface-1);
}

.copy-feedback {
  font-size: 0.82rem;
  color: var(--accent-success);
  font-weight: 500;
}

.contact-minimal-form {
  padding-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.45rem 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.is-full {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control,
.form-control-minimal {
  width: 100%;
  padding: 0.72rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

select.form-control-minimal {
  padding-right: 1.2rem;
  cursor: pointer;
}

select.form-control-minimal option {
  background: var(--bg-edge);
  color: var(--text-primary);
}

.form-control:focus,
.form-control-minimal:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control,
textarea.form-control-minimal {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.pole-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pole-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pole-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pole-radio input:checked + span {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.contact-submit-row {
  margin-top: 0.35rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 7, 14, 0.35) 100%);
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(203, 216, 234, 0.28) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.52rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.25s var(--ease-expo);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 14. LIGHTBOX PLEIN ÉCRAN ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 14, 0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8fafc;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.lightbox-close,
.lightbox-nav {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.25s var(--ease-expo);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: 1rem;
}

.lightbox-img {
  max-width: min(92vw, 1440px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-nav.is-prev {
  position: absolute;
  left: 0.5rem;
}

.lightbox-nav.is-next {
  position: absolute;
  right: 0.5rem;
}

.lightbox-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* ---------- 15. BOUTON FLOTTANT THÈME & CURSEUR MAGNÉTIQUE ---------- */
.theme-toggle-fab {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--surface-dropdown);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease-expo), border-color 0.25s ease;
}

.theme-toggle-fab:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.theme-toggle-fab svg {
  width: 16px;
  height: 16px;
}

/* Custom Magnetic Cursor (Desktop Fine Pointer Only) */
.custom-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-primary);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.28s var(--ease-expo), height 0.28s var(--ease-expo),
      padding 0.28s var(--ease-expo), background-color 0.25s ease, opacity 0.2s ease;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .custom-cursor.has-label {
    width: auto;
    height: 32px;
    padding: 0 0.9rem;
    background: var(--surface-dropdown);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- 16. SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease-expo), transform 0.72s var(--ease-expo);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status-dot,
  .rec-dot,
  .hero-scroll-cue svg {
    animation: none;
  }
}

/* ---------- 17. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1120px) {
  .photo-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card.is-photo-wide {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }
  .primary-nav,
  .header-cta-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 4rem;
  }
  .hero-backdrop img,
  .hero-backdrop video {
    object-position: 66% 18%;
  }
  .hero-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 21, 0.14) 0%,
      rgba(11, 17, 30, 0.24) 36%,
      rgba(11, 17, 30, 0.88) 70%,
      rgba(11, 17, 30, 0.4) 88%,
      transparent 100%
    );
  }
  [data-theme="light"] .hero-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(247, 249, 252, 0.12) 0%,
      rgba(245, 248, 252, 0.3) 36%,
      rgba(245, 248, 252, 0.9) 70%,
      rgba(239, 244, 250, 0.4) 88%,
      transparent 100%
    );
  }
  .about-grid,
  .subpage-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-single-visual {
    justify-self: center;
    margin-inline: auto;
  }
  .video-services-grid,
  .photo-services-grid,
  .prestations-grid {
    grid-template-columns: 1fr;
  }
  .prestations-grid .service-card.is-wide-last {
    grid-column: span 1;
  }
  .stacked-item.size-a,
  .stacked-item.size-b,
  .stacked-item.size-c,
  .stacked-item.size-d,
  .stacked-item.size-e,
  .stacked-item.size-f {
    grid-column: span 6;
    margin-top: 0;
  }
  .gallery-item,
  .gallery-item.is-landscape,
  .gallery-item.is-featured,
  .gallery-item.is-portrait {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-bottom: 4.1rem;
  }
  .hero-scroll-cue {
    bottom: 0.85rem;
  }
  .hero-title {
    font-size: clamp(2.55rem, 11vw, 3.6rem);
  }
  .hero-cta-group {
    width: 100%;
  }
  .hero-cta-group .btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    text-align: center;
  }
  .photo-services-grid,
  .prestations-grid,
  .about-visual-duo,
  .stills-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card,
  .prestations-grid .service-card.is-wide-last {
    min-height: 310px;
  }
  .service-card.is-photo-wide,
  .prestations-grid .service-card.is-wide-last,
  .form-group.is-full {
    grid-column: span 1;
  }
  .mode-switch-bar {
    margin-block: 0.25rem 1.75rem;
  }
  .mode-switch-btn {
    min-width: 100px;
    padding: 0.54rem 1.15rem;
  }
  .project-anchors-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .project-anchors-inner::-webkit-scrollbar {
    display: none;
  }
  .anchor-prefix {
    display: none;
  }
  .anchor-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .direct-video-frame {
    border-radius: var(--radius-md);
  }
  .direct-play-btn {
    width: 62px;
    height: 62px;
  }
  .direct-video-frame.is-scope {
    aspect-ratio: 16 / 9;
  }
  .stills-carousel {
    height: clamp(104px, 26vw, 148px);
  }
  .stills-track {
    gap: 0.65rem;
  }
  .vertical-videos-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .vertical-videos-duo .direct-play-btn {
    width: 52px;
    height: 52px;
  }
  .vertical-videos-duo .direct-play-btn svg {
    width: 20px;
    height: 20px;
  }
  .vertical-duo-subtitle {
    font-size: 0.88rem;
  }
  .stacked-photo-gallery {
    gap: 0.75rem;
    grid-auto-flow: row;
  }
  .stacked-photo-gallery > .stacked-item.stacked-item:nth-child(3n + 1) {
    grid-column: span 12;
    height: clamp(220px, 62vw, 280px);
    margin-top: 0;
  }
  .stacked-photo-gallery > .stacked-item.stacked-item:nth-child(3n + 2),
  .stacked-photo-gallery > .stacked-item.stacked-item:nth-child(3n + 3) {
    grid-column: span 6;
    height: clamp(170px, 46vw, 220px);
    margin-top: 0;
  }
  .stacked-photo-gallery > .stacked-item.stacked-item:nth-child(3n + 2):last-child {
    grid-column: span 12;
    height: clamp(220px, 62vw, 280px);
  }
  .gallery-item,
  .gallery-item.is-landscape,
  .gallery-item.is-featured,
  .gallery-item.is-portrait {
    grid-column: span 12;
  }
  .theme-toggle-fab {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    padding: 0.58rem 0.88rem;
  }
}

@media (max-width: 520px) {
  .theme-toggle-fab {
    padding: 0.68rem;
  }
  .theme-toggle-fab .theme-label {
    display: none;
  }
  .subpage-meta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .vertical-videos-duo {
    grid-template-columns: 1fr;
  }
}
