/* Cinemagic — feuille de style du site */
:root {
  --void: #050506;
  --panel: #0f1012;
  --panel-2: #14161a;
  --glass: rgba(255, 255, 255, 0.05);
  --ink: #f2f2ef;
  --ink-muted: #8c8f96;
  --hairline: #23252a;
  --volt: #d4ff3a;
  --on-volt: #050506;
  --rec: #ff4b3e;
  --whatsapp: #3ddc84;
  --accent: #d4ff3a;
  --nav-bg: rgba(5, 5, 6, 0.72);
  --sub-bg: rgba(15, 16, 18, 0.96);
  --field-border: #2e3036;
  color-scheme: dark;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1312px;
  --gutter: 64px;
  --section: 120px;
}

/* Thème clair « Studio blanc » */
:root[data-theme="light"] {
  --void: #f2f2ef;
  --panel: #ffffff;
  --panel-2: #e7e7e3;
  --glass: rgba(10, 10, 11, 0.04);
  --ink: #0a0a0b;
  --ink-muted: #55585e;
  --hairline: #d4d5d8;
  --rec: #d21f12;
  --whatsapp: #127a3e;
  --accent: #0a0a0b;
  --nav-bg: rgba(242, 242, 239, 0.84);
  --sub-bg: rgba(255, 255, 255, 0.97);
  --field-border: #c4c6ca;
  color-scheme: light;
}
:root[data-theme="light"] .hero-glow { background: radial-gradient(closest-side, rgba(150, 190, 0, 0.12), rgba(150, 190, 0, 0)); }
:root[data-theme="light"] .wa-float { color: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .btn-primary:hover { background: #c6f01f; }

/* Bouton clair / sombre */
.theme-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--field-border); border-radius: 999px; color: var(--ink); cursor: pointer; flex: none; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--volt); color: var(--on-volt); padding: 8px 16px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; border-top: 1px solid var(--hairline); }
.dots { background-image: radial-gradient(var(--hairline) 1px, transparent 1.2px); background-size: 24px 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.muted { color: var(--ink-muted); }
.volt { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Labels HUD */
.hud { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.rec-dot { color: var(--rec); }
.tag { display: inline-block; padding: 7px 11px; border: 1px solid var(--hairline); border-radius: 4px; color: var(--ink); text-decoration: none; }
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* Titres */
.display { font-weight: 800; font-size: clamp(40px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; }
.h1 { font-weight: 800; font-size: clamp(36px, 5.8vw, 80px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.h2 { font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-weight: 600; font-size: 22px; line-height: 28px; }
.lead { font-weight: 600; font-size: 22px; line-height: 30px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.section-head > .stack { max-width: 760px; }
.section-head > p { max-width: 400px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--volt); color: var(--on-volt); }
.btn-primary:hover { color: var(--on-volt); background: #e2ff70; }
.btn-ghost { border-color: var(--hairline); background: var(--glass); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-wa { border-color: var(--hairline); color: var(--whatsapp); }
.btn-wa:hover { color: var(--whatsapp); border-color: var(--whatsapp); }
.btn-dark { background: #050506; color: #f2f2ef; }
.btn-dark:hover { color: #d4ff3a; }
.btn-outline-dark { border: 2px solid #050506; color: #050506; }
.btn-outline-dark:hover { color: #050506; background: rgba(0,0,0,.06); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 16px; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 24px; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand:hover { color: var(--ink); }
.brand-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--rec); flex: none; }
.nav-links { display: flex; gap: 28px; list-style: none; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--hairline); border-radius: 999px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 96px 0; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: 40%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(212, 255, 58, 0.08), rgba(212, 255, 58, 0)); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; gap: 36px; }
.hud-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-muted); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero-foot > .stack { flex: 1 1 420px; max-width: 600px; }
.breadcrumb { color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Viewfinder */
.vf { position: relative; border: 1px solid var(--hairline); background: var(--panel); }
.vf::before, .vf::after { content: ""; position: absolute; width: 24px; height: 24px; border: 0 solid var(--accent); pointer-events: none; z-index: 2; }
.vf::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.vf::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-full > .vf-c { position: absolute; width: 24px; height: 24px; border: 0 solid var(--accent); z-index: 2; }
.vf-full::before, .vf-full::after { display: none; }
.vf-full > .vf-tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.vf-full > .vf-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-full > .vf-tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.vf-full > .vf-bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }

.showreel { aspect-ratio: 21 / 9; min-height: 260px; overflow: hidden; }
.showreel video, .showreel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.showreel .overlay { position: absolute; z-index: 3; color: var(--ink); }
.showreel .tl { top: 20px; left: 24px; }
.showreel .trc { top: 20px; right: 24px; color: var(--ink-muted); }
.showreel .blc { bottom: 20px; left: 24px; color: var(--ink-muted); }
.showreel .brc { bottom: 20px; right: 24px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.batt { display: inline-flex; gap: 2px; }
.batt i { width: 6px; height: 10px; background: var(--volt); }
.batt i:last-child { background: var(--hairline); }
.vf.reticle::before, .vf.reticle::after { display: block; content: ""; position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; border: 0; background: var(--hairline); transform: translate(-50%, -50%); z-index: 1; }
.vf.reticle::before { width: 120px; height: 1px; }
.vf.reticle::after { width: 1px; height: 120px; }
.play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 999px; background: var(--volt); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; transition: transform .15s ease; }
.play:hover { transform: translate(-50%, -50%) scale(1.06); }
.play-sm { width: 56px; height: 56px; }

/* Chiffres */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 40px 24px; border-right: 1px solid var(--hairline); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { font-weight: 800; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.04em; margin-top: 12px; }

/* Clients */
.clients { padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.clients ul { display: flex; flex-wrap: wrap; gap: 20px 44px; list-style: none; }
.clients li { font-weight: 700; font-size: 18px; color: var(--ink-muted); letter-spacing: .5px; }

/* Grilles à filets */
.grid-lines { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { background: var(--void); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.cell-panel { background: var(--panel); }

/* Pôles */
.pole { background: var(--void); padding: 40px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 20px; min-height: 380px; transition: background .2s ease; }
.pole:hover { background: var(--panel); color: var(--ink); }
.pole-top { display: flex; justify-content: space-between; align-items: center; }
.pole h3 { font-weight: 700; font-size: 30px; line-height: 34px; letter-spacing: -0.02em; }
.pole .tags { margin-top: auto; }
.pole .more { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); background: transparent; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink-muted); }
.filter[aria-pressed="true"] { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.work { position: relative; display: block; overflow: hidden; background: var(--panel); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.work.c2 { grid-column: span 2; }
.work.r2 { grid-row: span 2; }
.work.c4 { grid-column: 1 / -1; }
.work .play-sm ~ .cap, .work .play-sm { z-index: 3; }
.work:has(.play-sm) .placeholder { color: transparent; }
.work[hidden] { display: none; }
.work img, .work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover img, .work:hover video { transform: scale(1.03); }
.work .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 13px; color: var(--ink-muted); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.work .kind { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 8px; background: rgba(5, 5, 6, .72); color: #f2f2ef; }
.work .dur { position: absolute; top: 14px; right: 14px; z-index: 2; color: #f2f2ef; }
.work .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; background: rgba(5, 5, 6, .8); color: #f2f2ef; display: flex; flex-direction: column; gap: 2px; }
.work .cap .muted { color: #a9acb3; }
.work .cap strong { font-weight: 600; font-size: 15px; line-height: 20px; }

/* Villes */
.cities { border-top: 1px solid var(--hairline); list-style: none; }
.city { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.city-name { font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
a.city:hover .city-name { color: var(--accent); }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--hairline); }
.steps li { position: relative; padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps li:first-child::before { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--accent); }
.steps strong { font-weight: 600; font-size: 22px; }
.steps span:last-child { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq > .stack { flex: 1 1 300px; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); padding: 24px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: 12px; color: var(--ink-muted); }

/* Bandeau CTA */
.cta { background: var(--volt); color: #050506; padding: 104px 0 96px; }
.cta .wrap { display: flex; flex-direction: column; gap: 36px; }
.cta .display { color: #050506; }
.cta a:not(.btn) { color: #050506; }

/* Pied de page */
.site-footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid nav a { color: var(--ink); text-decoration: none; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-grid address { font-style: normal; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-muted); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: 999px; color: var(--ink); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; background: var(--whatsapp); color: var(--void); font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.wa-float:hover { color: var(--void); }

/* Social media : téléphones */
.phones { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-end; }
.phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone { width: 260px; height: 540px; border: 2px solid #2e3036; border-radius: 40px; padding: 12px; background: #000; }
.phone.big { width: 290px; height: 600px; border-color: var(--accent); border-radius: 44px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.phone.big .screen { border-radius: 34px; background: var(--panel-2); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 18px 14px 10px; font-size: 13px; font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--hairline); flex: none; }
.ig-stats { display: flex; justify-content: space-around; padding: 4px 8px 12px; font-size: 11px; line-height: 14px; text-align: center; color: var(--ink-muted); }
.ig-stats b { color: var(--ink); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; flex: 1; }
.ig-grid span { background: #1a1c20; }
.ig-grid span:nth-child(even) { background: var(--hairline); }
.ig-grid span.hl { background: var(--volt); opacity: .85; }
.reel-side { position: absolute; right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 11px; }
.reel-text { position: absolute; left: 16px; right: 60px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 17px; color: #c9ccd3; }
.reel-text b { color: var(--ink); font-size: 13px; }
.ad-visual { flex: 1; background: #1a1c20; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-muted); }
.ad-foot { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--hairline); font-size: 12px; line-height: 16px; }
.ad-foot span:last-child { padding: 6px 10px; background: var(--volt); color: #050506; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* Rapport */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .stack { flex: 1 1 360px; }
.report { flex: 1 1 560px; min-width: 0; background: var(--panel); border: 1px solid var(--hairline); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.kpis div { background: var(--panel); padding: 16px; }
.kpis p:last-child { font-weight: 800; font-size: 26px; margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; border-bottom: 1px solid var(--hairline); }
.bars span { flex: 1; background: var(--hairline); }
.bars span:last-child { background: var(--volt); }

/* Formules */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--panel); border: 1px solid var(--hairline); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-weight: 800; font-size: 32px; line-height: 40px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.plan ul { padding-left: 18px; font-size: 15px; line-height: 26px; color: var(--ink-muted); }
.plan .btn { margin-top: auto; min-height: 48px; }

/* Impression */
.hero .print-hero { display: flex; flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: center; }
.print-hero > .stack-lg { flex: 1 1 560px; min-width: 0; gap: 24px; }
.mock-print { flex: 1 1 420px; min-width: 0; position: relative; height: 440px; }
.mock-print > div { position: absolute; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.mp-rollup { left: 6%; top: 0; width: 34%; height: 100%; background: var(--panel); border: 1px solid var(--hairline); }
.mp-flyer { left: 44%; top: 40px; width: 46%; height: 250px; background: var(--volt); color: #050506; transform: rotate(4deg); }
.mp-card { left: 50%; bottom: 20px; width: 38%; height: 110px; background: #f2f2ef; color: #050506; box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: rotate(-6deg); padding: 14px !important; }
.mock-print strong { font-weight: 800; font-size: 22px; line-height: 24px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { background: var(--panel); border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.product .media { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--hairline); background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-muted); }
.product .media .hud { position: absolute; top: 14px; left: 14px; }
.product .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { font-weight: 700; font-size: 20px; line-height: 26px; }
.product .formats { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); }
.pack { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding: 48px; border: 2px solid var(--accent); background: var(--panel); }
.pack > .stack { flex: 1 1 480px; }

/* Formulaires */
.form-split { display: flex; flex-wrap: wrap; gap: 48px; }
.form-split > .stack { flex: 1 1 340px; }
.form { flex: 2 1 560px; min-width: 0; background: var(--panel); border: 1px solid var(--hairline); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { min-height: 48px; padding: 10px 14px; background: var(--void); color: var(--ink); border: 1px solid var(--field-border); border-radius: 0; font: inherit; font-weight: 400; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form .full { grid-column: 1 / -1; }
.form-note { font-size: 13px; color: var(--ink-muted); }

/* Mobile */
@media (max-width: 1080px) {
  .grid-3, .plans, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 20px; }
}
@media (max-width: 900px) {
  .nav-cta .btn-primary .long { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .stat:nth-child(3) { padding-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 72px; }
  body { font-size: 16px; line-height: 26px; }
  .hero { padding: 56px 0 64px; }
  .grid-3, .plans, .products, .steps, .footer-grid, .form { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
  .pole { padding: 28px; min-height: 0; }
  .pole h3 { font-size: 24px; line-height: 30px; }
  .cell, .pack, .form { padding: 24px; }
  .hide-m { display: none !important; }
  .showreel { aspect-ratio: 4 / 3; }
  .play { width: 68px; height: 68px; }
  .mock-print { height: 340px; }
  .mp-card { bottom: -10px; }
  .mp-flyer { height: 200px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .phone { transform: scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Menu déroulant « Nos pôles » ---------- */
.has-sub { position: relative; }
.sub-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.sub-btn:hover, .has-sub.is-active > .sub-btn { color: var(--accent); }
.sub-btn svg { transition: transform .2s ease; }
.has-sub.open .sub-btn svg { transform: rotate(180deg); }
.sub { list-style: none; position: absolute; top: calc(100% + 22px); left: -24px; min-width: 340px; padding: 8px; background: var(--sub-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--hairline); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.has-sub.open .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 14px; white-space: nowrap; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--glass); color: var(--accent); }
.sub .hud { width: 36px; }

@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn-wa { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-bar { flex-wrap: wrap; padding-left: 16px; }
  .nav-bar.open .nav-links { display: flex; flex-direction: column; gap: 0; width: 100%; order: 3; padding: 8px 0; }
  .nav-bar.open .nav-links > li > a, .nav-bar.open .sub-btn { display: flex; width: 100%; padding: 14px 0; border-top: 1px solid var(--hairline); }
  .sub-btn svg { display: none; }
  .sub { position: static; min-width: 0; padding: 0 0 8px; background: none; border: 0; opacity: 1; visibility: visible; transform: none; backdrop-filter: none; }
  .sub::before { display: none; }
  .sub a { padding: 10px 0 10px 8px; }
}

/* ---------- Transitions entre pages ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: entete; }
.wa-float { view-transition-name: whatsapp; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* Apparition douce des sections au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Écrans (téléphones, vidéos, vignettes) : toujours sombres, dans les deux thèmes */
.phone, .showreel, .work {
  --panel: #0f1012; --panel-2: #14161a; --ink: #f2f2ef; --ink-muted: #8c8f96; --hairline: #23252a; --glass: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
:root[data-theme="light"] .showreel, :root[data-theme="light"] .work { border-color: #c4c6ca; }

/* Thème dans le menu mobile */
.menu-theme { display: none; }
.theme-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--hairline); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.theme-row .moon { display: none; }
:root[data-theme="light"] .theme-row .sun { display: none; }
:root[data-theme="light"] .theme-row .moon { display: block; }
@media (max-width: 600px) {
  .nav-bar { gap: 8px; padding: 8px 8px 8px 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding: 0 16px; min-height: 40px; }
  .nav-cta .btn-primary [aria-hidden="true"] { display: none; }
  .theme-btn, .menu-btn { width: 40px; height: 40px; }
}

/* ---------- Mode clair : le vert électrique en surligneur ---------- */
/* Grands mots d'accent : bande volt derrière un texte noir */
:root[data-theme="light"] .display .volt,
:root[data-theme="light"] .h1 .volt,
:root[data-theme="light"] .h2 .volt,
:root[data-theme="light"] .stat-num.volt,
:root[data-theme="light"] .city-name.volt {
  color: #050506;
  background: linear-gradient(transparent 12%, var(--volt) 12%, var(--volt) 90%, transparent 90%);
  padding: 0 .08em;
  margin: 0 -.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Petits libellés : étiquette volt */
:root[data-theme="light"] .hud.volt,
:root[data-theme="light"] .hud .volt {
  color: #050506;
  background: var(--volt);
  padding: 3px 7px;
  width: fit-content;
}
:root[data-theme="light"] .steps .hud.volt,
:root[data-theme="light"] .pole-top .hud.volt,
:root[data-theme="light"] .sub .hud.volt { display: inline-block; }
/* Liens : texte noir souligné volt */
:root[data-theme="light"] main a:not(.btn):not(.pole):not(.city):not(.work):not(.tag):not(.cell),
:root[data-theme="light"] .site-footer address a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--volt);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
:root[data-theme="light"] .pole .more,
:root[data-theme="light"] .nav-links a[aria-current="page"],
:root[data-theme="light"] .has-sub.is-active > .sub-btn {
  text-decoration: underline;
  text-decoration-color: var(--volt);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
:root[data-theme="light"] .nav-links a:hover, :root[data-theme="light"] .sub-btn:hover,
:root[data-theme="light"] .footer-grid nav a:hover, :root[data-theme="light"] .sub a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 6px; }
/* Icônes des pôles : pastille volt */
:root[data-theme="light"] .pole-top svg.volt { color: #050506; background: var(--volt); padding: 6px; width: 44px; height: 44px; }
/* Traits et cadres : volt, un peu plus épais pour rester visibles */
:root[data-theme="light"] .vf::before, :root[data-theme="light"] .vf::after,
:root[data-theme="light"] .vf-full > .vf-c { border-color: var(--volt); }
:root[data-theme="light"] .steps li:first-child::before { background: var(--volt); height: 4px; top: -3px; }
:root[data-theme="light"] .plan.featured, :root[data-theme="light"] .pack { border-color: var(--volt); border-width: 3px; }
:root[data-theme="light"] .phone.big { border-color: var(--volt); }
:root[data-theme="light"] .faq-list summary::after { color: #050506; background: var(--volt); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; }
:root[data-theme="light"] a.city:hover .city-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 4px; }
:root[data-theme="light"] .filter[aria-pressed="true"] { border-color: #050506; }
:root[data-theme="light"] .stat-num.volt { width: fit-content; margin: 12px 0 0 -.04em; line-height: 1.05; }

/* ---------- Logo et logos clients (gérés depuis l'admin) ---------- */
.brand.has-logo { gap: 0; }
.logo-img { display: block; height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.logo-light { display: none; }
:root[data-theme="light"] .brand.has-logo .logo-light { display: block; }
:root[data-theme="light"] .brand.has-logo .logo-light ~ .logo-dark,
:root[data-theme="light"] .brand.has-logo .logo-dark:has(+ .logo-light) { display: none; }
@media (max-width: 600px) { .logo-img { height: 26px; max-width: 130px; } }
.clients li:has(.client-logo) { display: flex; align-items: center; }
.client-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .62; transition: opacity .2s ease; }
.client-logo:hover { opacity: 1; }
:root[data-theme="light"] .client-logo { filter: grayscale(1) brightness(0); opacity: .58; }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product .media { overflow: hidden; }

/* Formulaires : piège à robots et message de confirmation */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; line-height: 1.6; padding: 14px 16px; border: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-status.ok { border-color: var(--whatsapp); }
.form-status.bad { border-color: var(--rec); }
.form-status .btn { min-height: 40px; }

/* Lecture YouTube dans la case */
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 6; background: #000; }
.playing { cursor: default; }
.playing > img, .playing > video, .playing .play, .playing .kind, .playing .cap, .playing .overlay, .playing .placeholder { visibility: hidden; }
.vf.reticle.playing::before, .vf.reticle.playing::after { display: none; }
.work.playing img { transform: none; }
.yt-close { position: absolute; top: 10px; right: 10px; z-index: 7; width: 36px; height: 36px; border-radius: 999px; border: 1px solid #23252a; background: rgba(5, 5, 6, .85); color: #f2f2ef; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yt-close:hover { background: var(--volt); color: #050506; border-color: var(--volt); }

/* Page Réalisations : sections par catégorie */
.cat-nav { position: sticky; top: 84px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px; margin: 0 -10px; background: color-mix(in srgb, var(--void) 88%, transparent); backdrop-filter: blur(10px); border-radius: 999px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-link { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cat-link span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--ink-muted); }
.cat-link:hover, .cat-link.on { border-color: var(--volt); }
.cat-link.on { background: var(--volt); color: #050506; }
.cat-link.on span { color: #050506; }
.cat-block { scroll-margin-top: 160px; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.cat-block + .cat-block { border-top: 1px solid var(--hairline); padding-top: 56px; }
.cat-head { display: grid; gap: 6px; }
.cat-head .h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.cat-count { font-family: "Geist Mono", ui-monospace, monospace; font-size: 16px; color: var(--volt); font-weight: 500; }
:root[data-theme="light"] .cat-count { color: var(--ink); background: var(--volt); padding: 0 6px; }
.cat-head p.muted:last-child { margin: 0; max-width: 560px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles .work { aspect-ratio: 4 / 3; }
.tiles-video { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-video .work { aspect-ratio: 16 / 9; }
.tiles-reel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles-reel .work { aspect-ratio: 9 / 16; }
.tiles-infographie .work { aspect-ratio: 4 / 5; }
.tiles-social .work { aspect-ratio: 1 / 1; }
.tiles .work .cap strong { font-size: 14px; }
.tiles-reel .work .cap { padding: 10px 12px; }
.tiles.is-limited .work.extra { display: none; }
.more-row { display: flex; justify-content: center; }
@media (max-width: 1000px) {
  .tiles, .tiles-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-reel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cat-nav { top: 72px; }
  .tiles { gap: 10px; }
  .tiles-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-video.is-limited .work:nth-child(n+7) { display: none; }
  .tiles .work .play-sm { width: 40px; height: 40px; }
  .tiles .work .play-sm svg { width: 15px; height: 15px; }
  .tiles .work .kind { top: 8px; left: 8px; font-size: 10px; padding: 3px 6px; }
  .tiles .work .cap { padding: 8px 10px; }
  .tiles .work .cap strong { font-size: 12.5px; line-height: 16px; }
  .tiles .work .cap .hud { display: none; }
  .tiles-reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .tiles-reel .work { flex: 0 0 62%; scroll-snap-align: start; }
  .tiles-reel.is-limited .work { display: block !important; }
  .tiles-reel + .more-row { display: none; }
}

/* =========================================================
   Animations (désactivées si l'appareil demande moins de mouvement)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Intro de l'accueil : le titre, les pôles puis le showreel apparaissent l'un après l'autre */
  .hero .hud-row, .hero .display, .hero .h1, .hero > .wrap > .tags li, .hero-foot, .hero .showreel, .hero .breadcrumb, .hero .muted { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hud-row, .hero .breadcrumb { animation-delay: .05s; }
  .hero .display, .hero .h1 { animation-delay: .12s; }
  .hero > .wrap > .tags li:nth-child(1) { animation-delay: .32s; }
  .hero > .wrap > .tags li:nth-child(2) { animation-delay: .38s; }
  .hero > .wrap > .tags li:nth-child(3) { animation-delay: .44s; }
  .hero > .wrap > .tags li:nth-child(4) { animation-delay: .50s; }
  .hero-foot, .hero .muted { animation-delay: .5s; }
  .hero .showreel { animation: frame-in 1.1s cubic-bezier(.2, .7, .2, 1) .55s both; }
  .hero .vf-c { animation: corners 1s cubic-bezier(.2, .7, .2, 1) .9s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }
  @keyframes frame-in { from { opacity: 0; transform: scale(.96); clip-path: inset(8% 8% 8% 8%); } to { clip-path: inset(0); } }
  @keyframes corners { from { opacity: 0; transform: scale(1.6); } }

  /* Mot surligné « El Jadida » : trait vert qui se dessine */
  .display .volt { background: linear-gradient(var(--volt), var(--volt)) left 92% / 0 4px no-repeat; animation: underline .9s cubic-bezier(.6, 0, .2, 1) 1s forwards; }
  @keyframes underline { to { background-size: 100% 4px; } }
  :root[data-theme="light"] .display .volt { animation: none; }

  /* Halo lumineux qui respire */
  .hero-glow { animation: glow 9s ease-in-out infinite alternate; }
  @keyframes glow { from { transform: translateX(-50%) scale(1); opacity: .8; } to { transform: translateX(-46%) scale(1.15); opacity: 1; } }

  /* Point REC qui clignote */
  .rec-dot { animation: rec 1.4s steps(2, jump-none) infinite; }
  @keyframes rec { 50% { opacity: .25; } }

  /* Bouton lecture : onde verte */
  .play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--volt); animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; pointer-events: none; }
  .work .play-sm::after { animation-duration: 3s; }
  .playing .play::after { animation: none; }
  @keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

  /* Apparition en cascade des cartes quand une section entre à l'écran */
  .reveal .stagger { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .reveal.in .stagger { opacity: 1; transform: none; }

  /* Défilement continu des clients */
  .marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .clients .marquee-track { flex-wrap: nowrap; width: max-content; animation: marquee 32s linear infinite; }
  .clients .marquee-track li { flex: none; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 22px)); } }

  /* Boutons : flèche qui avance, reflet lumineux */
  .btn span[aria-hidden="true"] { display: inline-block; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
  .btn:hover span[aria-hidden="true"] { transform: translateX(5px); }
  .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
  .btn-primary:hover::before { transform: translateX(120%); transition: transform .7s ease; }
  .btn:active { transform: scale(.97); }

  /* Cartes des pôles : légère élévation et icône qui bouge */
  .pole { transition: background .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
  .pole:hover { transform: translateY(-4px); }
  .pole .pole-top svg { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .pole:hover .pole-top svg { transform: rotate(-8deg) scale(1.12); }
  .pole .more { transition: letter-spacing .3s ease; }
  .pole:hover .more { letter-spacing: .04em; }

  /* Vignettes : cadre vert au survol, bouton lecture qui grossit */
  .work::before { content: ""; position: absolute; inset: 0; z-index: 4; border: 2px solid var(--volt); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
  .work:hover::before { opacity: 1; }
  .work.playing::before { opacity: 0; }
  .work .play-sm { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
  .work:hover .play-sm { transform: translate(-50%, -50%) scale(1.15); }
  .work .cap { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }

  /* En-tête : plus compact après défilement */
  .site-header { transition: padding .3s ease; }
  .site-header.scrolled { padding-top: 8px; }
}

/* Barre de progression de lecture en haut de la page */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--volt); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* =========================================================
   Albums photo
   ========================================================= */
.type-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.album-card .kind { background: var(--volt); color: #050506; }
.album-card::after { content: ""; position: absolute; inset: 8px 8px auto auto; width: 34%; height: 34%; border-top: 2px solid rgba(255, 255, 255, .5); border-right: 2px solid rgba(255, 255, 255, .5); pointer-events: none; z-index: 2; transform: translate(4px, -4px); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.album-card:hover::after { opacity: 1; transform: none; }
.album-hero .h1 { max-width: 18ch; }
.album-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--ink-muted); }
.album-meta li + li::before { content: "·"; margin-right: 20px; color: var(--volt); }
.album-desc { max-width: 680px; margin-top: 8px; white-space: pre-line; }
/* Grille « justifiée » : chaque photo garde ses proportions, les lignes sont pleines */
.album-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.album-grid::after { content: ""; flex-grow: 1e4; }
.album-grid .ph { position: relative; display: block; flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 230px); aspect-ratio: var(--r, 1.5); overflow: hidden; background: var(--panel); cursor: zoom-in; }
.album-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.album-grid .ph:hover img { transform: scale(1.04); }
.album-back { margin-top: 32px; }
.album-more { border-top: 1px solid var(--hairline); }
@media (max-width: 640px) {
  .album-grid { gap: 4px; }
  .album-grid .ph { flex-basis: calc(var(--r, 1.5) * 105px); }
}
/* Visionneuse plein écran */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 5, 6, .96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s ease; }
.lb img.loading { opacity: .25; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 1px solid #23252a; background: rgba(15, 16, 18, .85); color: #f2f2ef; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--volt); color: #050506; border-color: var(--volt); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #a9acb3; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .08em; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } .lb img { max-height: calc(100vh - 150px); } }

/* Mise en page justifiée (calculée en JS) */
.album-grid.is-justified { gap: var(--gap, 8px); }
.album-grid.is-justified::after { display: none; }
.album-grid.is-justified .ph { flex: none; aspect-ratio: auto; }
.album-grid .ph::after { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 6, 0); transition: background .3s ease; pointer-events: none; }
.album-grid:hover .ph::after { background: rgba(5, 5, 6, .28); }
.album-grid:hover .ph:hover::after { background: rgba(5, 5, 6, 0); }
.album-grid .ph:focus-visible { outline-offset: -3px; }
