/* ================================================================
   V100 — styles
   Les couleurs viennent des œuvres : rouge, bleu, jaune, rose.
   ================================================================ */

:root {
  --paper: #ffffff; /* fond du site (avant : crème #faf6ee) */
  --paper-2: #f5f5f5;
  --ink: #141414;
  --ink-soft: #4a4740;
  --red: #e2231a;
  --blue: #1f7bc9;
  --yellow: #f4a62a;
  --pink: #e5337b;
  --green: #2f8f4e;
  --title: var(--ink); /* noir : couleur de tous les titres (avant : rose pâle #f2b5c8) */

  /* Une seule police partout : Anonymous Pro (la même que sur l'ancien site) */
  --font: "Anonymous Pro", ui-monospace, monospace;
  --font-display: var(--font);
  --font-hand: var(--font);
  --font-mono: var(--font);

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* ---------- Typo ---------- */

h1, h2, h3 { font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; margin: 0; color: var(--title); white-space: nowrap; }
/* Les mots colorés dans les titres prennent aussi le rose pâle */
:is(h1, h2, h3) :is(.c-red, .c-blue, .c-yellow, .c-pink, .v, .one, .zz) { color: inherit; }

/* Titre d'accueil sur une seule ligne, taille calculée sur la largeur */
.display.pop-title {
  white-space: nowrap;
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 13.2);
}

.display {
  font-size: clamp(56px, 13vw, 200px);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.h2 { font-size: clamp(40px, 7vw, 96px); text-transform: uppercase; letter-spacing: -0.03em; }
.h3 { font-size: clamp(26px, 3.4vw, 40px); }

.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; }

.label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; max-width: 36ch; }

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }
.c-yellow { color: var(--yellow); }
.c-pink { color: var(--pink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; mix-blend-mode: multiply; }
.brand span { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.brand-group { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.insta-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: transform 0.2s; }
.insta-link:hover { transform: rotate(-8deg) scale(1.1); }
.lang-switch { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; transition: background 0.2s, color 0.2s; }
.lang-switch:hover { background: var(--ink); color: var(--paper); }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav a:hover { border-color: var(--ink); transform: rotate(-2deg); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 28px; padding: 10px 18px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(1px, 1px); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Lien simple : texte en gras + flèche, sans bulle */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  text-decoration: none;
  margin-right: 28px;
}
.text-link span { transition: transform 0.2s; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover span { transform: translateX(6px); }

/* ---------- Hero (accueil) ---------- */

.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 0; overflow: hidden; }

.hero-title { position: relative; }
.hero-title .display span { display: inline-block; }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: clamp(20px, 3vw, 36px);
}

.hero-quote {
  font-family: var(--font-hand);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0;
  transform: rotate(-1.5deg);
}
/* Accueil : le slogan prend toute la largeur, les boutons passent dessous */
.hero .hero-quote { flex: 1 1 100%; max-width: none; transform: none; }

.hero-photo {
  position: relative;
  margin-top: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 9;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
@media (max-width: 700px) { .hero-photo { aspect-ratio: 4 / 5; } }

.sticker {
  position: absolute;
  z-index: 3;
  font-family: var(--font-hand);
  font-size: clamp(16px, 2vw, 22px);
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(6deg);
  text-decoration: none;
  white-space: nowrap;
}
.sticker:hover { transform: rotate(0) scale(1.05); }
.sticker.pink { background: var(--pink); color: #fff; }
.sticker.blue { background: var(--blue); color: #fff; }

/* Gribouillis décoratifs */
.scribble { position: absolute; pointer-events: none; z-index: 1; }
.scribble path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bandeau défilant ---------- */

.marquee {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  margin: clamp(48px, 8vw, 96px) 0 0;
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.marquee-track span:nth-child(4n + 1) { color: var(--yellow); }
.marquee-track span:nth-child(4n + 2) { color: var(--pink); }
.marquee-track span:nth-child(4n + 3) { color: #6fb8f0; }
.marquee-track span:nth-child(4n + 4) { color: #ff6a5c; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 128px) 0; }
.section.tint { background: var(--paper); }
.section.dark { background: var(--paper); color: var(--ink); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Artiste (accueil + à propos) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.framed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
}
.framed img { width: 100%; height: 100%; object-fit: cover; }

.prose p { margin: 0 0 1.1em; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }

/* Les deux personnages */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }
.duo-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
}
.duo-card.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.duo-card.red { background: var(--red); border-color: var(--red); color: #fff; }
.duo-card.blue h3, .duo-card.red h3 { color: #fff; }
.duo-card h3 { font-size: 32px; margin: 8px 0 12px; }
.duo-card p { margin: 0; }

/* ---------- Cartes produits ---------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.grid-products.featured { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-products.featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-products.featured { gap: 14px; } }

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
}
.card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s, transform 0.5s; }
.card-img img + img { position: absolute; inset: 0; opacity: 0; }
.card-img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card:hover .card-img { box-shadow: none; }
.card:hover .card-img img:first-child { transform: scale(1.04); }
.card:hover .card-img img + img { opacity: 1; }
.card:nth-child(4n + 1) { --c: var(--yellow); }
.card:nth-child(4n + 2) { --c: var(--pink); }
.card:nth-child(4n + 3) { --c: var(--blue); }
.card:nth-child(4n + 4) { --c: var(--red); }

.card-body { padding: 14px 4px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.card-body > div { flex: 1 1 150px; }
.card-title { font-weight: 800; font-size: 20px; line-height: 1.15; }
.card-cat { display: block; margin-top: 4px; color: var(--ink-soft); }
.card-price { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Filtres boutique */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 16px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Fiche produit (fenêtre) ---------- */

dialog {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0;
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(4px); }

.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }

.product-media { background: #fff; border-right: 2px solid var(--ink); }
@media (max-width: 800px) { .product-media { border-right: 0; border-bottom: 2px solid var(--ink); } }
.product-main { aspect-ratio: 4 / 5; }
.product-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; padding: 12px; border-top: 2px solid var(--ink); }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.product-info h2 { font-size: clamp(32px, 4vw, 48px); }
.product-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants button {
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}
.variants button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.variants button:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.product-note { font-size: 14px; color: var(--ink-soft); margin: 0; }

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
}

/* ---------- Expos & collabs ---------- */

.event { padding: clamp(56px, 8vw, 104px) 0; border-top: 2px solid var(--ink); }
.event:first-of-type { border-top: 0; }

.event-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .event-head { grid-template-columns: 1fr; } }

.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.gallery {
  columns: 3 280px;
  column-gap: 16px;
}
.gallery button {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: none;
  break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform 0.5s; }
.gallery button:hover img { transform: scale(1.04); }

/* Visionneuse */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: rgba(15, 15, 15, 0.94);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 8px; }
.lightbox .close { background: var(--paper); color: var(--ink); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 22px;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }

/* ---------- Bloc CTA ---------- */

.cta {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(36px, 6vw, 72px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.cta .h2 { max-width: none; }
.cta p { max-width: 44ch; font-size: 20px; }


/* ---------- Contact ---------- */

.contact-links { display: grid; gap: 16px; margin-top: 32px; }
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow-wrap: anywhere;
}
.contact-link:hover { transform: translate(-3px, -3px); }
.contact-link .label { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper); color: var(--ink); border-top: 2px solid var(--ink); padding: 24px 0; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; font-weight: 700; font-size: 20px; }
.footer-nav a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
}

/* ---------- Apparition au scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   ACCUEIL DYNAMIQUE
   ================================================================ */

/* Titre : les mots tombent un par un, puis bougent au survol */
.pop {
  display: inline-block;
  opacity: 0;
  transform: translateY(-60%) rotate(-8deg);
  animation: pop-in 0.8s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.14s);
  transition: transform 0.25s;
}
.pop.in-place { opacity: 1; transform: none; animation: none; }
.pop.in-place:hover { transform: rotate(-4deg) scale(1.06); }
.pop.in-place:nth-of-type(even):hover { transform: rotate(4deg) scale(1.06); }
@keyframes pop-in {
  to { opacity: 1; transform: none; }
}

/* Gribouillis qui se dessinent puis flottent */
.scribble.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s ease-out forwards;
  animation-delay: var(--d, 0.3s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.scribble.float { animation: float 6s ease-in-out infinite; }
.scribble.spin { animation: spin 14s linear infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .scribble.spin { display: none; } }

.sticker.bob { animation: bob 3.2s ease-in-out infinite; }
.sticker.bob:hover { animation-play-state: paused; }
@keyframes bob {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-6px); }
}

/* Le bonhomme au bouquet, à droite du slogan */
.hero { --bh: clamp(220px, 26vw, 340px); } /* hauteur du bonhomme */
.hero-sub {
  position: relative;
  align-content: flex-start;
  padding-right: calc(var(--bh) * 0.8 + 24px); /* place réservée pour le bonhomme */
  min-height: var(--bh);
}
.bonhomme-pop {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: var(--bh);
  mix-blend-mode: multiply; /* le fond blanc du dessin disparaît */
  pointer-events: none;
  transform-origin: 50% 100%;
  animation:
    bonhomme-in 0.8s cubic-bezier(0.2, 1.6, 0.4, 1) 0.8s both,
    bonhomme-sway 4s ease-in-out 1.6s infinite;
}
/* Sur téléphone : sous le slogan, centré */
@media (max-width: 700px) {
  .hero-sub { padding-right: 0; min-height: 0; }
  .bonhomme-pop { position: static; display: block; margin: 8px auto 0; height: 300px; }
}
@keyframes bonhomme-in {
  from { opacity: 0; transform: translateY(40px) scale(0.5) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}
@keyframes bonhomme-sway {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bonhomme-pop { animation: none; }
}

/* Parallaxe de la photo d'atelier */
.hero-photo img[data-parallax] { transform: scale(1.15) translateY(var(--py, 0px)); will-change: transform; }

/* Peinture au clic */
.hero[data-paint] { cursor: crosshair; }
.hero[data-paint] a, .hero[data-paint] button { cursor: pointer; }
.paint-hint {
  margin: 28px 0 0;
  color: var(--ink-soft);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 50% { opacity: 0.35; } }
.stamp {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: clamp(80px, 10vw, 140px);
  height: auto;
  mix-blend-mode: multiply; /* le fond blanc du logo devient transparent */
  translate: -50% -50%;
  animation: stamp 2.6s ease-out forwards;
}
@keyframes stamp {
  0% { opacity: 0; scale: 0.2; }
  12% { opacity: 1; scale: 1.15; }
  20% { scale: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; scale: 1; translate: -50% -90%; }
}

/* Mur d'œuvres qui défile avec le scroll */
.artwall {
  padding: clamp(40px, 6vw, 72px) 0;
  overflow: hidden;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.artwall-row {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  width: max-content;
  transform: translateX(var(--x, 0px));
  will-change: transform;
}
.artwall-row a {
  flex: none;
  display: block;
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.artwall-row a:nth-child(odd) { transform: rotate(-2deg); }
.artwall-row a:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.artwall-row img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .pop { opacity: 1; transform: none; animation: none; }
  .scribble.draw path { stroke-dashoffset: 0; animation: none; }
  .scribble.float, .scribble.spin, .sticker.bob, .paint-hint { animation: none; }
}

/* Page title (pages intérieures) */
.page-head { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.page-head .lead { margin-top: 20px; }

.framed.no-shadow { box-shadow: none; }

/* Titre de section sur une seule ligne (bloc « Dernière expo ») */
.h2.one-line { white-space: nowrap; font-size: clamp(22px, 3.4vw, 48px); }
/* Date et lieu en texte simple, sans bulle */
.meta-line { margin: 0 0 28px; color: var(--ink-soft); }

/* Les titres sur une ligne ne doivent pas élargir leur colonne : ils rétrécissent à la place */
.split > *, .section-head > *, .event-head > *, .hero-title, .hero-sub > *, .product-info, .duo-card { min-width: 0; }
h1, h2, h3 { max-width: 100%; }

/* Titre d'accueil écrit lettre par lettre */
[data-typewriter] .ch { position: relative; display: inline; visibility: hidden; }
[data-typewriter] .ch.on { visibility: visible; }
[data-typewriter] .ch.cur::after {
  content: "";
  position: absolute;
  top: 0.08em;
  bottom: 0.02em;
  right: -0.12em;
  width: 0.07em;
  background: currentColor;
  animation: caret 0.9s steps(1) infinite;
}
[data-typewriter] .ch.cur.done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- T-shirt qui pivote face / dos ---------- */

/* Dans la boutique : la carte se retourne au survol */
.card-img.flip { perspective: 1200px; }
.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.card:hover .flip-inner { transform: rotateY(180deg); }
.card-img.flip .flip-inner img {
  position: absolute;
  inset: 0;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-img.flip .flip-inner .flip-back { transform: rotateY(180deg); }
.card:hover .card-img.flip img:first-child { transform: none; }

/* Dans la fiche produit : tourne tout seul, et à la souris ou au doigt */
.pivot {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.pivot.grabbing { cursor: grabbing; }
.pivot-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.pivot .pivot-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pivot .pivot-back { transform: rotateY(180deg); }
.pivot-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
}
.thumbs .thumb-pivot { position: relative; }
.thumbs .thumb-pivot span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 20, 20, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* ---------- Curseur : un petit Posca ----------
   La pointe du feutre (en haut à gauche) est l'endroit qui clique. */
*, *::before, *::after { cursor: url("../images/site/posca.svg") 2 2, auto !important; }

/* Calque des logos tamponnés au clic (sur toutes les pages) */
body { position: relative; }
.paint-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } /* pas de z-index : sinon le fond blanc du logo réapparaît */

/* ---------- Bas de page : le bonhomme tague « V100 » ---------- */

.tag-scene { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 24px); min-width: 0; }
.tag-bonhomme {
  height: clamp(130px, 18vw, 230px);
  width: auto;
  mix-blend-mode: multiply; /* le fond blanc du dessin disparaît */
  transform-origin: 50% 100%;
}
.tag-wall { position: relative; padding-bottom: 0.25em; font-size: clamp(64px, 13vw, 180px); }
.tag-text {
  display: inline-block;
  font-family: "Sedgwick Ave Display", var(--font);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0.03em 0.03em 0 var(--ink);
  transform: rotate(-4deg);
  clip-path: inset(-20% 0 -20% 0);
}
.tag-text span:nth-child(1) { color: var(--red); }
.tag-text span:nth-child(2) { color: var(--blue); }
.tag-text span:nth-child(3) { color: var(--yellow); }
.tag-text span:nth-child(4) { color: var(--pink); }

/* Coulures de peinture sous les lettres */
.tag-drips { position: absolute; left: 0; right: 0; top: 0.82em; height: 0.4em; transform: rotate(-4deg); pointer-events: none; }
.tag-drips i {
  position: absolute;
  top: 0;
  width: 0.035em;
  height: var(--h);
  border-radius: 0 0 0.03em 0.03em;
  background: var(--c);
  transform-origin: top;
}
.tag-drips i:nth-child(1) { left: 12%; --h: 0.32em; --c: var(--red); }
.tag-drips i:nth-child(2) { left: 38%; --h: 0.22em; --c: var(--blue); }
.tag-drips i:nth-child(3) { left: 60%; --h: 0.36em; --c: var(--yellow); }
.tag-drips i:nth-child(4) { left: 82%; --h: 0.18em; --c: var(--pink); }
.tag-drips i:nth-child(5) { left: 90%; --h: 0.28em; --c: var(--pink); }

/* La bombe de peinture */
.tag-can { position: absolute; top: 18%; left: 100%; width: 0.17em; opacity: 0; pointer-events: none; }
.tag-can svg { display: block; width: 100%; height: auto; transform: rotate(-25deg); }
.tag-mist {
  position: absolute;
  left: -0.12em;
  top: -0.06em;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 20, 20, 0.35), transparent 70%);
}

/* Quand on arrive en bas : le tag s'écrit de gauche à droite */
.tag-scene.tagging .tag-text { animation: tag-write 2.6s cubic-bezier(0.5, 0, 0.5, 1) both; }
.tag-scene.tagging .tag-can { animation: tag-can 2.6s cubic-bezier(0.5, 0, 0.5, 1) both; }
.tag-scene.tagging .tag-can svg { animation: tag-shake 0.18s ease-in-out infinite alternate; }
.tag-scene.tagging .tag-mist { animation: tag-mist 0.3s ease-in-out infinite alternate; }
.tag-scene.tagging .tag-drips i { animation: tag-drip 1.4s ease-in 2.4s both; }
.tag-scene.tagging .tag-bonhomme { animation: tag-bob 0.65s ease-in-out 4 alternate; }

@keyframes tag-write {
  from { clip-path: inset(-20% 100% -20% 0); }
  to { clip-path: inset(-20% 0 -20% 0); }
}
@keyframes tag-can {
  0% { left: -4%; opacity: 1; transform: translateY(0); }
  25% { transform: translateY(-0.1em); }
  50% { transform: translateY(0.12em); }
  75% { transform: translateY(-0.06em); }
  92% { left: 100%; opacity: 1; transform: translateY(0); }
  100% { left: 104%; opacity: 0; }
}
@keyframes tag-shake { to { transform: rotate(-31deg) translateX(1px); } }
@keyframes tag-mist { to { transform: scale(1.35); opacity: 0.6; } }
@keyframes tag-drip { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tag-bob { to { transform: rotate(-4deg) translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .tag-scene.tagging .tag-text,
  .tag-scene.tagging .tag-can,
  .tag-scene.tagging .tag-drips i,
  .tag-scene.tagging .tag-bonhomme { animation: none; }
}
/* Avant d'arriver en bas : le tag n'est pas encore peint */
.tag-scene.armed:not(.tagging) .tag-text { clip-path: inset(-20% 100% -20% 0); }
.tag-scene.armed:not(.tagging) .tag-drips i { transform: scaleY(0); }

/* ---------- Ils parlent de moi (page Collabs) ---------- */
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(20, 20, 20, 0.2); }
.press-list a,
.press-list button {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.2);
  text-decoration: none;
}
.press-media { color: var(--ink-soft); }
.press-title { font-weight: 700; font-size: clamp(18px, 2vw, 24px); }
.press-arrow { font-size: 22px; transition: transform 0.2s; }
.press-list :is(a, button):hover .press-title { text-decoration: underline; text-underline-offset: 5px; }
.press-list :is(a, button):hover .press-arrow { transform: translate(4px, -4px); }
@media (max-width: 600px) {
  .press-list :is(a, button) { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .press-media { grid-column: 1 / -1; }
}
.press-list button { width: 100%; background: none; border-width: 0 0 1px; border-style: solid; border-color: rgba(20, 20, 20, 0.2); text-align: left; font: inherit; color: inherit; }

/* Sous-filtres des affiches (Bonhomme, Humain, Animaux) */
.filters:has(+ .sub-filters:not([hidden])) { margin-bottom: 14px; }
.sub-filters { padding-left: 4px; }
.chip.small { font-size: 14px; padding: 6px 14px; border-width: 1.5px; }
.empty-note { grid-column: 1 / -1; margin: 24px 0 64px; color: var(--ink-soft); }
.sub-filters[hidden] { display: none; } /* n'apparaît que quand « Affiches » est choisi */

/* ---------- Pages légales ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.legal .wrap { max-width: 820px; margin-left: 0; }
.legal h1, .legal h2, .legal h3 { white-space: normal; }
.legal h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 48px 0 14px; text-transform: uppercase; }
.legal h3 { font-size: 20px; margin: 32px 0 12px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 16px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.2); vertical-align: top; }
.legal-table th { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.legal-form { margin: 0; padding: 20px 24px; border-left: 3px solid var(--ink); background: rgba(20, 20, 20, 0.04); font-size: 16px; }
/* Passages à compléter : bien visibles tant qu'ils ne sont pas remplis */
.todo { background: #ffe36b; padding: 0 4px; border-radius: 3px; }
@media (max-width: 600px) { .legal-table { font-size: 14px; } }

/* ---------- Panier ---------- */
.cart-btn {
  margin-left: auto;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: none;
  font-weight: 700;
  font-size: 15px;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}
.cart-btn:not(.has-items) .cart-count { background: transparent; color: var(--ink-soft); }
@media (min-width: 861px) { .site-header .nav { order: 2; } .cart-btn { order: 3; margin: 0 0 0 14px; } }

.cart-drawer {
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 2px solid var(--ink);
  border-radius: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-drawer:not([open]) { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 28px; text-transform: uppercase; }
.cart-head .close { position: static; }
.cart-items { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.2); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: #fff; }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-info strong { font-size: 15px; line-height: 1.25; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; font-weight: 700; line-height: 1; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-price { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.cart-remove { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.cart-totals dd { margin: 0; text-align: right; font-family: var(--font-mono); }
.cart-totals .cart-total { font-weight: 700; font-size: 20px; padding-top: 6px; border-top: 1px solid rgba(20, 20, 20, 0.2); }
.cart-pay { justify-content: center; width: 100%; }
.cart-msg { margin: 0; min-height: 1.4em; font-size: 15px; }
.cart-empty { margin: 24px 0 0; color: var(--ink-soft); }
.cart-drawer .product-note a { color: inherit; }
/* En-tête : garde chaque lien du menu sur une ligne, même avec le panier et le bouton de langue */
.nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 9px; font-size: 15px; }
  .brand-group { gap: 10px; }
  .cart-btn { margin-left: 8px; padding: 7px 11px; }
}
/* Sur téléphone : panier en icône, en-tête plus serré */
@media (max-width: 860px) {
  /* Logo à gauche, puis EN, Instagram, panier et Menu alignés à droite, tous de la même hauteur */
  .site-header .wrap { gap: 8px; justify-content: flex-start; }
  .brand-group { display: contents; }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand img { height: 32px; }
  .brand span { font-size: 20px; }
  .lang-switch { margin-left: auto; }
  .lang-switch, .insta-link, .cart-btn, .menu-btn { flex-shrink: 0; height: 36px; box-sizing: border-box; }
  .lang-switch { min-width: 36px; padding: 0 8px; border-width: 2px; }
  .insta-link { width: 36px; }
  .cart-label { display: none; }
  .cart-btn { margin: 0; padding: 0 10px; gap: 4px; }
  .menu-btn { display: inline-flex; align-items: center; padding: 0 12px; }
}
@media (max-width: 350px) {
  .site-header .wrap { gap: 6px; }
  .brand span { display: none; }
}

/* Haut de chaque page : le texte d'intro prend toute la largeur */
.page-head .lead,
.page-head .hero-quote { max-width: none; }
