:root {
  --ivory: #F6F3EC;
  --ivory-2: #EDE7DA;
  --surface: #FFFFFF;
  --ink: #111110;
  --ink-muted: #5C5952;
  --ink-soft: #8B867B;
  --border: rgba(17, 17, 16, 0.11);
  --border-strong: rgba(17, 17, 16, 0.22);

  --dark: #0B0B0C;
  --dark-2: #151517;
  --dark-card: rgba(255, 255, 255, 0.045);
  --dark-border: rgba(255, 255, 255, 0.11);
  --light-ink: #F6F3EC;
  --light-muted: #B6AFA4;

  --accent: #F25C19;
  --accent-rgb: 242, 92, 25;
  --accent-soft: rgba(242, 92, 25, 0.14);
  --accent-glow: rgba(242, 92, 25, 0.34);
  --accent-on: #FFFFFF;

  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-accent="yellow"] {
  --accent: #E2AE08;
  --accent-rgb: 226, 174, 8;
  --accent-soft: rgba(244, 196, 24, 0.18);
  --accent-glow: rgba(244, 196, 24, 0.38);
  --accent-on: #111110;
}

body[data-accent="orange"] {
  --accent: #F25C19;
  --accent-rgb: 242, 92, 25;
  --accent-soft: rgba(242, 92, 25, 0.14);
  --accent-glow: rgba(242, 92, 25, 0.36);
  --accent-on: #FFFFFF;
}

body[data-accent="blue"] {
  --accent: #1E78E8;
  --accent-rgb: 30, 120, 232;
  --accent-soft: rgba(30, 120, 232, 0.14);
  --accent-glow: rgba(30, 120, 232, 0.34);
  --accent-on: #FFFFFF;
}

body[data-accent="green"] {
  --accent: #5C7356;
  --accent-rgb: 92, 115, 86;
  --accent-soft: rgba(110, 130, 104, 0.16);
  --accent-glow: rgba(110, 130, 104, 0.34);
  --accent-on: #FFFFFF;
}

body[data-accent="black"] {
  --accent: #1C1C1E;
  --accent-rgb: 28, 28, 30;
  --accent-soft: rgba(28, 28, 30, 0.11);
  --accent-glow: rgba(28, 28, 30, 0.24);
  --accent-on: #FFFFFF;
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out);
}

body.is-lightbox-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

/* TEXTURES D'ATELIER : GRAIN & GRILLE PLATEAU */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.buildplate-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(17, 17, 16, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 16, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 90%);
}

/* HEADER FLOTTANT */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 32px));
  z-index: 60;
  transition: transform 0.35s var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(17, 17, 16, 0.06);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled .header-inner {
  background: rgba(246, 243, 236, 0.92);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(17, 17, 16, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ivory);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.25s, background-color 0.25s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(17, 17, 16, 0.055);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcode-readout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 16, 0.045);
  border: 1px solid rgba(17, 17, 16, 0.08);
  color: var(--ink-muted);
}

.gcode-readout .mono {
  font-size: 0.67rem;
  white-space: nowrap;
}

.gcode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: background-color 0.4s;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), background-color 0.3s;
}

.btn-header:hover {
  background: var(--accent);
  color: var(--accent-on);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-drawer {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(246, 243, 236, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 48px rgba(17, 17, 16, 0.14);
  display: grid;
  gap: 6px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-link {
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
}

.mobile-link:hover {
  background: rgba(17, 17, 16, 0.05);
}

.mobile-link--cta {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  margin-top: 4px;
}

/* BOUTONS PARTAGÉS */
.btn-primary,
.btn-ghost,
.btn-ghost-sm,
.btn-ghost-dark,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn-primary {
  padding: 14px 24px;
  border: 0;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.95rem;
  box-shadow: 0 12px 26px rgba(17, 17, 16, 0.14);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-on);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--accent-glow);
}

.btn-ghost {
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.btn-ghost-sm {
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  font-size: 0.86rem;
}

.btn-ghost-sm:hover {
  border-color: var(--ink);
  background: rgba(17, 17, 16, 0.04);
}

.btn-ghost-dark {
  padding: 13px 20px;
  border: 1px solid rgba(17, 17, 16, 0.28);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 0.88rem;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.section-house[data-mode="night"] .btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--light-ink);
}

.section-house[data-mode="night"] .btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline {
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 0.88rem;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn-link {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.25s;
}

.btn-link:hover {
  color: var(--accent);
}

/* SECTION HEADERS */
.section-head {
  margin-bottom: 44px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.section-index::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.section-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.3vw, 3.65rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 54ch;
}

/* HERO SCÉNOGRAPHIQUE */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  padding: 124px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.hero-ambient {
  position: absolute;
  top: -12%;
  right: 4%;
  width: min(680px, 75vw);
  height: min(680px, 75vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(var(--accent-rgb), 0.06) 46%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
  transition: background 0.6s var(--ease-out);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.85rem, 6.2vw, 5.15rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
}

.hero-title .serif-italic {
  font-size: 1.08em;
  color: var(--accent);
  transition: color 0.4s;
}

.accent-dot {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: var(--ink-muted);
  max-width: 50ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 500px;
}

.spec-item dt {
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-size: 0.66rem;
}

.spec-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

/* SCÈNE PRODUIT HERO */
.hero-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0%, rgba(237, 231, 218, 0.62) 68%, rgba(226, 218, 203, 0.72) 100%);
  border: 1px solid rgba(17, 17, 16, 0.12);
  box-shadow:
    0 34px 70px rgba(17, 17, 16, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.stage-reticle {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.reticle-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(17, 17, 16, 0.26);
  border-style: solid;
  border-width: 0;
}

.reticle-corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.reticle-corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.reticle-corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reticle-corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.reticle-label {
  position: absolute;
  top: 2px;
  left: 22px;
  font-size: 0.64rem;
  color: var(--ink-soft);
}

.stage-halo {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  filter: blur(28px);
  opacity: 0.78;
  transition: background 0.5s var(--ease-out);
  pointer-events: none;
}

.stage-rings {
  position: absolute;
  bottom: 13%;
  width: 82%;
  color: var(--ink);
  pointer-events: none;
}

.stage-shadow {
  position: absolute;
  bottom: 15%;
  width: 48%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(17, 17, 16, 0.34) 0%, transparent 72%);
  filter: blur(8px);
  animation: shadowFloat 4.8s ease-in-out infinite;
  pointer-events: none;
}

.stage-object-tilt {
  position: relative;
  z-index: 2;
  width: 68%;
  height: 68%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
}

.stage-product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(17, 17, 16, 0.18));
  animation: levitate 4.8s ease-in-out infinite;
  transition: opacity 0.28s ease, transform 0.35s var(--ease-out);
}

.stage-product-img.is-swapping {
  opacity: 0;
  transform: scale(0.94) translateY(8px);
}

@keyframes levitate {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-11px); }
}

@keyframes shadowFloat {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(0.86); opacity: 0.56; }
}

.stage-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.stage-caption-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stage-caption-meta .mono {
  color: var(--accent);
  font-size: 0.67rem;
}

.stage-caption-meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.stage-layer-badge {
  font-size: 0.63rem;
  color: var(--ink-muted);
}

.hero-swatches {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 17, 16, 0.05);
}

.swatches-label {
  font-size: 0.66rem;
  color: var(--ink-muted);
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-btn {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.swatch-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swatch-btn:hover {
  transform: scale(1.12);
}

.swatch-btn.is-active {
  border-color: var(--ink);
  transform: scale(1.1);
}

.swatch-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.swatch-btn:hover .swatch-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scroll-cue {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.scroll-cue .mono {
  font-size: 0.64rem;
}

.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--ink-soft), transparent);
}

/* TICKER TECHNIQUE */
.ticker-bar {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--ivory);
  padding: 13px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  animation: tickerScroll 34s linear infinite;
}

.ticker-sep {
  color: var(--accent);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTION 01 : PUFFER STUDIO */
.section-puffer {
  position: relative;
  padding: 108px 0 96px;
  z-index: 1;
}

.puffer-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 72px;
}

.studio-viewer {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ivory-2);
  display: grid;
  place-items: center;
  padding: 58px 34px 42px;
  box-shadow: 0 28px 60px rgba(17, 17, 16, 0.08);
}

.studio-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.95) 0%, rgba(var(--accent-rgb), 0.15) 58%, rgba(var(--accent-rgb), 0.24) 100%);
  transition: background 0.55s var(--ease-out);
}

.studio-hud-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-badge,
.studio-angle-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.66rem;
}

.studio-badge {
  color: var(--ink);
  font-weight: 500;
}

.studio-angle-tag {
  color: var(--ink-muted);
}

.studio-cutout-frame {
  position: relative;
  z-index: 2;
  width: min(410px, 84%);
  height: 360px;
  display: grid;
  place-items: center;
}

.studio-cutout-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(17, 17, 16, 0.22));
  transition: opacity 0.26s ease, transform 0.38s var(--ease-out);
}

.studio-cutout-img.is-swapping {
  opacity: 0;
  transform: scale(0.95);
}

.studio-raw-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 164px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(17, 17, 16, 0.14);
  cursor: pointer;
  text-align: left;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
}

.studio-raw-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 36px rgba(17, 17, 16, 0.2);
}

.studio-raw-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 9px;
}

.raw-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
}

.raw-card-meta .mono {
  font-size: 0.6rem;
  color: var(--ink-muted);
}

.raw-zoom-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

/* CONTRÔLES DU STUDIO */
.studio-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(17, 17, 16, 0.05);
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.control-label {
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.control-value {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

.color-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.color-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--ivory);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, transform 0.22s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}

.color-pill:last-child {
  grid-column: 1 / -1;
}

.color-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.color-pill.is-active {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 17, 16, 0.08);
}

.pill-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 3px 6px rgba(0, 0, 0, 0.16);
}

.pill-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pill-info strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.pill-info small {
  font-size: 0.62rem;
  color: var(--ink-soft);
}

.angle-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: var(--ivory-2);
  border: 1px solid var(--border);
}

.angle-tab {
  padding: 10px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.angle-tab.is-active {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 6px 16px rgba(17, 17, 16, 0.16);
}

.studio-spec-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ivory);
  border: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  border-bottom: 1px dashed rgba(17, 17, 16, 0.1);
  padding-bottom: 8px;
}

.spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-row .mono {
  color: var(--ink-soft);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.spec-row span:last-child {
  text-align: right;
  font-weight: 500;
}

.studio-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* BENTO CONTEXTE BUREAU */
.desk-context-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.sub-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.desk-context-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.desk-context-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.desk-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}

.bento-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ivory-2);
  cursor: zoom-in;
  grid-column: span 4;
}

.bento-card.bento-wide {
  grid-column: span 5;
  grid-row: span 2;
}

.bento-card.bento-tall {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
}

.bento-card:nth-child(2),
.bento-card:nth-child(3) {
  grid-column: span 4;
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.bento-card:hover img {
  transform: scale(1.05);
}

.bento-card figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 16, 0.72);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-card figcaption .mono {
  font-size: 0.62rem;
  color: #FFB28E;
}

.bento-card figcaption span:last-child {
  font-size: 0.84rem;
  font-weight: 500;
}

/* SECTION 02 : VEILLEUSE JOUR / NUIT */
.section-house {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  transition: background-color 0.65s var(--ease-out), color 0.65s var(--ease-out);
  z-index: 1;
}

.section-house[data-mode="night"] {
  background: var(--dark);
  color: var(--light-ink);
  --house-card-bg: rgba(255, 255, 255, 0.05);
  --house-card-border: rgba(255, 255, 255, 0.12);
  --house-muted: #B6AFA4;
}

.section-house[data-mode="day"] {
  background: #ECE5D6;
  color: var(--ink);
  --house-card-bg: rgba(255, 255, 255, 0.65);
  --house-card-border: rgba(17, 17, 16, 0.12);
  --house-muted: var(--ink-muted);
}

.house-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 43, 0.24), transparent 56%);
  opacity: 1;
  transition: opacity 0.65s var(--ease-out);
}

.section-house[data-mode="day"] .house-ambient-glow {
  opacity: 0;
}

.house-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.house-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 510px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--house-card-border);
  background: radial-gradient(circle at 50% 62%, rgba(255, 118, 48, 0.18) 0%, rgba(255, 255, 255, 0.03) 65%);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 36px 28px 66px;
  transition: background 0.65s var(--ease-out), border-color 0.65s;
}

.section-house[data-mode="day"] .house-stage {
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #DFD5C3 100%);
  box-shadow: 0 28px 60px rgba(17, 17, 16, 0.09);
}

.house-halo {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 52, 0.56) 0%, rgba(255, 68, 28, 0.22) 45%, transparent 72%);
  filter: blur(34px);
  animation: candleFlicker 3.6s ease-in-out infinite;
  transition: opacity 0.55s var(--ease-out);
  pointer-events: none;
}

.section-house[data-mode="day"] .house-halo {
  opacity: 0;
}

@keyframes candleFlicker {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  35% { transform: scale(1.06); opacity: 1; }
  70% { transform: scale(0.96); opacity: 0.78; }
}

.house-layers {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.house-img {
  position: absolute;
  bottom: 16px;
  max-height: 86%;
  max-width: 84%;
  object-fit: contain;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s;
}

.house-img--night {
  opacity: 1;
  filter: drop-shadow(0 22px 40px rgba(255, 86, 30, 0.35));
}

.house-img--day {
  opacity: 0;
  transform: scale(0.985);
  filter: drop-shadow(0 24px 32px rgba(17, 17, 16, 0.22));
}

.section-house[data-mode="day"] .house-img--night {
  opacity: 0;
  transform: scale(0.985);
}

.section-house[data-mode="day"] .house-img--day {
  opacity: 1;
  transform: scale(1);
}

.house-pedestal {
  position: absolute;
  bottom: 6px;
  width: 66%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 118, 48, 0.42) 0%, transparent 72%);
  filter: blur(8px);
  transition: background 0.6s;
}

.section-house[data-mode="day"] .house-pedestal {
  background: radial-gradient(ellipse, rgba(17, 17, 16, 0.28) 0%, transparent 72%);
}

.house-stage-hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--house-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--house-card-border);
}

.house-stage-hud .mono {
  font-size: 0.64rem;
}

.house-zoom-btn,
.gear-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--house-card-border, var(--border));
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}

.house-zoom-btn:hover,
.gear-zoom-btn:hover {
  background: var(--accent);
  color: var(--accent-on);
  transform: scale(1.06);
}

.section-house .section-desc {
  color: var(--house-muted);
  margin-top: 18px;
  margin-bottom: 28px;
}

.lantern-switch-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--house-card-bg);
  border: 1px solid var(--house-card-border);
  margin-bottom: 20px;
}

.switch-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-title {
  color: var(--accent);
  font-size: 0.66rem;
}

.switch-subtitle {
  font-size: 0.92rem;
  font-weight: 500;
}

.lantern-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--house-card-border);
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  min-width: 176px;
}

.section-house[data-mode="day"] .lantern-toggle {
  background: rgba(17, 17, 16, 0.08);
}

.toggle-opt {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #FF6B2B;
  box-shadow: 0 4px 14px rgba(255, 107, 43, 0.45);
  transition: transform 0.38s var(--ease-out), background-color 0.38s;
}

.section-house[data-mode="night"] .toggle-thumb {
  transform: translateX(100%);
}

.section-house[data-mode="night"] .toggle-night {
  color: #FFFFFF;
}

.section-house[data-mode="night"] .toggle-day {
  color: var(--light-muted);
}

.section-house[data-mode="day"] .toggle-thumb {
  transform: translateX(0);
  background: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 17, 16, 0.2);
}

.section-house[data-mode="day"] .toggle-day {
  color: var(--ivory);
}

.house-anatomy-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--house-card-bg);
  border: 1px solid var(--house-card-border);
  margin-bottom: 26px;
}

.anatomy-thumb {
  position: relative;
  height: 112px;
  border-radius: 14px;
  border: 1px solid var(--house-card-border);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  cursor: zoom-in;
  overflow: hidden;
}

.anatomy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease-out);
}

.anatomy-thumb:hover img {
  transform: scale(1.07);
}

.anatomy-zoom {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(17, 17, 16, 0.78);
  color: #FFFFFF;
  font-size: 0.56rem;
}

.anatomy-tag {
  display: block;
  font-size: 0.64rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.anatomy-copy h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.anatomy-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--house-muted);
  line-height: 1.5;
}

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

.section-house[data-mode="night"] .btn-primary {
  background: #FF6B2B;
  color: #FFFFFF;
}

.section-house[data-mode="night"] .btn-primary:hover {
  background: #FF824A;
}

/* SECTION 03 : DIPTYQUE INGÉNIERIE */
.section-engineering {
  position: relative;
  padding: 108px 0;
  z-index: 1;
}

.diptych-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.eng-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(17, 17, 16, 0.06);
}

.eng-card-top {
  padding: 24px 26px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eng-ref {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.eng-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.eng-view-pills {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ivory-2);
  border: 1px solid var(--border);
}

.mini-tab {
  padding: 6px 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.mini-tab.is-active {
  background: var(--ink);
  color: var(--ivory);
}

.macro-stage,
.gear-stage {
  position: relative;
  margin-inline: 20px;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #171718;
  border: 1px solid var(--border);
}

.macro-stage[data-view="cut"],
.gear-stage[data-view="cut"] {
  background: radial-gradient(circle at 50% 45%, #2B2B2D 0%, #121213 100%);
}

.macro-img,
.gear-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out), opacity 0.25s;
}

.macro-stage[data-view="cut"] .macro-img,
.gear-stage[data-view="cut"] .gear-img {
  object-fit: contain;
  padding: 20px;
}

/* LOUPE MACRO INTERACTIVE */
.macro-stage {
  cursor: crosshair;
}

.macro-lens {
  position: absolute;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 4;
}

.macro-lens.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.macro-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 16, 0.74);
  backdrop-filter: blur(8px);
  color: var(--ivory);
}

.macro-hud .mono {
  font-size: 0.62rem;
}

.macro-toggle-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.62rem;
  cursor: pointer;
}

.macro-toggle-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.gear-kinetic-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 16, 0.76);
  backdrop-filter: blur(8px);
  color: var(--ivory);
}

.gear-kinetic-badge .mono {
  font-size: 0.62rem;
}

.spin-gear {
  color: #5DA7FF;
  animation: spinSlow 9s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gear-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #FFFFFF;
  background: rgba(17, 17, 16, 0.76);
  border-color: rgba(255, 255, 255, 0.2);
}

.eng-card-body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.eng-card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.eng-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eng-specs-bar span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ivory);
  border: 1px solid var(--border);
  font-size: 0.64rem;
  color: var(--ink-muted);
}

.eng-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

/* SECTION 04 : PROCESSUS */
.section-process {
  position: relative;
  padding: 86px 0;
  background: var(--ivory-2);
  border-block: 1px solid var(--border);
  z-index: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 17, 16, 0.08);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  color: var(--accent);
  font-weight: 500;
}

.step-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ivory-2);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.process-step h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.2;
}

.process-step p {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  flex: 1;
}

.step-meta {
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  color: var(--ink-soft);
  font-size: 0.65rem;
}

/* SECTION 05 : GALERIE COMPLÈTE */
.section-gallery {
  position: relative;
  padding: 108px 0;
  z-index: 1;
}

.gallery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.count-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.gallery-mosaic {
  columns: 4 250px;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ivory-2);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(17, 17, 16, 0.12);
}

.gallery-item img {
  width: 100%;
  transition: transform 0.55s var(--ease-out);
}

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

.gallery-overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 16, 0.78);
  backdrop-filter: blur(8px);
  color: var(--ivory);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s, transform 0.28s var(--ease-out);
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay .mono {
  display: block;
  font-size: 0.6rem;
  color: #FFB28E;
  margin-bottom: 2px;
}

.gallery-overlay strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.25;
}

/* SECTION 06 : SUR-MESURE & COMMANDE */
.section-order {
  position: relative;
  padding: 28px 0 112px;
  z-index: 1;
}

.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 34px 70px rgba(17, 17, 16, 0.18);
}

.order-shell .section-desc {
  color: var(--light-muted);
  margin-top: 18px;
}

.order-highlights {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.highlight-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.highlight-item .mono {
  color: #FF9E70;
  font-size: 0.64rem;
}

.highlight-item strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.order-builder {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr);
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.66rem;
  color: var(--light-muted);
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 11, 12, 0.68);
  color: var(--ivory);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.summary-preview {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.summary-preview-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-preview-head .mono {
  font-size: 0.62rem;
  color: var(--light-muted);
}

#copyStatus {
  color: #77E59D;
}

.summary-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #EAE4D8;
}

.order-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-shell .btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.order-shell .btn-outline {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ivory);
}

.order-shell .btn-outline:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 44px 0 54px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  gap: 28px;
  align-items: start;
}

.footer-brand .brand-name {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

/* LIGHTBOX PLEIN ÉCRAN */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(14px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ivory);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-cat {
  color: #FF9E70;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

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

.lightbox-figure {
  margin: 0;
  max-height: 74vh;
  display: grid;
  place-items: center;
}

.lightbox-figure img {
  max-height: 74vh;
  max-width: 100%;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(17, 17, 16, 0.72);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

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

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lightbox-caption {
  margin: 0;
  font-size: 0.96rem;
  color: #EFEAE0;
}

.lightbox-hint {
  font-size: 0.64rem;
  color: var(--light-muted);
}

/* RESPONSIVE */
@media (max-width: 1060px) {
  .main-nav,
  .gcode-readout {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .puffer-studio,
  .house-grid,
  .diptych-grid,
  .order-shell,
  .section-head-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-stage {
    max-width: 460px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .desk-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .bento-card,
  .bento-card.bento-wide,
  .bento-card.bento-tall,
  .bento-card:nth-child(2),
  .bento-card:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 30px);
  }

  .btn-header {
    display: none;
  }

  .hero-specs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .studio-viewer {
    min-height: 430px;
    padding: 58px 18px 118px;
  }

  .studio-raw-card {
    width: 132px;
    right: 12px;
    bottom: 12px;
  }

  .color-pills,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .desk-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .house-anatomy-card {
    grid-template-columns: 1fr;
  }

  .anatomy-thumb {
    height: 150px;
  }

  .macro-stage,
  .gear-stage {
    height: 290px;
    margin-inline: 14px;
  }

  .eng-card-top,
  .eng-card-body,
  .studio-controls {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .stage-product-img,
  .stage-shadow,
  .house-halo,
  .spin-gear,
  .pulse-dot {
    animation: none !important;
  }
}
