/* ============================================================
   AZUR VISION AGENCY — styles.css (v3)
   Palette : or #cb965c · blanc #ffffff · marine #001d51
   Fonts : Manrope (titres) · Inter (textes) — WOFF2 self-hosted
   Direction : épuré, lumière de plateau, entrée iris
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --navy: #001d51;
  --white: #ffffff;
  --accent: #cb965c;
  --accent-light: #e0b98a;
  --on-accent: #001d51;
  --gold-line: linear-gradient(90deg, #cb965c, #e0b98a);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.75rem, 6.5vw, 6.5rem);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Palette claire — thème par défaut */
:root, html[data-theme='light'] {
  --bg: #ffffff;
  --bg-2: #f7f9fd;
  --bg-3: #eef2f9;
  --ink: #001d51;
  --ink-2: #465780;
  --ink-3: #657396;
  --line: rgba(0, 29, 81, .12);
  --line-strong: rgba(0, 29, 81, .26);
  --header-bg: rgba(255, 255, 255, .88);
  color-scheme: light;
}

/* Palette nuit */
html[data-theme='dark'] {
  --bg: #001d51;
  --bg-2: #06255f;
  --bg-3: #0d2e6c;
  --ink: #ffffff;
  --ink-2: #a9b6d4;
  --ink-3: #6d7fa8;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .26);
  --header-bg: rgba(0, 29, 81, .85);
  color-scheme: dark;
}
html[data-theme='dark'] .stat-icon { background: rgba(203, 150, 92, .2); }
html[data-theme='dark'] 

html[data-theme='dark'] .stat:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .32); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0325rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 1.5rem;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }

p { margin: 0 0 1.25rem; }

.muted { color: var(--ink-2); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section); }
/* Par défaut, on évite le cumul padding-bottom + padding-top entre deux sections blanches consécutives */
section + section { padding-top: 0; }
/* MAIS toute section avec un fond distinct (gris, marine, image) garde son padding-top interne
   pour que son titre ne soit pas collé au bord — et la section qui la suit aussi. */
.stats-band,
.tinted,
.band,
.hero-visual + section,
.stats-band + section,
.tinted + section,
.band + section { padding-top: var(--section); }

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

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-solid {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-solid:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand img { width: 32px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  position: relative;
  padding-block: .3rem;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Sur hero sombre, header lisible dans les deux thèmes tant qu'il n'est pas scrollé */
.on-visual .site-header:not(.scrolled) { --ink: #ffffff; --ink-2: rgba(255,255,255,.72); --line-strong: rgba(255,255,255,.32); color: #fff; }

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



.btn-header { padding: .62rem 1.3rem; font-size: .87rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme='dark'] .icon-sun { display: block; }
html[data-theme='dark'] .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded='true'] span { background: var(--ink); }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  letter-spacing: -.02em;
  padding-block: .45rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a.active { color: var(--accent); }
.mobile-menu .menu-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Intro iris (index uniquement) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro img {
  width: 72px;
  opacity: 0;
  transform: scale(.7);
}
.intro.play img { animation: intro-logo 1s var(--ease) forwards; }
.intro.play { animation: intro-iris .9s var(--ease) 1.05s forwards; }
.intro.done { display: none; }

@keyframes intro-logo {
  to { opacity: 1; transform: scale(1); }
}
@keyframes intro-iris {
  from { clip-path: circle(120% at 50% 50%); }
  to { clip-path: circle(0% at 50% 50%); visibility: hidden; }
}

/* ---------- Hero visuel plein écran ---------- */
.hero-visual {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 110px;
  padding-bottom: 0;
  color: #fff;
  overflow: hidden;
}
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-block: clamp(1.5rem, 3vh, 2.5rem);
}
.hero-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 2.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.hero-foot .foot-tags { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; }
.hero-foot .foot-scroll {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
}
.hero-foot .foot-scroll::after {
  content: '';
  width: 34px;
  height: 1.5px;
  background: var(--accent);
}
.hero-visual .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 18, 52, .8) 0%, rgba(0, 18, 52, .15) 45%, rgba(0, 18, 52, .3) 100%);
}
.hero-visual .eyebrow { color: rgba(255, 255, 255, .75); margin-bottom: 1.8rem; }
.hero-visual .lead { color: rgba(255, 255, 255, .82); font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.75; }
.hero-visual .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.hero-visual .btn-ghost:hover { border-color: #fff; }

.hero-visual h1 { font-size: clamp(2.6rem, min(7vw, 9.5vh), 5.8rem); max-width: 16ch; margin-bottom: 2rem; }
.hero-visual .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-visual .line span { display: block; transform: translateY(115%); }
.intro-done .hero-visual .line span { animation: line-up .9s var(--ease) forwards; }
.intro-done .hero-visual .line:nth-child(2) span { animation-delay: .12s; }
.intro-done .hero-visual .line:nth-child(3) span { animation-delay: .24s; }
@keyframes line-up { to { transform: translateY(0); } }

.lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.8rem; }



@media (min-width: 961px) and (max-height: 800px) {
  .hero-visual { padding-top: 92px; }
  .hero-visual .eyebrow { margin-bottom: 1.2rem; }
  .hero-visual h1 { margin-bottom: 1.4rem; }
  .hero-visual .lead { font-size: 1.05rem; line-height: 1.6; }
  .hero-visual .hero-cta { margin-top: 1.8rem; }
  .hero-foot { padding-block: 1rem; }
}

/* ---------- Hero texte (pages intérieures) ---------- */
.hero {
  padding-top: calc(80px + clamp(4.5rem, 9vw, 7.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { max-width: 16ch; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.15rem;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Alternance de fond pour rythmer la page */
.tinted {
  background: var(--bg-2);
  padding-block: var(--section);
}

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 3.4vw, 3rem);
}
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head .link-more {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.section-head .link-more:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Diptyque pôles (épuré : image + texte, sans cadre) ---------- */
.poles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }

.pole-card { display: flex; flex-direction: column; gap: 1.1rem; }
.pole-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pole-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.pole-card:hover .pole-media img { transform: scale(1.04); }

.pole-num {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pole-card h3 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin-bottom: 0; }
.pole-card p { color: var(--ink-2); margin-bottom: 0; }
.pole-link {
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.pole-link .arrow { transition: transform .25s var(--ease); }
.pole-card:hover .pole-link { color: var(--accent); }
.pole-card:hover .pole-link .arrow { transform: translateX(5px); }

/* ---------- Stats animées ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.stat {
  position: relative;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.7rem;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.stat.in::before { transform: scaleX(1); }
.stat:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 29, 81, .09); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(203, 150, 92, .14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.stat-icon svg { width: 21px; height: 21px; }
.stat:hover .stat-icon svg { animation: icon-pop .5s var(--ease); }
@keyframes icon-pop { 50% { transform: scale(1.18); } }

.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  hyphens: none;
}
/* Valeurs non numériques : taille réduite pour tenir dans la carte */
.stat .stat-num.is-text {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  letter-spacing: -.02em;
}
.stat .stat-num .gold { color: var(--accent); }
.stat .stat-label {
  margin-top: .7rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Logos clients ---------- */






/* ---------- Mur de logos clients ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.6rem;
  min-height: 128px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color .3s var(--ease);
}
/* retirer les bordures de droite de la dernière colonne (5 par ligne) */
.client-logo:nth-child(5n) { border-right: 0; }
/* retirer les bordures du bas de la dernière ligne (20 logos => 4 lignes) */
.client-logo:nth-child(n+16) { border-bottom: 0; }
.client-logo:hover { background: var(--bg-2); }
.client-logo img {
  max-height: 62px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  transition: transform .3s var(--ease);
}
.client-logo:hover img { transform: scale(1.06); }
html[data-theme='dark'] .clients-grid { background: #ffffff; }
html[data-theme='dark'] .client-logo { background: #ffffff; border-color: rgba(0,29,81,.1); }
html[data-theme='dark'] .client-logo:hover { background: #f4f6fb; }

/* ---------- Banderole image plein écran ---------- */
.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.band .band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0, 18, 52, .92) 0%, rgba(0, 29, 81, .74) 55%, rgba(0, 29, 81, .45) 100%);
}
.band .eyebrow { color: rgba(255, 255, 255, .78); }
.band h2 { max-width: 17ch; }
.band p { color: rgba(255, 255, 255, .84); max-width: 52ch; }
.band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.band .btn-ghost:hover { border-color: #fff; }
.band-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3.5rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.band-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.02em;
  color: var(--accent-light);
}
.band-stats div span { font-size: .84rem; color: rgba(255, 255, 255, .74); }

/* ---------- Cartes studio avec visuel ---------- */
.studio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.studio-card {
  position: relative;
  min-height: clamp(240px, 26vw, 340px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  color: #fff;
}
.studio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .7s var(--ease);
}
.studio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 18, 52, .9) 0%, rgba(0, 29, 81, .5) 55%, rgba(0, 29, 81, .2) 100%);
}
.studio-card:hover img { transform: scale(1.06); }
.studio-card h3 { margin-bottom: .35rem; font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.studio-card p { margin-bottom: 0; font-size: .9rem; color: rgba(255, 255, 255, .82); }

/* ---------- Liste de prestations (épuré : filets, pas de boîtes) ---------- */
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
}
.prestation {
  border-top: 1px solid var(--line);
  padding: 1.05rem .2rem;
  gap: .85rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: color .25s var(--ease);
}
.presta-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.prestation:hover .presta-ico { transform: scale(1.12); }
.prestation:hover { color: var(--ink); }

/* ---------- Grille de formats (production) — épurée ---------- */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.format-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  min-height: 168px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.format-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 29, 81, .1); }
.format-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(203, 150, 92, .14);
  color: var(--accent);
  flex: 0 0 auto;
}
.format-ico svg { width: 23px; height: 23px; }
.format-card:hover .format-ico svg { animation: icon-pop .5s var(--ease); }
.format-card h3 { margin: 0; margin-top: auto; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }

/* ---------- Mosaïque de visuels ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .5s var(--ease);
}
.mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.mosaic img:hover { transform: scale(1.02); }

/* ---------- Étapes du process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 29, 81, .1); }
.step-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.step:hover .step-media img { transform: scale(1.05); }
.step-body { padding: 1.7rem 1.7rem 1.9rem; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--accent);
}
.step h3 { margin: .7rem 0 .55rem; font-size: 1.14rem; }
.step p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- Points (liste éditoriale) ---------- */
.points-list { display: flex; flex-direction: column; }
.point {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.point:first-child { border-top: 1px solid var(--line); }
.point-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: .25rem;
}
.point h3 { margin-bottom: .35rem; }
.point p { margin-bottom: 0; color: var(--ink-2); }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.split .sticky-col { position: sticky; top: 110px; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Liste portfolio façon index (accueil) ---------- */
.works-index { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 1.8rem;
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.work-row:hover { padding-left: .8rem; }
.work-row .row-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.work-row h3 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.work-row .row-cat {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.work-row .row-arrow {
  color: var(--ink-3);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.work-row:hover .row-arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- Portfolio (grille) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: .87rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .5rem 1.15rem;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 1.6rem;
}
@media (min-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-card { display: block; }
.work-card.hidden { display: none; }
.pf-client.hidden { display: none; }

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 18, 52, .78) 0%, rgba(0, 29, 81, .25) 45%, transparent 75%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.07); }
.work-card:hover .work-media::after { opacity: 1; }
.work-hint {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.work-card:hover .work-hint { opacity: 1; transform: translateY(0); }
.work-media .play {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  background: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work-card:hover .play { opacity: 1; transform: translateY(0); }

.work-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.work-info h3 { margin-bottom: 0; font-size: 1.12rem; }
.work-cat {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.work-desc { margin: .35rem 0 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- Studio ---------- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  padding-block: .9rem;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.subnav a:hover { color: var(--ink); }

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.equip-card {
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 1.9rem 1.7rem;
  transition: background-color .25s var(--ease), transform .3s var(--ease);
}
.equip-card:hover { background: var(--bg-3); }
.equip-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.equip-card p { font-size: .9rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 0; }

/* ---------- Formulaires ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .85rem 1.05rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: .85rem; color: var(--ink-3); margin: 0; }
.form-success {
  display: none;
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-weight: 500;
  grid-column: 1 / -1;
}
.form-success.visible { display: block; }

/* ---------- CTA final ---------- */
.cta-final { border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 16ch; }
.cta-final .hero-cta { margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--ink-2); max-width: 34ch; margin-top: 1rem; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--ink-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .85rem;
}

/* ---------- Utilitaires images ---------- */
.pos-top { object-position: 50% 22%; }

/* ---------- Clients ---------- */

.clients-grid span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  letter-spacing: -.01em;
  color: var(--ink-2);
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: color .25s var(--ease);
}
.clients-grid span:hover { color: var(--ink); }

/* ---------- Bandeau offre ---------- */
.offer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem 3.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(2rem, 4.5vw, 3.4rem);
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.offer-band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gold-line);
}
.offer-equation {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin: 0;
}
.offer-equation .eq {
  display: block;
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
  margin: .18em 0;
}
.offer-price { text-align: right; }
.offer-price .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  white-space: nowrap;
}
.offer-price .price span {
  font-size: .3em;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .04em;
}

/* ---------- Galerie studio ---------- */
.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery-3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
/* Apparition en cascade des enfants */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .04s; }
.stagger.in > *:nth-child(2) { transition-delay: .10s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .22s; }
.stagger.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.in > *:nth-child(6) { transition-delay: .34s; }
.stagger.in > *:nth-child(7) { transition-delay: .40s; }
.stagger.in > *:nth-child(8) { transition-delay: .46s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .line span { transform: none; }
  .marquee-track { animation: none; }
  * { animation: none !important; }
  .intro { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav, .btn-header { display: none; }
  .burger { display: block; }
  .poles { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .split .sticky-col { position: static; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .prestations-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .work-row { grid-template-columns: 1fr auto; }
  
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .studio-cards { grid-template-columns: 1fr; }
  .offer-price { text-align: left; }
  .band-stats { gap: 1rem 2rem; }
  .gallery-3 { grid-template-columns: 1fr; }
  .offer-band { align-items: flex-start; }
  .work-row .row-index, .work-row .row-cat { display: none; }
  .hero-foot .foot-scroll { display: none; }

  /* Mur de logos : 3 colonnes */
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .client-logo { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 112px; padding: 1.6rem 1.2rem; }
  .client-logo:nth-child(5n) { border-right: 1px solid var(--line); }
  .client-logo:nth-child(n+16) { border-bottom: 1px solid var(--line); }
  .client-logo:nth-child(3n) { border-right: 0; }
  .client-logo:nth-child(n+19) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .point { grid-template-columns: 1fr; gap: .3rem; }
  .prestations-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic img:first-child { aspect-ratio: 4 / 3; }

  /* Mur de logos : 2 colonnes */
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { min-height: 96px; padding: 1.3rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .client-logo:nth-child(3n) { border-right: 1px solid var(--line); }
  .client-logo:nth-child(n+19) { border-bottom: 1px solid var(--line); }
  .client-logo:nth-child(2n) { border-right: 0; }
  .client-logo:nth-child(n+19) { border-bottom: 0; }
  .client-logo img { max-height: 48px; }
}

/* ============================================================
   AJOUTS POST-V14 (icônes, portfolio interactif, identité)
   ============================================================ */

/* -- Bandeau stats hérité -- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }

/* -- Filet spectral -- */
.spectral-rule { height: 2px; background: var(--gold-line); border: 0; margin: 0; opacity: .9; }

/* -- Icônes documents (photos d'identité) -- */
.doc-card .doc-ico {
  width: auto;
  height: 46px;
  margin-bottom: 1rem;
  object-fit: contain;
}
html[data-theme='dark'] .doc-card .doc-ico { filter: brightness(1.4); }

/* -- Icône dans les listes de points -- */
.point-ico { width: 21px; height: 21px; flex: 0 0 auto; display: block; }
.point:hover .point-ico { animation: icon-pop .5s var(--ease); }

/* -- Icône pastille équipement studio -- */
.equip-ico {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(203, 150, 92, .14); color: var(--accent);
  margin-bottom: 1.2rem; flex: 0 0 auto;
}
.equip-ico svg { width: 21px; height: 21px; display: block; }
.equip-card:hover .equip-ico svg { animation: icon-pop .5s var(--ease); }



/* -- Portfolio : logos couleur sur cartes -- */
button.work-card, a.work-card {
  border: 0; background: none; padding: 0; font: inherit;
  text-align: left; cursor: pointer; color: inherit; display: block; width: 100%;
}
.work-card.is-static { cursor: default; }
.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover .work-thumb { transform: scale(1.06); }
.work-soon { opacity: .85; }

/* -- Photos d'identité : visuel + badge ANTS -- */
.id-visual { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; }
.id-photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.id-badge {
  position: absolute; right: 1.2rem; bottom: 1.2rem;
  width: clamp(120px, 26%, 168px);
  background: #fff; border-radius: 14px; padding: .9rem;
  box-shadow: 0 16px 40px rgba(0, 29, 81, .28);
}
.id-badge img { width: 100%; height: auto; display: block; }

/* -- Lightbox portfolio -- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 12, 34, .93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { max-width: min(92vw, 1200px); max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-img, .lb-video {
  max-width: min(92vw, 1200px); max-height: 86vh;
  border-radius: 10px; display: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-img.show, .lb-video.show { display: block; }
.lb-video { width: auto; background: #000; }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; cursor: pointer; border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease); z-index: 2;
}
.lb-close { top: 1.4rem; right: 1.6rem; width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.6rem; } .lb-next { right: 1.6rem; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb-counter {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; letter-spacing: .1em;
}
.lb-nav.hide, .lb-counter.hide { display: none; }
@media (max-width: 600px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lb-prev { left: .6rem; } .lb-next { right: .6rem; }
  .lb-close { top: .8rem; right: .8rem; }
}


