/* ==========================================================================
   CLANDEST'INK TATTOO — La Chaux-de-Fonds
   Feuille de style principale
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

:root{
  --black: #0a0908;
  --black-2: #141210;
  --black-3: #1c1917;
  --red: #b4121a;
  --red-bright: #d81e26;
  --red-dark: #6e0b10;
  --white: #eee9e1;
  --paper: #e7e1d6;
  --grey: #8f867a;
  --grey-dim: #55504a;
  --line: #2c2824;

  --f-display: 'Anton', sans-serif;
  --f-body: 'Archivo', sans-serif;
  --f-mono: 'Space Mono', monospace;

  --container: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain texture overlay */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  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");
  mix-blend-mode: overlay;
}

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

h1,h2,h3,h4{
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0;
}

.eyebrow{
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red-bright);
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section{ position: relative; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover{ background: var(--white); color: var(--black); }

.btn-primary{
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--white);
}

/* ---------- Header ---------- */
header.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(10,9,8,0.92), rgba(10,9,8,0));
  transition: background 0.3s ease, padding 0.3s ease;
}
header.site-header.scrolled{
  background: rgba(10,9,8,0.96);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link{ display: flex; align-items: center; gap: 12px; }
.logo-link img{ height: 34px; width: auto; }

/* sticker-style badge for full logo (footer) */
.logo-sticker{
  display: inline-block;
  background: var(--paper);
  padding: 18px 20px 14px;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.logo-sticker img{ height: 84px; width: auto; display: block; }

nav.main-nav ul{ display: flex; gap: 34px; }
nav.main-nav a{
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--white); }
nav.main-nav a.active::after{
  content:"";
  position: absolute;
  left:0; bottom:-2px;
  width: 100%; height: 2px;
  background: var(--red);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span{
  width: 26px; height: 2px; background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ink divider (signature element) ---------- */
.ink-divider{
  width: 100%;
  height: 70px;
  display: block;
  margin: 0;
}
.ink-divider path{ fill: var(--black-2); }
.ink-divider.flip{ transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 100px;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.75) 55%, var(--black) 100%),
    url('images/galerie/tattoo-08.jpg') center 20% / cover no-repeat;
}
.hero-inner{ position: relative; z-index: 2; max-width: 780px; }
.hero .eyebrow{ margin-bottom: 22px; }
.hero h1{
  font-size: clamp(3rem, 9vw, 6.2rem);
  color: var(--white);
}
.hero h1 span{ color: var(--red-bright); }
.hero-sub{
  font-family: var(--f-body);
  font-size: 1.15rem;
  color: var(--paper);
  max-width: 560px;
  margin: 26px 0 40px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-splatter{
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}

/* ---------- Sections generic ---------- */
.section{ padding: 110px 0; }
.section-tight{ padding: 70px 0; }
.section-dark{ background: var(--black-2); }

.section-head{ max-width: 620px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(2.1rem, 5vw, 3.2rem); margin-top: 16px; }
.section-head p{ color: var(--grey); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Intro / bio teaser (home) ---------- */
.intro-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.intro-photo{
  position: relative;
  border: 1px solid var(--line);
}
.intro-photo img{ width: 100%; height: 560px; object-fit: cover; filter: grayscale(15%) contrast(1.05); }
.intro-photo::after{
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--red);
  pointer-events: none;
}
.intro-text .eyebrow{ margin-bottom: 18px; }
.intro-text h2{ font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 22px; }
.intro-text p{ color: var(--grey); margin: 0 0 16px; }
.intro-text p:last-of-type{ margin-bottom: 30px; }

/* ---------- Stats strip ---------- */
.stats-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat{
  padding: 40px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child{ border-left: none; }
.stat .num{
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: var(--red-bright);
  display: block;
}
.stat .label{
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-top: 8px;
}

/* ---------- Gallery preview grid (home) ---------- */
.preview-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.preview-grid a{
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}
.preview-grid img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(45%);
}
.preview-grid a:hover img{ transform: scale(1.06); filter: grayscale(0%); }
.preview-grid a::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(238,233,225,0.08);
}

.section-foot-link{
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- Full gallery page ---------- */
.gallery-masonry{
  columns: 4;
  column-gap: 14px;
}
.gallery-item{
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.gallery-item img{
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(35%);
}
.gallery-item:hover img{ transform: scale(1.04); filter: grayscale(0%); }
.gallery-item .zoom-tag{
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  background: rgba(10,9,8,0.75);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 5px 9px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .zoom-tag{ opacity: 1; transform: translateY(0); }

.gallery-empty-note{
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--grey);
  text-align: center;
  padding: 60px 0;
  border: 1px dashed var(--line);
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(6,5,5,0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: fixed;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--f-mono);
  cursor: pointer;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: var(--red); border-color: var(--red); }
.lightbox-close{ top: 24px; right: 24px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Bio / À propos page ---------- */
.bio-hero{
  padding: 160px 0 80px;
  background: var(--black-2);
  border-bottom: 1px solid var(--line);
}
.bio-hero h1{ font-size: clamp(2.6rem, 7vw, 4.6rem); margin-top: 18px; }
.bio-hero .role{
  font-family: var(--f-mono);
  color: var(--grey);
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.bio-lead{
  font-size: 1.3rem;
  color: var(--paper);
  max-width: 760px;
  margin: 0 0 60px;
  font-weight: 500;
}
.bio-lead strong{ color: var(--red-bright); font-style: normal; }

.timeline{ max-width: 780px; }
.timeline-item{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child{ border-bottom: 1px solid var(--line); }
.timeline-year{
  font-family: var(--f-mono);
  color: var(--red-bright);
  font-size: 0.95rem;
  padding-top: 4px;
}
.timeline-content h3{
  font-family: var(--f-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.timeline-content p{ color: var(--grey); margin: 0; }

.quote-block{
  margin: 70px 0 0;
  padding: 44px 46px;
  background: var(--black-2);
  border-left: 3px solid var(--red);
}
.quote-block p{
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  line-height: 1.25;
}

/* ---------- Info / contact blocks ---------- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.info-card{
  background: var(--black-2);
  padding: 40px 32px;
}
.info-card .eyebrow{ margin-bottom: 20px; }
.info-card p, .info-card a{
  font-size: 1rem;
  color: var(--paper);
  margin: 0 0 6px;
}
.info-card a:hover{ color: var(--red-bright); }
.info-card .big{
  font-family: var(--f-display);
  font-size: 1.5rem;
  text-transform: none;
  color: var(--white);
  margin-bottom: 4px;
}

.map-wrap{
  border: 1px solid var(--line);
  filter: grayscale(1) invert(0.92) contrast(0.9);
  height: 420px;
}
.map-wrap iframe{ width: 100%; height: 100%; border: 0; display: block; }

.contact-note{
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--red-bright);
  letter-spacing: 0.5px;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
footer.site-footer{
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: var(--black);
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img{ height: 50px; margin-bottom: 16px; }
.footer-brand p{ color: var(--grey); max-width: 320px; font-size: 0.92rem; }
.footer-cols{ display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4{
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col a, .footer-col p{
  display: block;
  color: var(--paper);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--red-bright); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--grey-dim);
  letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .intro-grid{ grid-template-columns: 1fr; gap: 40px; }
  .intro-photo img{ height: 380px; }
  .stats-strip{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3){ border-left: none; }
  .stat{ border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2){ border-top: none; }
  .preview-grid{ grid-template-columns: repeat(3,1fr); }
  .gallery-masonry{ columns: 3; }
  .info-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  nav.main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--black-2);
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1050;
  }
  nav.main-nav.open{ transform: translateX(0); }
  nav.main-nav ul{ flex-direction: column; gap: 30px; padding: 0 40px; }
  nav.main-nav a{ font-size: 1rem; }
  .nav-toggle{ display: flex; }
  .preview-grid{ grid-template-columns: repeat(2,1fr); }
  .gallery-masonry{ columns: 2; }
  .timeline-item{ grid-template-columns: 1fr; gap: 8px; }
  .hero{ padding-top: 120px; }
  .section{ padding: 70px 0; }
}

@media (max-width: 480px){
  .gallery-masonry{ columns: 1; }
  .preview-grid{ grid-template-columns: repeat(2,1fr); }
}
