/* =========================================================================
   Merch sur la Lune — Landing page styles
   Builds on assets/colors_and_type.css
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--coton);
  color: var(--encre);
  font-family: var(--ff-body);
  overflow-x: hidden;
}

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

/* Paper grain — subtle SVG noise overlay, applied behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.086  0 0 0 0 0.075  0 0 0 0 0.06  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.app { position: relative; z-index: 2; }

/* ========================================================================
   Reusable
   ======================================================================== */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-2); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--encre); display: inline-block;
}

.hand { font-family: var(--ff-hand); color: var(--lune-deep); line-height: 1; }

.btn {
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 16px 26px; border: 2px solid var(--encre);
  background: var(--encre); color: var(--coton);
  cursor: pointer; box-shadow: 5px 5px 0 var(--lune);
  transition: all 120ms var(--ease-out);
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn:hover { background: var(--lune-deep); border-color: var(--lune-deep); box-shadow: 5px 5px 0 var(--encre); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--lune); }
.btn--sec {
  background: transparent; color: var(--encre); box-shadow: 5px 5px 0 var(--encre);
}
.btn--sec:hover { background: var(--encre); color: var(--coton); box-shadow: 5px 5px 0 var(--lune); }
.btn--xl { padding: 22px 36px; font-size: 14px; letter-spacing: .16em; }

.btn .arrow { display: inline-block; transition: transform 220ms var(--ease-out); }
.btn:hover .arrow { transform: translate(4px, -2px); }

/* ========================================================================
   Header
   ======================================================================== */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-bottom: 2px solid var(--encre);
  background: var(--coton); position: sticky; top: 0; z-index: 30;
}
.hdr__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hdr__brand img { height: 42px; width: 42px; }
.hdr__brand-name {
  font-family: var(--ff-display); font-size: 18px; line-height: 1; text-transform: uppercase;
  letter-spacing: -.01em;
}
.hdr__nav { display: flex; gap: 28px; }
.hdr__nav a {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre); text-decoration: none; padding-bottom: 4px;
  transition: color 120ms var(--ease-out);
}
.hdr__nav a:hover { color: var(--lune-deep); }
.hdr__cta {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 18px; background: var(--encre); color: var(--coton);
  border: 2px solid var(--encre); box-shadow: 3px 3px 0 var(--lune);
  text-decoration: none; transition: all 120ms var(--ease-out);
}
.hdr__cta:hover { background: var(--lune-deep); border-color: var(--lune-deep); }
.hdr__cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--lune); }

/* ========================================================================
   Hero — editorial split, big type, asymmetric collage on the right
   ======================================================================== */
.hero {
  position: relative; padding: 48px 48px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  border-bottom: 2px solid var(--encre);
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; padding-top: 8px; display: flex; flex-direction: column; }
.hero__head { position: relative; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(46px, 6.6vw, 104px); line-height: .9; text-transform: uppercase;
  letter-spacing: -.015em; margin: 0;
  overflow-wrap: break-word;
}
.hero__title em {
  font-family: var(--ff-hand); font-style: normal; color: var(--lune-deep);
  font-size: .92em; letter-spacing: 0; text-transform: none;
  display: inline-block; white-space: nowrap;
  transform: rotate(-4deg) translateY(.04em);
  text-shadow: 2px 2px 0 var(--coton), 4px 4px 0 var(--encre);
  margin-left: .08em;
}
.hero__sub {
  font-size: 19px; line-height: 1.55; max-width: 480px; color: var(--fg-2);
  margin: 32px 0 36px;
}
.hero__sub strong { color: var(--encre); font-weight: 600; }
.hero__ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero__note {
  font-family: var(--ff-hand); font-size: 26px; line-height: 1.15; color: var(--lune-deep);
  display: block; white-space: pre-line;
  transform: rotate(-1.5deg); margin-top: 8px;
}
.hero__big-logo {
  position: relative;
  display: inline-block;
  width: clamp(190px, 21vw, 300px);
  margin-top: auto; margin-bottom: auto;
  padding-top: 86px; padding-bottom: 24px;
}
.hero__tee-svg { width: 100%; height: auto; display: block; }
.hero__tee-print {
  position: absolute;
  left: 50%; top: 64%;
  width: 36%;
  transform: translate(-50%, -50%);
}
.hero__big-logo-img {
  width: 100%;
  height: auto;
  display: block;
  animation: print-reveal 4.5s cubic-bezier(.5,0,.3,1) infinite;
}
.hero__tee-print::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 0%, transparent 45%,
    rgba(255,255,255,.85) 49%,
    var(--lune) 51%,
    transparent 55%, transparent 100%);
  background-size: 220% 100%;
  mix-blend-mode: multiply;
  filter: blur(2px);
  animation: print-squeegee 4.5s cubic-bezier(.5,0,.3,1) infinite;
  pointer-events: none;
}
@keyframes print-reveal {
  0%, 6%   { clip-path: inset(0 100% 0 0); }
  58%      { clip-path: inset(0 0% 0 0); }
  82%      { clip-path: inset(0 0% 0 0); }
  100%     { clip-path: inset(0 100% 0 0); }
}
@keyframes print-squeegee {
  0%, 6%   { background-position: 100% 0; opacity: 0; }
  10%      { opacity: 1; }
  58%      { background-position: -150% 0; opacity: 1; }
  64%      { opacity: 0; }
  100%     { opacity: 0; background-position: -150% 0; }
}

/* Collage */
.hero__art {
  position: relative; min-height: 980px; align-self: center;
}
@keyframes spin-slow { from { transform: rotate(-4deg); } to { transform: rotate(356deg); } }

.hero__photo {
  position: absolute; z-index: 2;
  border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--encre);
  background: var(--recycle); overflow: hidden;
}
.hero__photo--a { top: 0;   left: 2%;  width: clamp(190px, 48%, 290px); aspect-ratio: 3/4; transform: rotate(-3deg); }
.hero__photo--b { top: 40%; left: 26%; width: clamp(180px, 45%, 270px); aspect-ratio: 4/5; transform: rotate(2deg); box-shadow: 6px 6px 0 var(--lune); }
.hero__photo--c { top: 10%; right: 2%; width: clamp(165px, 42%, 250px); aspect-ratio: 1/1; transform: rotate(4deg); box-shadow: 6px 6px 0 var(--lune); z-index: 3; }
.hero__photo--d { top: 38%; right: 0%;  width: clamp(190px, 46%, 280px); aspect-ratio: 4/3; transform: rotate(-4deg); z-index: 5; }
.hero__photo--e { top: 58%; left: 4%;  width: clamp(140px, 34%, 205px); aspect-ratio: 3/4; transform: rotate(3deg); box-shadow: 6px 6px 0 var(--lune); z-index: 3; }
.hero__photo--f { top: 64%; right: 12%; width: clamp(150px, 37%, 225px); aspect-ratio: 1/1; transform: rotate(-2deg); z-index: 4; }
.hero__photo--g { top: 78%; left: 22%; width: clamp(180px, 46%, 280px); aspect-ratio: 4/3; transform: rotate(2deg); box-shadow: 6px 6px 0 var(--lune); }

.hero__stamp {
  position: absolute; bottom: 24px; right: 18px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--encre); color: var(--coton); padding: 8px 14px; border-radius: 999px;
  transform: rotate(-4deg); z-index: 5;
}

/* ========================================================================
   Marquee
   ======================================================================== */
.mq {
  overflow: hidden; padding: 18px 0; background: var(--encre); color: var(--coton);
  border-bottom: 2px solid var(--encre);
}
.mq__track {
  display: flex; gap: 48px; white-space: nowrap; width: max-content;
  animation: mq 32s linear infinite;
  font-family: var(--ff-display); font-size: 28px; text-transform: uppercase; letter-spacing: .02em;
}
.mq__item { color: var(--coton); }
.mq__item.lune { color: var(--lune); }
.mq__item.soleil { color: var(--lune); }
.mq__star { color: var(--lune); font-family: var(--ff-body); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================================
   Manifeste / Présentation — 4 pillars + portrait collage
   ======================================================================== */
.manif {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 110px 48px;
  border-bottom: 2px solid var(--encre);
}
.manif__head .eyebrow { margin-bottom: 24px; }
.manif__title {
  font-family: var(--ff-display); font-size: clamp(48px, 6vw, 88px); line-height: .92;
  text-transform: uppercase; letter-spacing: -.015em; margin: 0 0 28px;
}
.manif__lede {
  font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 0 0 36px; max-width: 480px;
}
.manif__pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px;
  border-top: 2px solid var(--encre); padding-top: 32px;
}
.pillar { display: flex; flex-direction: column; gap: 8px; }
.pillar__mark {
  font-family: var(--ff-display); font-size: 36px; line-height: 1; color: var(--lune-deep);
  margin-bottom: 4px;
}
.pillar__title {
  font-family: var(--ff-body); font-weight: 700; font-size: 18px; margin: 0;
  text-transform: none; letter-spacing: -.005em;
}
.pillar__copy { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }

.manif__art { position: relative; min-height: 600px; }
.manif__photo {
  position: absolute; border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--encre);
  background: var(--recycle);
}
.manif__photo--a { top: 0;    left: 0;    width: 62%; aspect-ratio: 4/5; transform: rotate(-2deg); z-index: 2; }
.manif__photo--b { top: 38%;  right: 0;   width: 54%; aspect-ratio: 1/1; transform: rotate(3deg); box-shadow: 8px 8px 0 var(--lune); z-index: 3; }
.manif__photo--c { bottom: 0; left: 8%;   width: 46%; aspect-ratio: 3/4; transform: rotate(-1deg); box-shadow: 8px 8px 0 var(--lune); z-index: 1; }
.manif__sticker {
  position: absolute; top: -10px; right: 6%;
  background: var(--lune); border: 2px solid var(--encre); padding: 14px 16px;
  font-family: var(--ff-hand); font-size: 22px; color: var(--encre);
  transform: rotate(6deg); z-index: 4; line-height: 1.1; text-align: center;
  box-shadow: 4px 4px 0 var(--encre);
}

/* ========================================================================
   Galerie — irregular editorial grid
   ======================================================================== */
.gal {
  padding: 110px 48px;
  background: var(--encre); color: var(--coton);
  border-bottom: 2px solid var(--encre);
}
.gal__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin-bottom: 56px;
}
.gal__head .eyebrow { color: var(--lune); }
.gal__head .eyebrow::before { background: var(--lune); }
.gal__title {
  font-family: var(--ff-display); font-size: clamp(56px, 7vw, 104px); line-height: .9;
  text-transform: uppercase; margin: 16px 0 0;
}
.gal__link {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lune); text-decoration: none; border-bottom: 2px solid var(--lune); padding-bottom: 4px;
}
.gal__link:hover { color: var(--coton); border-color: var(--coton); }

.gal__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 18px;
}
.gal__item {
  position: relative;
  background: var(--cendre);
  border: 2px solid var(--coton);
  overflow: hidden;
}
.gal__item:hover .gal__cap { transform: translateY(0); }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px; background: var(--coton); color: var(--encre);
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: baseline;
  transform: translateY(100%); transition: transform 220ms var(--ease-out);
}
.gal__cap b { font-family: var(--ff-display); font-size: 14px; letter-spacing: 0; }

/* irregular grid placement — 5 réalisations */
.gal__item--1 { grid-column: span 5; grid-row: span 6; }
.gal__item--2 { grid-column: span 4; grid-row: span 6; }
.gal__item--3 { grid-column: span 3; grid-row: span 6; }
.gal__item--4 { grid-column: span 7; grid-row: span 4; }
.gal__item--5 { grid-column: span 5; grid-row: span 4; }

/* real photographs filling any frame */
.ph-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.96);
}

/* ========================================================================
   Processus — 5 steps with hand-drawn arrows
   ======================================================================== */
.proc {
  padding: 120px 48px;
  background: var(--lune);
  border-bottom: 2px solid var(--encre);
}
.proc__head {
  max-width: 720px; margin-bottom: 64px;
}
.proc__title {
  font-family: var(--ff-display); font-size: clamp(56px, 7vw, 104px); line-height: .9;
  text-transform: uppercase; margin: 16px 0 24px;
}
.proc__lede { font-size: 19px; line-height: 1.55; max-width: 580px; margin: 0; }

.proc__steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.step {
  position: relative; padding: 28px 22px 32px;
  background: var(--coton); border: 2px solid var(--encre);
  margin-right: -2px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.step + .step { box-shadow: inset 2px 0 0 transparent; }
.step__n {
  font-family: var(--ff-display); font-size: 64px; line-height: 1; color: var(--lune-deep);
}
.step__title {
  font-family: var(--ff-body); font-weight: 700; font-size: 19px; margin: 0;
  text-transform: none; letter-spacing: -.005em;
}
.step__copy { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; flex: 1; }
.step__icon { color: var(--encre); }

/* curly arrow between steps */
.step__arrow {
  position: absolute; top: 56px; right: -14px; z-index: 4;
  color: var(--lune-deep);
}
.step:last-child .step__arrow { display: none; }

/* hand-written aside */
.proc__aside {
  margin-top: 36px;
  font-family: var(--ff-hand); font-size: 32px; color: var(--encre);
  display: inline-flex; align-items: center; gap: 12px;
  transform: rotate(-1deg);
}

/* ========================================================================
   Big CTA finale — full-bleed black block
   ======================================================================== */
.cta {
  position: relative; padding: 200px 48px 140px;
  background: var(--encre); color: var(--coton);
  text-align: center; overflow: hidden;
  border-bottom: 2px solid var(--encre);
}
.cta__bg {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(circle at 18% 30%, var(--lune-deep) 0, transparent 22%),
    radial-gradient(circle at 82% 70%, var(--mistral) 0, transparent 26%),
    radial-gradient(circle at 50% 100%, var(--lune-deep) 0, transparent 20%);
  opacity: .35;
  filter: blur(2px);
  z-index: 0;
}
.cta__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.cta__eyebrow .eyebrow { color: var(--lune); }
.cta__eyebrow .eyebrow::before { background: var(--lune); }
.cta__title {
  font-family: var(--ff-display); font-size: clamp(64px, 9vw, 152px); line-height: .88;
  text-transform: uppercase; margin: 24px 0 28px; letter-spacing: -.015em;
}
.cta__title span { color: var(--lune); }
.cta__sub {
  font-size: 19px; line-height: 1.6; max-width: 560px; margin: 0 auto 44px;
  color: rgba(242, 236, 224, .82);
}
.cta__btn {
  font-family: var(--ff-mono); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  padding: 26px 44px; border: 2px solid var(--coton);
  background: var(--coton); color: var(--encre);
  cursor: pointer; box-shadow: 7px 7px 0 var(--lune);
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; transition: all 140ms var(--ease-out);
}
.cta__btn:hover { background: var(--lune); box-shadow: 7px 7px 0 var(--coton); }
.cta__btn:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--lune); }
.cta__hand {
  display: block; margin-top: 28px;
  font-family: var(--ff-hand); font-size: 28px; color: var(--lune);
  transform: rotate(-2deg);
}

/* ========================================================================
   Footer
   ======================================================================== */
.ftr {
  background: var(--coton); color: var(--encre); padding: 72px 48px 28px;
}
.ftr__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.ftr__big {
  font-family: var(--ff-display); font-size: clamp(64px, 10vw, 168px); line-height: .85;
  text-transform: uppercase; letter-spacing: -.015em;
}
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.ftr__cols .eyebrow { color: var(--fg-2); margin-bottom: 10px; }
.ftr__cols p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.ftr__cols a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; transition: color 140ms var(--ease-out); }
.ftr__cols a:hover { color: var(--encre); }
.ftr__ig {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; text-decoration: none;
}
.ftr__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 64px; padding-top: 22px; border-top: 2px solid var(--encre);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; color: var(--fg-2);
}
.ftr__bottom .hand { font-family: var(--ff-hand); font-size: 22px; color: var(--lune-deep); letter-spacing: 0; }

/* On touch devices there's no hover — keep gallery captions visible */
@media (hover: none) {
  .gal__cap { transform: translateY(0); }
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1100px) {
  .hero, .manif { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 28px 36px; }
  .hero__art { min-height: 880px; max-width: 520px; margin: 0 auto; width: 100%; }
  .manif { padding: 80px 28px; }
  .manif__art { min-height: 520px; }
  .proc__steps { grid-template-columns: 1fr 1fr; }
  .step { margin-right: 0; margin-bottom: -2px; }
  .step__arrow { display: none; }
  .gal__grid { grid-auto-rows: 60px; }
  .ftr__top { grid-template-columns: 1fr; }
  .hdr { padding: 14px 24px; }
  .hdr__nav { display: none; }
  .gal, .proc, .cta, .ftr { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 20px 56px; }
  .hero__title { font-size: clamp(40px, 12vw, 64px); }
  .hero__sub { font-size: 17px; margin: 28px 0 30px; }
  .gal__grid { grid-template-columns: repeat(6, 1fr); }
  .gal__item--1, .gal__item--2, .gal__item--3, .gal__item--4, .gal__item--5 {
    grid-column: span 6; grid-row: span 5;
  }
  .gal__head { grid-template-columns: 1fr; align-items: start; }
  .proc__steps { grid-template-columns: 1fr; }
  .manif__pillars { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr; gap: 18px; }
  .ftr__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .manif { padding: 64px 20px; }
  .gal, .proc, .cta { padding-left: 20px; padding-right: 20px; }
  .proc__aside { font-size: 26px; }
}
