/* Picaieaieaie Tattoo — feuille de style */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #080808;          /* noir profond */
  --gray: #1d1d1f;         /* gris plus clair, sections alternées */
  --ink-2: #232325;        /* cartes */
  --skin: #f2f1ee;
  --cream: #e9e6df;
  --brass: #c6a77b;
  --stone: #b3b3b0;
  --line: #2e2e31;
  --serif: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--skin); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.body-text { white-space: pre-line; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 24px; border: 1px solid var(--cream); border-radius: 4px; background: var(--cream); color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--skin); border-color: var(--skin); }
.btn-ghost { background: transparent; color: var(--cream); border-color: #5c574f; }
.btn-ghost:hover { background: transparent; border-color: var(--cream); color: var(--skin); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); padding-top: max(14px, env(safe-area-inset-top)); background: rgba(8, 8, 8, .94); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.wordmark { font-family: var(--serif); font-weight: 700; letter-spacing: .03em; font-size: 24px; text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.wordmark span { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--stone); }
nav { display: flex; align-items: center; gap: 28px; }
nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--stone); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
nav a:not(.btn):hover, nav a.active:not(.btn) { color: var(--skin); border-bottom-color: var(--brass); }
.menu-toggle { display: none; }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(64px, 8vw, 110px); }
.hero h1 { font-size: clamp(56px, 7.6vw, 116px); line-height: .92; letter-spacing: .005em; font-weight: 600; margin: 0 0 26px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--stone); max-width: 30em; }
.hero .lead { margin-bottom: 32px; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: clamp(420px, calc(100svh - 170px), 820px); object-fit: cover; object-position: center 40%; border-radius: 3px; filter: saturate(.8); }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: fade 1s .1s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--pad); border-top: 1px solid var(--line); }
.section.alt { background: var(--gray); box-shadow: 0 0 0 100vmax var(--gray); clip-path: inset(0 -100vmax); border-top-color: transparent; }
.section.alt + .section { border-top-color: transparent; }
.section.alt .contact-box, .section.alt .faq details { background: #262628; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1; margin-bottom: 14px; }
.section-head p { color: var(--stone); margin: 0; }

/* ---------- Réalisations : défilement horizontal ---------- */
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.row-head > div:first-child { max-width: 680px; }
.car-nav { display: flex; gap: 8px; flex-shrink: 0; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #4a4a4d; background: transparent; color: var(--skin); font-size: 26px; line-height: 1; cursor: pointer; transition: border-color .2s, opacity .2s; }
.car-btn:hover { border-color: var(--cream); }
.car-btn:disabled { opacity: .3; cursor: default; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 330px); gap: clamp(10px, 1.2vw, 16px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.track > * { scroll-snap-align: start; }
.track-progress { height: 2px; background: var(--line); margin-top: 18px; border-radius: 2px; overflow: hidden; }
.track-progress i { display: block; height: 100%; width: 30%; background: var(--brass); border-radius: 2px; transform-origin: left; transition: transform .15s linear, width .2s; }
.tile { position: relative; margin: 0; }
.tile button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; border-radius: 3px; color: inherit; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
.tile button:hover img, .tile button:focus-visible img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 36px 12px 10px; font-size: 14px; line-height: 1.3; color: var(--skin); background: linear-gradient(to top, rgba(8,8,8,.78), rgba(8,8,8,0)); pointer-events: none; border-radius: 0 0 3px 3px; }
.tile figcaption a { pointer-events: auto; color: var(--brass); white-space: nowrap; }
.tile figcaption:empty { display: none; }
.skeleton { background: var(--ink-2); aspect-ratio: 3 / 4; border-radius: 3px; }

/* ---------- Bon à savoir ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--stone); white-space: pre-line; max-width: 46em; }

/* ---------- Flashs ---------- */
.flash-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 290px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.flash-row .tile { scroll-snap-align: start; }
.flash-row .tile img { aspect-ratio: 4 / 5; }

/* ---------- Styles ---------- */
.styles { margin: 0; border-top: 1px solid var(--line); }
.styles > div { display: grid; grid-template-columns: minmax(200px, 4fr) 7fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.styles dt { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.1; }
.styles dd { margin: 0; color: var(--stone); max-width: 36em; }

/* ---------- L'atelier (présentation) ---------- */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text .body-text { color: var(--stone); max-width: 36em; font-size: clamp(17px, 1.4vw, 19px); }
.motto { margin: 26px 0 0; padding-left: 18px; border-left: 2px solid var(--brass); font-family: var(--serif); font-weight: 500; letter-spacing: .02em; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; color: var(--skin); max-width: 28em; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--stone); font-size: 16px; }
.facts strong { color: var(--skin); font-weight: 500; }
.facts a { color: var(--skin); text-underline-offset: 4px; text-decoration-color: #5c5c60; overflow-wrap: anywhere; }
.facts a:hover { text-decoration-color: var(--brass); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.contact .body-text { color: var(--stone); max-width: 32em; }
.contact-box { display: grid; gap: 20px; justify-items: start; padding: clamp(24px, 3vw, 36px); background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; }
.btn-messenger { min-height: 56px; padding: 0 28px; font-size: 16px; }
.contact-box.form { justify-items: stretch; gap: 20px; }
.form .btn-messenger { justify-self: start; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-size: 14px; font-weight: 600; color: var(--skin); padding: 0; margin-bottom: 2px; }
.opt { font-weight: 400; color: var(--stone); margin-left: 6px; }
.form input:not([type="radio"]), .form textarea { width: 100%; background: var(--ink); color: var(--skin); border: 1px solid #3a3732; border-radius: 4px; padding: 13px 14px; font: inherit; font-size: 16px; transition: border-color .2s; }
.form input::placeholder, .form textarea::placeholder { color: #77726a; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(198, 167, 123, .18); }
.form textarea { resize: vertical; min-height: 110px; }
.form [aria-invalid="true"] { border-color: #d98c7a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid #3a3732; border-radius: 999px; font-size: 14px; color: var(--stone); transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form-error { color: #e7a291; font-size: 14px; margin: 0; }
.form-note { margin: -6px 0 0; font-size: 14px; color: var(--stone); }
.form-note.form-note-ok { color: var(--skin); background: rgba(198,167,123,.12); border-left: 2px solid var(--brass); padding: 10px 12px; margin: 0; border-radius: 2px; font-size: 15px; }
.form-copy { white-space: pre-wrap; font: 15px/1.5 var(--sans); background: var(--ink); border: 1px dashed #4a4a4d; border-radius: 4px; padding: 12px; margin: 0; user-select: all; }
.form-copy[hidden] { display: none; }
.alt-contact { margin: 0; color: var(--stone); font-size: 15px; line-height: 1.8; }
.alt-contact a { color: var(--skin); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px var(--pad) max(24px, env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; font-size: 15px; color: var(--stone); max-width: var(--max); margin: 0 auto; }
.footer-row p { margin: 0; }
.footer-name { font-family: var(--serif); font-weight: 700; letter-spacing: .03em; font-size: 22px; color: var(--skin); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: var(--max); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: #6f6a62; }
.legal p { margin: 0; }
.legal a { color: #6f6a62; text-decoration: none; }
.legal a:hover { color: var(--stone); text-decoration: underline; }

/* ---------- Photo agrandie ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, .97); color: var(--skin); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fade .25s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 16px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 2px; transition: opacity .2s; }
.lb-stage img.loading { opacity: .25; }
.lb-bar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 12px var(--pad) max(18px, env(safe-area-inset-bottom)); }
.lb-bar p { margin: 0; }
#lb-caption { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; font-size: 21px; }
.lb-count { color: var(--stone); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-nav { display: flex; gap: 8px; }
.lb-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #4a463f; background: transparent; color: var(--skin); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-nav button:hover { border-color: var(--cream); }
.lb-nav button[hidden] { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  nav { gap: 20px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-header { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .wordmark { font-size: 21px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid #3a3732; border-radius: 50%; background: transparent; cursor: pointer; z-index: 60; -webkit-tap-highlight-color: transparent; }
  .menu-toggle i { display: block; width: 18px; height: 1px; background: var(--skin); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 0 28px; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  nav.open { opacity: 1; visibility: visible; }
  nav a:not(.btn) { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; font-size: 40px; color: var(--skin); padding: 6px 0; border: 0; }
  nav .btn { margin-top: 22px; min-height: 52px; font-size: 16px; padding: 0 24px; }

  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; padding-bottom: 56px; }
  .hero-media { order: -1; margin: 0 calc(var(--pad) * -1); }
  .hero-media img { height: auto; aspect-ratio: 4 / 3.6; border-radius: 0; object-position: center 35%; }
  .hero h1 { font-size: clamp(52px, 15vw, 72px); margin-bottom: 16px; }
  .hero .lead { font-size: 17px; margin-bottom: 24px; }
  .actions .btn { flex: 1 1 100%; }

  .section { padding-top: 52px; padding-bottom: 52px; }
  .section h2 { font-size: clamp(38px, 11vw, 48px); }
  .tile figcaption { font-size: 13px; padding: 28px 10px 9px; }
  .track { grid-auto-columns: 68%; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); }
  .car-nav { display: none; }
  .row-head { display: block; }
  .faq summary { font-size: 16px; padding: 16px 48px 16px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .flash-row { grid-auto-columns: 72%; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 12px; scroll-padding: 0 var(--pad); }

  .styles > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .styles dt { font-size: 26px; }
  .about, .contact { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 92px 1fr; font-size: 15px; }
  .about { gap: 28px; }
  .contact-box { justify-items: stretch; }
  .btn-messenger, .form .btn-messenger { width: 100%; justify-self: stretch; }

  .footer-row { flex-direction: column; align-items: flex-start; }
  .lb-bar { grid-template-columns: 1fr auto; gap: 10px; }
  .lb-count { display: none; }
  #lb-caption { font-size: 17px; }
  .lb-nav button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
