/* ============================================================
   BULLE — Studio de tatouage artistique
   Système de design : palettes terreuses + accent or
   ============================================================ */

/* ---------- Tokens : thème clair (par défaut) ---------- */
:root {
  --sable:       #E9E0CF;
  --sable-clair: #F3ECDD;
  --surface:     #F6F0E4;
  --surface-2:   #EFE6D5;
  --bg:          #EBE2D1;
  --bg-soft:     #E2D7C2;

  --encre:       #2B2118;  /* brun argile profond */
  --encre-soft:  #5C4F40;
  --encre-faint: #8C7E6B;

  --or:          #A6802F;
  --or-clair:    #C0974A;
  --terracotta:  #BC613A;
  --ocre:        #C9974C;

  --line:        rgba(43, 33, 24, 0.14);
  --line-soft:   rgba(43, 33, 24, 0.08);
  --card:        #F4EDE0;
  --card-border: rgba(43, 33, 24, 0.10);
  --shadow:      0 24px 60px -28px rgba(43, 33, 24, 0.28);
  --shadow-soft: 0 10px 34px -20px rgba(43, 33, 24, 0.30);

  --logo-bg:     rgba(166, 128, 47, 0.07);
  --grain:       0.04;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Jost', system-ui, -apple-system, sans-serif;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

/* ---------- Tokens : thème sombre via préférence visiteur ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sable:       #221A13;
    --sable-clair: #2A2018;
    --surface:     #211912;
    --surface-2:   #2A2017;
    --bg:          #19130D;
    --bg-soft:     #211910;

    --encre:       #ECE2D0;
    --encre-soft:  #C2B39C;
    --encre-faint: #8E7F6B;

    --or:          #CFA64F;
    --or-clair:    #E2BF6F;
    --terracotta:  #D07A4E;
    --ocre:        #D6A858;

    --line:        rgba(236, 226, 208, 0.14);
    --line-soft:   rgba(236, 226, 208, 0.07);
    --card:        #241B13;
    --card-border: rgba(236, 226, 208, 0.10);
    --shadow:      0 30px 70px -30px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 12px 38px -22px rgba(0, 0, 0, 0.6);

    --logo-bg:     rgba(207, 166, 79, 0.08);
    --grain:       0.05;

    color-scheme: dark;
  }
}

/* ---------- Tokens : thème sombre forcé (switch) ---------- */
:root[data-theme="dark"] {
  --sable:       #221A13;
  --sable-clair: #2A2018;
  --surface:     #211912;
  --surface-2:   #2A2017;
  --bg:          #19130D;
  --bg-soft:     #211910;

  --encre:       #ECE2D0;
  --encre-soft:  #C2B39C;
  --encre-faint: #8E7F6B;

  --or:          #CFA64F;
  --or-clair:    #E2BF6F;
  --terracotta:  #D07A4E;
  --ocre:        #D6A858;

  --line:        rgba(236, 226, 208, 0.14);
  --line-soft:   rgba(236, 226, 208, 0.07);
  --card:        #241B13;
  --card-border: rgba(236, 226, 208, 0.10);
  --shadow:      0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 38px -22px rgba(0, 0, 0, 0.6);

  --logo-bg:     rgba(207, 166, 79, 0.08);
  --grain:       0.05;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--encre);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

/* grain subtil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--or); color: var(--bg); }

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* libellés en petites capitales espacées (façon logo) */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--or);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ============================================================
   Header / navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 54px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  padding-block: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark svg { width: 34px; height: 34px; }
.nav-mark .wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  color: var(--encre);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--encre); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--or); }
.nav-links a.active::after { transform: scaleX(1); background: var(--or); }
.nav-link-client {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--or) 40%, transparent);
  border-radius: 2px;
  padding: 4px 12px !important;
  color: var(--or) !important;
  font-size: .72rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s !important;
}
.nav-link-client:hover { background: color-mix(in srgb, var(--or) 10%, transparent); border-color: var(--or) !important; }
.nav-link-client::after { display: none !important; }
.nav-tools { display: flex; align-items: center; gap: 14px; }

/* bouton thème */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* bouton pilule */
.btn {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--encre);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: var(--shadow-soft); }
.btn-gold {
  background: var(--or);
  color: #1c1408;
}
.btn-gold:hover { box-shadow: 0 14px 34px -14px var(--or); }
.btn-ghost {
  border-color: var(--line);
  color: var(--encre);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-2); }

.nav-cta { display: inline-flex; }

.nav-burger { display: none; }

/* ============================================================
   Watermark logo en fond (parallax inverse souris)
   ============================================================ */
.bg-logo {
  position: absolute;
  top: 46%; left: 50%;
  width: min(118vh, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.bg-logo svg { width: 100%; height: 100%; color: var(--or); opacity: 0.09; }
.bg-logo .stroke { stroke: var(--or); }
.bg-logo .fill { fill: var(--or); }
:root[data-theme="dark"] .bg-logo svg { opacity: 0.13; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-logo svg { opacity: 0.13; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 96px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.5vh, 38px);
}
.hero h1 {
  width: 100%;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  line-height: 1.09;
  letter-spacing: 0.01em;
  padding-bottom: 0.04em;
}
.hero h1 .ital { font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--encre-soft);
  max-width: 30ch;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--encre-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--or), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--or);
  animation: scrollDrop 2.4s var(--ease) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  60%,100% { transform: translateY(300%); }
}

/* ============================================================
   Sections génériques
   ============================================================ */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 150px) 0;
  overflow: hidden;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}
.section-head p {
  color: var(--encre-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ligne florale décorative (dessinée au scroll) */
.floral {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
}
.floral path,
.floral circle,
.floral line {
  stroke: var(--or);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.floral .leaf { fill: var(--or); stroke: none; opacity: 0.4; }

/* ============================================================
   À propos
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.portrait-frame {
  position: relative;
  width: 84%;
  aspect-ratio: 3/4;
  border-radius: 50% 50% 48% 48% / 42% 42% 56% 56%;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.portrait:hover .portrait-frame { transform: scale(0.965); box-shadow: 0 34px 80px -30px rgba(43,33,24,0.4); }
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, color-mix(in srgb, var(--bg) 90%, transparent) 80%);
  pointer-events: none;
  z-index: 3;
}
.mandala {
  position: absolute;
  inset: -6%;
  z-index: 1;
  will-change: transform;
  transition: opacity 0.6s var(--ease);
  opacity: 0.85;
}
.portrait:hover .mandala { opacity: 1; }
.mandala svg { width: 100%; height: 100%; color: var(--or); display: block; }
.mandala path { stroke: var(--or); fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* indice « survolez » */
.portrait-hint {
  position: absolute;
  bottom: 4%; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--or);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.portrait:hover .portrait-hint { opacity: 0; transform: translateX(-50%) translateY(8px); }

.about-text { display: flex; flex-direction: column; gap: 26px; }
.about-text .lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.35;
  color: var(--encre);
}
.about-text p { color: var(--encre-soft); }
.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--or);
}
.about-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.about-meta .stat .n {
  font-family: var(--font-display);
  font-size: 1.55rem;
  white-space: nowrap;
  color: var(--encre);
  display: block;
}
.about-meta .stat .l {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-faint);
}

/* ============================================================
   Le style — bento
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.cell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.cell:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.cell h3 { font-size: 1.7rem; }
.cell p { font-size: 0.9rem; color: var(--encre-soft); margin-top: 6px; }
.cell .tag {
  position: absolute; top: 20px; left: 20px;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--or);
}
.cell.span-2 { grid-column: span 2; }
.cell.row-2 { grid-row: span 2; }
.cell.tint { background: var(--surface-2); }
.cell.dark-tint {
  background: linear-gradient(152deg, #2c1d13 0%, #4a2a1a 60%, #6d3a22 100%);
  color: #f3ecdd;
}
.cell.dark-tint h3 { color: #fff; }
.cell.dark-tint p { color: rgba(255,255,255,0.74); }
.cell.dark-tint .tag { color: var(--or-clair); }

/* image réelle dans les cellules / portrait */
.ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-img { object-position: top center; }

/* placeholder image */
.ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--ocre) 22%, transparent) 0 2px,
      transparent 2px 12px),
    var(--surface-2);
  display: grid;
  place-items: center;
}
.ph span {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-faint);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
/* placeholder portrait : doux, sans rayures dures */
.ph-portrait {
  background:
    radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--ocre) 30%, var(--surface)) 0%, transparent 60%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 55%, color-mix(in srgb, var(--terracotta) 16%, var(--surface-2)) 100%);
}
.ph-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 42%, color-mix(in srgb, var(--encre) 7%, transparent), transparent 70%);
}
.cell .ph + .cell-label { position: relative; z-index: 2; }
.cell.has-ph { justify-content: flex-end; }
.cell.has-ph h3, .cell.has-ph p { position: relative; z-index: 2; }
.cell.has-ph .tag { position: absolute; top: 20px; left: 20px; z-index: 3; }
.cell.has-ph::after {
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(transparent 40%, rgba(20,14,8,0.6));
}
.cell.has-ph h3 { color: #fff; }
.cell.has-ph p { color: rgba(255,255,255,0.78); }

/* ============================================================
   Le Shop
   ============================================================ */
.shop-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.shop-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.shop-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 280px;
  position: relative;
  border: 1px solid var(--card-border);
}
.shop-info h3 { font-size: 2.1rem; margin-bottom: 4px; }
.shop-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.shop-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.shop-row:last-child { border-bottom: none; padding-bottom: 0; }
.shop-row .ico {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--or);
}
.shop-row .ico svg { width: 17px; height: 17px; }
.shop-row .k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-faint); }
.shop-row .v { font-size: 1.02rem; color: var(--encre); }
.shop-row .v.small { font-size: 0.92rem; color: var(--encre-soft); line-height: 1.5; }

.map-wrap {
  grid-column: 1 / -1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 300px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 300px; border: 0; filter: grayscale(0.3) sepia(0.18); }

/* ============================================================
   Une idée — carnet à dessin (crayon éphémère)
   ============================================================ */
.sketch-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.sketch-intro { display: flex; flex-direction: column; gap: 18px; }
.sketch-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.sketch-intro p { color: var(--encre-soft); max-width: 40ch; }

/* le carnet posé, légèrement incliné */
.sketchbook {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  transform: rotate(-2.4deg);
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(43,33,24,0.28));
}
.sketchbook:hover { transform: rotate(-1deg); }
.spiral {
  position: absolute;
  top: -13px; left: 8%;
  width: 84%;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}
.spiral i {
  width: 13px; height: 26px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #d7c9af, #9c8f78);
  border: 1px solid rgba(43,33,24,0.25);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.5);
}
:root[data-theme="dark"] .spiral i { background: linear-gradient(180deg, #8a7c64, #5a4f3f); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .spiral i { background: linear-gradient(180deg, #8a7c64, #5a4f3f); }
}
.pad {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 6px 6px 10px 10px;
  background:
    linear-gradient(90deg, rgba(188,97,58,0.16) 0 1px, transparent 1px) 32px 0 / 100% 100%,
    repeating-linear-gradient(transparent 0 27px, color-mix(in srgb, var(--encre) 9%, transparent) 27px 28px),
    radial-gradient(140% 80% at 50% 0%, color-mix(in srgb, var(--ocre) 12%, transparent), transparent 55%),
    var(--paper, #f3ead7);
  border: 1px solid color-mix(in srgb, var(--encre) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -18px 30px -20px rgba(43,33,24,0.3);
  cursor: none;
  touch-action: none;
  overflow: hidden;
}
:root { --paper: #f3ead7; }
:root[data-theme="dark"] { --paper: #2f2618; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #2f2618; }
}
/* coin corné */
.pad::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  border-width: 0 0 24px 24px;
  border-style: solid;
  border-color: transparent transparent color-mix(in srgb, var(--encre) 12%, var(--paper)) transparent;
  filter: drop-shadow(-2px -2px 2px rgba(43,33,24,0.15));
}
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad .hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.6s;
}
.pad .hint .h-ic { color: var(--or); margin-bottom: 10px; }
.pad .hint .h-ic svg { width: 28px; height: 28px; }
.pad .hint p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--encre-faint);
}
.pad.drawn .hint { opacity: 0; }
/* crayon qui suit le curseur */
.pencil {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 80px;
  transform-origin: 11px 79px;
  transform: rotate(-34deg);
  pointer-events: none;
  opacity: 0;
  z-index: 9500;
  filter: drop-shadow(2px 4px 4px rgba(43,33,24,0.35));
  will-change: left, top;
  transition: opacity 0.2s var(--ease);
}
.pencil.show { opacity: 1; }

/* Bouton reset */
.reset-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--or) 18%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--or) 35%, transparent);
  color: var(--or);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0.4;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease), background 0.3s var(--ease), transform 0.2s var(--ease);
  padding: 0;
  font-family: inherit;
}
.reset-btn svg { width: 16px; height: 16px; }
.pad.drawn .reset-btn { opacity: 1; }
.reset-btn:hover { background: color-mix(in srgb, var(--or) 28%, var(--paper)); }
.reset-btn:active { transform: scale(0.92); }
.pencil svg { width: 100%; height: 100%; display: block; }
.scribble-note {
  font-size: 0.78rem;
  color: var(--encre-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scribble-note svg { width: 14px; height: 14px; flex: none; }

/* ============================================================
   Lightbox bento
   ============================================================ */
.cell.has-ph { cursor: zoom-in; }
#lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(20, 14, 8, 0.92);
  display: none;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
#lb-overlay.open { display: grid; }
#lb-overlay img {
  max-width: min(92vw, 1100px);
  max-height: 90svh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  animation: lbIn 0.28s var(--ease);
}
#lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(236,226,208,0.12);
  border: 1px solid rgba(236,226,208,0.22);
  color: #ece2d0;
  cursor: pointer;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(236,226,208,0.22); }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  padding: 90px 0 40px;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
}
.footer-brand p { color: var(--encre-soft); font-size: 0.95rem; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--encre-faint); margin-bottom: 18px; font-weight: 500;
}
.footer-col a, .footer-col p { display: block; color: var(--encre-soft); font-size: 0.95rem; margin-bottom: 13px; line-height: 1.55; transition: color 0.3s; }
.footer-col a:hover { color: var(--or); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--encre-faint);
  position: relative; z-index: 2;
}

/* ============================================================
   Animations d'entrée
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta .label { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .portrait { max-width: 420px; margin-inline: auto; width: 100%; }
  .shop-grid { grid-template-columns: 1fr; }
  .sketch-wrap { grid-template-columns: 1fr; gap: 44px; }
  .sketchbook { transform: rotate(-1.6deg); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cell.span-2 { grid-column: span 2; }
}
@media (max-height: 820px) {
  .scroll-hint { display: none; }
  .hero { padding-top: 112px; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .cell.span-2 { grid-column: span 1; }
  .hero h1 { font-size: clamp(2.8rem, 17vw, 5rem); }
  .nav-mark .wordmark { display: none; }
  .shop-card { padding: 28px; }
}
