/* ═══════════════════════════════════════════════════════
   VIEW TRANSITIONS — dépliage entre pages
═══════════════════════════════════════════════════════ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fold-out .55s cubic-bezier(.6,.02,.25,1) both; }
::view-transition-new(root) { animation: vt-fold-in .65s cubic-bezier(.2,.8,.3,1) .1s both; }
@keyframes vt-fold-out { from { clip-path: inset(0 0 0 0); opacity: 1; } to { clip-path: inset(0 100% 0 0); opacity: .4; } }
@keyframes vt-fold-in  { from { clip-path: inset(0 0 0 100%); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════
   THÈMES JOUR / NUIT — palette cohérente avec le reste
   du site (pas de bleu). Le vocabulaire visuel s'inspire
   de l'impression 3D et d'une approche paramétrique :
   layer lines, contours, wireframes, tranches.
═══════════════════════════════════════════════════════ */
:root {
  --bk: #0e0e0e;
  --wh: #f5f5f3;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Palette DAY — blanc éditorial (pas de crème cassé) */
  --bg: #fafafa;
  --bg-2: #f2f2f1;
  --text: #0e0e0e;
  --text-soft: rgba(14,14,14,.58);
  --border: rgba(14,14,14,.12);
  --card: #ffffff;
  --card-shadow: 0 16px 50px rgba(14,14,14,.06);
  --accent: #0e0e0e;
  --contour: rgba(14,14,14,.07);
  --contour-strong: rgba(14,14,14,.16);
  --layer: rgba(14,14,14,.04);
  --wire: #0e0e0e;
  --wire-fill: #ffffff;
}
html[data-mode="night"] {
  --bg: #0e0e0e;
  --bg-2: #181818;
  --text: #f5f5f3;
  --text-soft: rgba(245,245,243,.55);
  --border: rgba(245,245,243,.1);
  --card: #141414;
  --card-shadow: 0 20px 60px rgba(0,0,0,.55);
  --accent: #d9a770; /* ambre discret, non lumineux */
  --contour: rgba(245,245,243,.07);
  --contour-strong: rgba(245,245,243,.18);
  --layer: rgba(245,245,243,.04);
  --wire: #f5f5f3;
  --wire-fill: #1a1a1a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 1.2s cubic-bezier(.4,0,.2,1), color 1.2s cubic-bezier(.4,0,.2,1);
  cursor: none;
  overflow-x: hidden;
}
@media (pointer: coarse) { body { cursor: auto; } }

/* ═══════════════════════════════════════════════════════
   LAYER LINES — trames paramétriques en fond
   Une fine grille horizontale évoquant les couches
   d'impression 3D, plus un grain topographique subtil.
═══════════════════════════════════════════════════════ */
.layer-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      var(--layer) 0 1px,
      transparent 1px 6px
    );
  opacity: .9;
  transition: opacity 1.2s ease;
}
.layer-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, var(--contour) 0%, transparent 70%);
  opacity: .7;
}

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  translate: var(--cx, -50px) var(--cy, -50px);
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: translate;
}
@media (pointer: coarse) { #cursor { display: none; } }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 24px clamp(24px, 4vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  transition: background .5s ease, padding .4s ease, backdrop-filter .4s ease;
}
#nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  padding: 16px clamp(24px, 4vw, 72px);
}
.nav-logo {
  font-size: 14px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text); text-decoration: none;
  transition: color 1s ease;
}
.nav-links {
  display: flex; gap: clamp(18px, 2.6vw, 42px);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.nav-links a {
  color: color-mix(in srgb, var(--text) 68%, transparent);
  text-decoration: none;
  transition: color .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex; gap: 6px;
  font-size: 11px; letter-spacing: .2em;
}
.lang-switch button {
  background: none; border: none;
  color: color-mix(in srgb, var(--text) 45%, transparent);
  cursor: none; font: inherit; padding: 4px 2px;
  transition: color .3s ease;
}
.lang-switch button.active { color: var(--text); }
.lang-sep { color: color-mix(in srgb, var(--text) 30%, transparent); }

/* ═══════════════════════════════════════════════════
   DAY/NIGHT TOGGLE — switch minimaliste, pas de glow
═══════════════════════════════════════════════════ */
.mode-toggle {
  position: fixed;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vh, 40px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  cursor: none;
  z-index: 200;
  transition: background .6s ease, border-color .6s ease, color .6s ease;
}
.mode-toggle:hover { border-color: var(--text); }
.mode-toggle-track {
  position: relative;
  width: 32px; height: 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: border-color .6s ease;
}
.mode-toggle-track::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 12px; height: 12px;
  background: var(--text);
  border-radius: 50%;
  transition: transform .6s cubic-bezier(.4,0,.2,1), background .6s ease;
}
html[data-mode="night"] .mode-toggle-track::before {
  transform: translateX(16px);
}
.mode-toggle-label {
  display: inline-block;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   HERO — motif paramétrique en fond (contours)
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(140px, 22vh, 220px) clamp(24px, 4vw, 72px) clamp(60px, 10vh, 120px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
/* Contours topographiques paramétriques */
.hero-contours {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  pointer-events: none;
  z-index: 0;
  color: var(--contour-strong);
  opacity: .85;
}
.hero-contours svg { width: 100%; height: 100%; display: block; }
.hero-contours circle,
.hero-contours ellipse,
.hero-contours path { fill: none; stroke: currentColor; stroke-width: .8; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}
.hero-kicker {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 30px;
  font-weight: 400;
}
.hero-kicker::before {
  content: ''; width: 40px; height: 1px; background: currentColor;
}
.hero-title {
  font-weight: 200;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--text);
  transition: color 1s ease;
}
.hero-title strong {
  display: block;
  font-weight: 600;
}
.hero-sub {
  margin-top: 34px;
  max-width: 560px;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.85;
  color: var(--text-soft);
}
.hero-back {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 38px;
  padding-bottom: 6px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
  transition: color .3s ease, border-color .3s ease, gap .3s ease;
}
.hero-back:hover { color: var(--text); border-color: var(--text); gap: 20px; }
.hero-back .arrow-l {
  display: inline-block; width: 22px; height: 1px; background: currentColor; position: relative;
}
.hero-back .arrow-l::after {
  content: ''; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-left: 1px solid currentColor;
  transform: rotate(-45deg);
}

/* Ligne d'intro en pied de hero */
.hero-scroll {
  position: absolute;
  left: clamp(24px, 4vw, 72px);
  bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-soft);
  z-index: 2;
}
.hero-scroll .line {
  width: 60px; height: 1px;
  background: currentColor;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   MANIFESTO — pensée de l'atelier
═══════════════════════════════════════════════════ */
.manifesto {
  padding: clamp(80px, 12vh, 160px) clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(30px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.manifesto-label {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--text-soft);
}
.manifesto-text {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -.015em;
  color: var(--text);
}
.manifesto-text em { font-style: normal; font-weight: 600; color: var(--accent); transition: color 1s ease; }
.manifesto-rule {
  width: 60px; height: 1px;
  background: var(--text);
  margin-top: 30px;
  opacity: .4;
}

/* ═══════════════════════════════════════════════════
   COLLECTION — grille des prototypes
═══════════════════════════════════════════════════ */
.collection {
  padding: clamp(40px, 6vh, 80px) clamp(24px, 4vw, 72px) clamp(100px, 14vh, 180px);
  border-top: 1px solid var(--border);
}
.collection-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: clamp(40px, 6vh, 80px);
  gap: 30px;
  flex-wrap: wrap;
}
.collection-title {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 200;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--text);
}
.collection-title strong { font-weight: 600; }
.collection-count {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-soft);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 44px);
}

.lamp-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: clamp(26px, 3vw, 42px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .6s ease, transform .6s ease, background .6s ease;
  cursor: none;
  display: flex; flex-direction: column;
  min-height: 440px;
}
/* Couches paramétriques en fond de carte — layer lines discrètes */
.lamp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--contour) 0 1px,
    transparent 1px 8px
  );
  opacity: .55;
  z-index: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.lamp-card:hover {
  border-color: var(--text);
  transform: translateY(-4px);
}
.lamp-card:hover::before { opacity: .85; }

/* Visuel de la lampe — image ou SVG paramétrique wireframe */
.lamp-visual {
  position: relative;
  z-index: 1;
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(24px, 3vh, 40px);
}
.lamp-visual img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .8s ease;
}
.lamp-card:hover .lamp-visual img { transform: scale(1.04); }

/* Wireframe paramétrique — inspiré de l'impression 3D */
.lamp-svg {
  width: 220px; height: 260px;
  overflow: visible;
  color: var(--wire);
  transition: color 1s ease, transform .8s ease;
}
.lamp-card:hover .lamp-svg { transform: translateY(-2px); }
.lamp-svg .wire {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
  transition: stroke-width .6s ease;
}
.lamp-svg .wire-thin {
  stroke: currentColor;
  stroke-width: .5;
  fill: none;
  opacity: .55;
}
.lamp-svg .axis {
  stroke: currentColor;
  stroke-width: .4;
  stroke-dasharray: 2 4;
  opacity: .35;
}
.lamp-svg .fill {
  fill: var(--wire-fill);
  stroke: currentColor;
  stroke-width: 1;
}
.lamp-svg .label {
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  letter-spacing: .12em;
  fill: currentColor;
  opacity: .5;
  text-transform: uppercase;
}

.lamp-card-info { position: relative; z-index: 1; margin-top: auto; }
.lamp-card-num {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.lamp-card-num::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: .5;
}
.lamp-card-name {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 1s ease;
}
.lamp-card:hover .lamp-card-name { color: var(--accent); }
.lamp-card-desc {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.lamp-card-meta {
  display: flex; gap: 16px;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ═══════════════════════════════════════════════════
   SHOP TEASER — bientôt
═══════════════════════════════════════════════════ */
.shop {
  position: relative;
  padding: clamp(100px, 14vh, 180px) clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.shop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--layer) 0 1px,
    transparent 1px 10px
  );
  opacity: .7;
  z-index: 0;
  pointer-events: none;
}
.shop-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.shop-label {
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.shop-title {
  font-size: clamp(42px, 8vw, 108px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--text);
}
.shop-title strong { font-weight: 600; }
.shop-text {
  margin-top: 28px;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.85;
  color: var(--text-soft);
}
.shop-form {
  margin-top: 44px;
  display: flex; gap: 0;
  max-width: 440px; margin-left: auto; margin-right: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--card);
}
.shop-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  outline: none;
}
.shop-form input::placeholder { color: color-mix(in srgb, var(--text) 35%, transparent); }
.shop-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0 26px;
  font: inherit;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  cursor: none;
  transition: all .4s ease;
}
.shop-form button:hover { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  padding: 36px clamp(24px, 4vw, 72px);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-soft);
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--text); text-decoration: none; transition: color .3s ease; }
footer a:hover { color: var(--accent); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   NAV TOGGLE — hamburger mobile
═══════════════════════════════════════════════════ */
.nav-toggle { display: none; background: none; border: none; cursor: none; padding: 8px; margin-left: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; transition: transform .4s ease, opacity .4s ease, background .6s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Reveal animation */
/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 22px;
    padding: 40px clamp(24px, 6vw, 56px);
    background: var(--bg);
    z-index: 99;
    font-size: 13px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  #nav { padding: 18px clamp(20px, 4vw, 40px); }
  #nav.scrolled { padding: 14px clamp(20px, 4vw, 40px); }
  .manifesto { grid-template-columns: 1fr; }
  .hero-contours { top: 6%; right: -30%; width: 100%; opacity: .55; }
  .hero { padding: clamp(110px, 18vh, 160px) clamp(20px, 5vw, 40px) clamp(60px, 9vh, 100px); }
  .hero-title { font-size: clamp(48px, 13vw, 96px); }
  .collection-grid { grid-template-columns: 1fr; }
  .lamp-card { min-height: 380px; padding: 28px 24px; }
  .lamp-visual { height: 220px; }
  .lamp-svg { width: 180px; height: 220px; }
  .shop-form { flex-direction: column; border-radius: 4px; }
  .shop-form button { padding: 16px 20px; }
  .mode-toggle {
    right: 14px; bottom: 14px;
    padding: 10px 14px;
    gap: 10px;
    font-size: 9px;
  }
  .mode-toggle-track { width: 28px; height: 14px; }
  .mode-toggle-track::before { width: 10px; height: 10px; }
  html[data-mode="night"] .mode-toggle-track::before { transform: translateX(14px); }
  .hero-scroll { display: none; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 20px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(44px, 14vw, 72px); }
  .hero-kicker { font-size: 9px; letter-spacing: .28em; }
  .mode-toggle .mode-toggle-label { display: none; }
  .collection-header { gap: 18px; }
}
@media (pointer: coarse) {
  body, a, button, .mode-toggle, .lamp-card, .nav-links a, .nav-toggle { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .3s !important; animation: none !important; }
}