/* ==========================================================
   Lili Tattoos — Salon de tatouage, Colmar
   ========================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #111110;
  --panel: #161615;
  --white: #f4f2ec;
  --grey-100: #d8d5cc;
  --grey-300: #a8a49a;
  --grey-500: #78756c;
  --grey-700: #3a3936;
  --line: rgba(244, 242, 236, 0.12);
  --line-strong: rgba(244, 242, 236, 0.22);
  --accent: #cfc9ba;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Mrs Saint Delafield", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--white);
}

.script, .script-line {
  font-family: var(--script);
  font-weight: 400;
  color: var(--accent);
}

p { color: var(--grey-100); }

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-solid:hover { background: transparent; color: var(--white); }

.btn-ghost-light {
  border-color: rgba(244,242,236,0.35);
}

.btn-gold {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}
.btn-gold:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.btn-quiet {
  border-color: var(--line);
  color: var(--grey-100);
  font-size: 11.5px;
}
.btn-quiet:hover { background: rgba(244,242,236,0.06); color: var(--white); border-color: var(--line-strong); }

.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
header.solid {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  color: var(--white);
}
.brand-logo {
  height: 46px;
  width: auto;
  transition: height .4s ease;
}
header.solid .brand-logo { height: 38px; }
@media (max-width: 520px) {
  .brand-logo { height: 38px; }
  header.solid .brand-logo { height: 32px; }
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey-300);
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
  display: none;
}
@media (min-width: 780px) { .brand-tag { display: inline; } }

nav.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1040px) { nav.main-nav { display: flex; } }
@media (min-width: 1180px) { nav.main-nav { gap: 32px; } }

nav.main-nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-100);
  transition: color .3s;
  position: relative;
}
nav.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { display: none; }
@media (min-width: 1040px) { .header-actions .btn { display: inline-flex; padding: 13px 24px; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 1040px) { .burger { display: none; } }
.burger span { width: 22px; height: 1px; background: var(--white); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform .45s ease;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--white);
}
.mobile-nav .close-mobile {
  position: absolute;
  top: 26px; right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Intro (transition d'ouverture) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.intro img {
  width: min(340px, 62vw);
  opacity: 0;
  transform: scale(0.94);
  animation: introLogo 1.5s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes introLogo {
  0%   { opacity: 0; transform: scale(0.94); }
  38%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}
.intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.intro-on { overflow: hidden; }

/* Apparition en cascade du contenu du hero */
.hero-anim {
  opacity: 0;
  transform: translateY(26px);
}
body.intro-ready .hero-anim {
  animation: heroUp 1s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}
body.intro-ready .hero-scroll { animation: bounce 2.2s infinite, fadeIn .8s ease 1s backwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero-anim { opacity: 1; transform: none; }
  .intro img { animation: none; opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-bw.jpg");
  background-size: cover;
  background-position: center 25%;
  filter: grayscale(1) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.72) 45%, rgba(8,8,8,0.94) 100%),
    linear-gradient(90deg, rgba(8,8,8,0.5) 0%, rgba(8,8,8,0.15) 35%, rgba(8,8,8,0.15) 65%, rgba(8,8,8,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}
.hero .eyebrow { color: var(--grey-100); }
.hero h1 {
  font-size: clamp(46px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero h1 .script-line {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(50px, 10vw, 118px);
  color: var(--accent);
  margin: 6px 0;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--grey-100);
  max-width: 520px;
  margin: 26px auto 46px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--grey-100);
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 820px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--panel);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform .6s ease, filter .6s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0); }
.gallery-item .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0);
  transition: background .35s;
}
.gallery-item:hover .zoom-icon { background: rgba(10,10,10,0.28); }
.gallery-item .zoom-icon svg {
  width: 30px; height: 30px;
  opacity: 0;
  transform: scale(0.8);
  transition: all .35s;
  stroke: var(--white);
}
.gallery-item:hover .zoom-icon svg { opacity: 1; transform: scale(1); }

.gallery-more {
  text-align: center;
  margin-top: 48px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,6,6,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 46px; height: 46px;
  transition: background .3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 38px; height: 38px; } }

/* ---------- Artiste ---------- */
.artist {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) { .artist { grid-template-columns: 0.85fr 1.15fr; gap: 80px; } }

.artist-photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--panel);
}
.artist-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 46% 38%;
}
.artist-photo::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid var(--line-strong);
  z-index: 2;
  pointer-events: none;
}

.artist-body h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.artist-body p { font-size: 16.5px; margin: 0 0 18px; }
.artist-body p:last-of-type { margin-bottom: 0; }

.specialty-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-100);
}
.specialty-tag::before { content: "✦"; color: var(--accent); }

/* ---------- Hygiène ---------- */
.hygiene-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}
@media (min-width: 620px) { .hygiene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .hygiene-grid { grid-template-columns: repeat(4, 1fr); } }

.hygiene-card {
  padding: 34px 28px;
  outline: 1px solid var(--line);
  background: rgba(244,242,236,0.02);
}
.hygiene-ico {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 20px;
}
.hygiene-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 10px;
}
.hygiene-card p { margin: 0; font-size: 14.5px; color: var(--grey-300); }

/* ---------- Art Cocoon ---------- */
.cocoon {
  background: var(--panel);
}
.cocoon-inner {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .cocoon-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 70px;
    row-gap: 46px;
    align-items: start;
  }
  .cocoon-intro { grid-column: 1; grid-row: 1; }
  .cocoon-panel { grid-column: 2; grid-row: 1 / span 2; }
  .cocoon-features { grid-column: 1; grid-row: 2; }
}

.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(207,201,186,0.5);
  background: rgba(207,201,186,0.08);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.badge-available .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(207,201,186,0.18);
}

.cocoon h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.cocoon p { font-size: 16.5px; }
.cocoon-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.3vw, 24px) !important;
  line-height: 1.5;
  color: var(--grey-100);
  margin: 0 0 24px;
}
.cocoon .badge-available { margin-top: 26px; margin-bottom: 0; }

.cocoon-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.feature-ico {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1.2;
}
.feature h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 4px 0 8px;
  color: var(--white);
}
.feature p { margin: 0; font-size: 14.5px !important; color: var(--grey-300); }

.cocoon-panel {
  border: 1px solid var(--line);
  background: rgba(244,242,236,0.02);
  padding: 30px;
}
@media (min-width: 900px) { .cocoon-panel { position: sticky; top: 110px; } }

.panel-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.cocoon-cta {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cocoon-cta .btn { width: 100%; }

.artists-list {
  display: flex;
  flex-direction: column;
}
.artist-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.artist-card:last-child { border-bottom: none; }
.artist-card.free { opacity: .8; }
.artist-card.free .initial { border-style: dashed; color: var(--grey-300); }
.artist-card .initial {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(244,242,236,0.06);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--grey-100);
  flex-shrink: 0;
}
.artist-card h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 0 0 3px;
  color: var(--white);
}
.artist-card p { margin: 0; font-size: 13.5px !important; color: var(--grey-300); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.contact-info p { font-size: 16.5px; }
.contact-info .note {
  font-style: italic;
  color: var(--grey-300);
  font-size: 14.5px;
  margin-top: 22px;
}

.info-list { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--grey-100);
}
.info-row svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--accent); }
.info-row a:hover { color: var(--white); text-decoration: underline; }
.info-row .pref {
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 2px;
  outline: none;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.form-status { font-size: 13.5px; color: var(--grey-300); min-height: 18px; }

/* ---------- Footer ---------- */
footer {
  padding: 70px 0 34px;
}
.footer-top {
  display: grid;
  gap: 44px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }

footer .brand-mark { font-size: 30px; }
.footer-logo { height: 62px; width: auto; }
.footer-desc { margin-top: 18px; font-size: 14.5px; max-width: 320px; color: var(--grey-300); }

.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin: 0 0 18px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14.5px;
  color: var(--grey-100);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--grey-500);
}

/* ---------- FAQ page ---------- */
.page-header {
  padding: 170px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { color: var(--grey-300); }
.page-header h1 { font-size: clamp(38px, 6vw, 60px); }
.page-header p { max-width: 560px; margin: 18px auto 0; }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 22px);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--white);
  transition: transform .3s ease;
}
.faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-q .plus::after { top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a-inner { padding: 0 0 30px; font-size: 15.5px; color: var(--grey-100); white-space: pre-line; }

.steps {
  max-width: 900px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--accent);
  font-style: italic;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15.5px; margin: 0; }

.bonus-block {
  margin-top: 50px;
  padding: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(244,242,236,0.03);
  text-align: center;
}
.bonus-block h3 { font-size: 22px; margin-bottom: 14px; }
.bonus-block p { max-width: 560px; margin: 0 auto; font-size: 15.5px; }

/* Fade-in animation helper */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

::selection { background: var(--white); color: var(--black); }
