/* ===== Taho Tatoo — design system ===== */
:root {
  --bg: #110c0a;
  --bg-alt: #171009;
  --bg-raised: #1c140e;
  --ink: #080504;
  --cream: #ede4d3;
  --cream-dim: #b8ac97;
  --ochre: #c67c42;
  --ochre-bright: #e0985c;
  --ochre-dark: #7a4623;
  --jade: #4c7263;
  --red: #7e2c1a;
  --line: rgba(237, 228, 211, 0.12);
  --line-strong: rgba(237, 228, 211, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
button, input, textarea { font-family: inherit; }
::selection { background: var(--ochre-dark); color: var(--cream); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ochre-dark); border-radius: 10px; }

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

/* ===== Nav ===== */
.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, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(17,12,10,.92), transparent);
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(17, 12, 10, .92);
  backdrop-filter: blur(10px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--ochre); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 3px; color: var(--cream);
  display: flex; flex-direction: column; line-height: 1;
}
.brand-text em {
  font-style: normal; font-family: var(--font-body); font-size: 9px; letter-spacing: 5px;
  color: var(--ochre); margin-top: 4px; text-transform: uppercase;
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav-link {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-dim);
  position: relative; padding-bottom: 4px; transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ochre); transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.burger span { width: 24px; height: 2px; background: var(--cream); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(198,124,66,.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(76,114,99,.08), transparent 60%),
    var(--bg);
}
.hero-koru { position: absolute; color: var(--ochre); opacity: .06; pointer-events: none; }
.hero-koru svg { width: 100%; height: 100%; }
.hero-koru--a { width: 70vmin; height: 70vmin; top: -18vmin; left: -14vmin; animation: spin 140s linear infinite; }
.hero-koru--b { width: 55vmin; height: 55vmin; bottom: -20vmin; right: -12vmin; animation: spin 160s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; padding: 0 24px; max-width: 800px; }
.eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--ochre-bright);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(64px, 14vw, 150px); letter-spacing: clamp(6px, 1.5vw, 16px); color: var(--cream);
  text-shadow: 0 1px 0 rgba(255,255,255,.08), 0 6px 30px rgba(0,0,0,.6);
  line-height: .95;
}
.hero-subtitle {
  font-family: var(--font-display); font-size: clamp(14px, 2vw, 18px); letter-spacing: 6px;
  text-transform: uppercase; color: var(--ochre); margin-top: 18px;
}
.hero-tagline {
  margin: 28px auto 0; max-width: 480px; color: var(--cream-dim); font-size: 17px; font-weight: 300;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 15px 34px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all .25s;
}
.btn-primary { background: var(--ochre); color: var(--ink); font-weight: 500; }
.btn-primary:hover { background: var(--ochre-bright); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198,124,66,.25); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre-bright); }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--ochre);
  animation: scrollhint 1.8s ease infinite;
}
@keyframes scrollhint { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 22px; } }

/* ===== Dividers ===== */
.divider { position: relative; height: 46px; overflow: hidden; color: var(--ochre-dark); opacity: .5; }
.divider-svg { width: 100%; height: 100%; }
.divider--flip { transform: scaleX(-1); }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section-eyebrow { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--ochre); margin-bottom: 14px; }
.section-title { font-size: clamp(32px, 5vw, 48px); color: var(--cream); letter-spacing: 1px; }
.section-lead { color: var(--cream-dim); max-width: 560px; margin-top: 18px; font-size: 16px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Galerie ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  background: transparent; border: 1px solid var(--line-strong); color: var(--cream-dim);
  padding: 9px 20px; border-radius: 30px; font-size: 13px; letter-spacing: 1px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ochre); color: var(--cream); }
.chip.active { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

.gallery-grid {
  margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(to top, rgba(8,5,4,.9), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .g-title { font-family: var(--font-display); font-size: 16px; color: var(--cream); }
.gallery-overlay .g-style { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ochre-bright); margin-top: 4px; }

.gallery-empty { text-align: center; padding: 70px 20px; color: var(--cream-dim); }
.empty-koru { width: 60px; height: 60px; color: var(--ochre-dark); margin: 0 auto 20px; opacity: .6; }
.gallery-empty p { font-size: 16px; }
.gallery-empty .empty-sub { font-size: 13px; color: var(--cream-dim); opacity: .7; margin-top: 6px; }

/* ===== Artiste ===== */
.section--artiste { background: var(--bg-alt); }
.artiste-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.artiste-visual { position: relative; }
.artiste-frame {
  aspect-ratio: 3/4; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-raised); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.artiste-silhouette { width: 40%; height: 40%; color: var(--ochre-dark); opacity: .5; }
.corner-orn { position: absolute; width: 60px; height: 60px; color: var(--ochre); opacity: .5; }
.corner-orn--tl { top: -18px; left: -18px; }
.corner-orn--br { bottom: -18px; right: -18px; transform: rotate(180deg); }
.artiste-bio { color: var(--cream-dim); margin-top: 20px; font-size: 16px; max-width: 520px; }
.artiste-quote {
  margin-top: 30px; padding-left: 22px; border-left: 2px solid var(--ochre);
  font-size: 18px; color: var(--ochre-bright); font-style: normal; max-width: 480px;
}

/* ===== Devis / Formulaire ===== */
.quote-form { margin-top: 40px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--cream); padding: 13px 16px; font-size: 15px; font-family: var(--font-body); resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ochre); }
.field-hint { font-size: 12px; color: var(--cream-dim); opacity: .7; margin: -10px 0 22px; }

.budget-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.budget-opt {
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--cream-dim);
  padding: 10px 18px; border-radius: 30px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.budget-opt:hover { border-color: var(--ochre); }
.budget-opt.active { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

.btn-submit { border: none; margin-top: 6px; width: 100%; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-feedback { margin-top: 14px; font-size: 14px; color: var(--red); min-height: 20px; }
.form-feedback.ok { color: var(--jade); }

.quote-success { text-align: center; padding: 60px 20px; }
.quote-success .stamp { width: 70px; height: 70px; color: var(--jade); margin: 0 auto 20px; }
.quote-success h3 { font-size: 26px; color: var(--cream); }
.quote-success p { margin-top: 14px; color: var(--cream-dim); max-width: 420px; margin-left: auto; margin-right: auto; }

/* ===== Contact ===== */
.section--contact { background: var(--bg-alt); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact-links a {
  border: 1px solid var(--line-strong); padding: 14px 28px; border-radius: 30px; font-size: 14px;
  letter-spacing: .5px; transition: all .2s;
}
.contact-links a:hover { border-color: var(--ochre); color: var(--ochre-bright); }

/* ===== Footer ===== */
.footer { text-align: center; padding: 50px 20px 40px; color: var(--cream-dim); font-size: 13px; }
.footer-koru { width: 28px; height: 28px; color: var(--ochre-dark); margin: 0 auto 16px; opacity: .6; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,5,4,.96);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox:not([hidden]) { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: none; color: var(--cream); font-size: 28px; cursor: pointer;
  padding: 12px; opacity: .8; transition: opacity .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; color: var(--ochre-bright); }
.lightbox-close { top: 20px; right: 24px; font-size: 36px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--cream-dim); font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .artiste-grid { grid-template-columns: 1fr; gap: 40px; }
  .artiste-visual { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; transform: translateX(100%); transition: transform .35s ease;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title { letter-spacing: 4px; }
  .section { padding: 80px 0; }
}
