/* ============================================================
   b. abbage — compagnie musique / arts vivants / écriture
   Direction : fond noir, grille de pixels colorés (issus du
   logo), filets fins blancs, typo display segmentée (Handjet)
   pour les titres, Space Grotesk pour le corps. Néon réservé
   à la boîte « La lettre ».
   ============================================================ */

:root {
  --bg: #0a0a0a;          /* fond noir profond */
  --bg-2: #101010;        /* fond des vignettes */
  --fg: #efefea;          /* blanc légèrement cassé */
  --jaune: #ffd500;
  --vert: #00c853;
  --magenta: #e616e6;
  --cyan: #00b3e6;
  --orange: #ff7a00;
  --blanc: #ffffff;
  --line-w: 1px;
  --line: var(--line-w) solid var(--fg);
  --pad: clamp(16px, 4vw, 48px);
  --glow: 0 0 8px rgba(255, 255, 255, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- pixels (signature du logo) ---------- */

.px {
  display: inline-block;
  width: 14px; height: 14px;
  box-shadow: var(--glow);
}

.px--jaune { background: var(--jaune); }
.px--vert { background: var(--vert); }
.px--magenta { background: var(--magenta); }
.px--cyan { background: var(--cyan); }
.px--orange { background: var(--orange); }
.px--blanc { background: var(--blanc); }

/* pastilles de type */
.dot { width: 10px; height: 10px; box-shadow: none; }

/* ---------- en-tête ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(3px);
  border-bottom: 2px solid var(--fg);
}

.hero-pixel-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.32;
  pointer-events: none;
}

.hero-pixel-field .px {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0.42;
  animation: hero-pixel-drift 7.2s ease-in-out infinite;
}

.hero-pixel-field .px:nth-child(1) { left: 10%; top: 18%; animation-delay: -0.4s; }
.hero-pixel-field .px:nth-child(2) { left: 23%; top: 62%; animation-delay: -1.2s; }
.hero-pixel-field .px:nth-child(3) { left: 36%; top: 28%; animation-delay: -2.1s; }
.hero-pixel-field .px:nth-child(4) { left: 47%; top: 68%; animation-delay: -0.9s; }
.hero-pixel-field .px:nth-child(5) { left: 59%; top: 21%; animation-delay: -2.8s; }
.hero-pixel-field .px:nth-child(6) { left: 70%; top: 61%; animation-delay: -1.7s; }
.hero-pixel-field .px:nth-child(7) { left: 78%; top: 24%; animation-delay: -3.4s; }
.hero-pixel-field .px:nth-child(8) { left: 86%; top: 68%; animation-delay: -0.7s; }
.hero-pixel-field .px:nth-child(9) { left: 91%; top: 18%; animation-delay: -2.5s; }
.hero-pixel-field .px:nth-child(10) { left: 6%; top: 70%; animation-delay: -3.1s; }
.hero-pixel-field .px:nth-child(11) { left: 31%; top: 74%; animation-delay: -1.5s; }
.hero-pixel-field .px:nth-child(12) { left: 65%; top: 72%; animation-delay: -3.8s; }

@keyframes hero-pixel-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.76);
    opacity: 0.12;
  }
  24% {
    transform: translate3d(-2px, -3px, 0) scale(0.96);
    opacity: 0.56;
  }
  52% {
    transform: translate3d(4px, -6px, 0) scale(1.06);
    opacity: 1;
  }
  78% {
    transform: translate3d(2px, 2px, 0) scale(0.82);
    opacity: 0.25;
  }
}

.head-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding: 20px var(--pad) 16px;
}

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  text-decoration: none;
  font-family: 'Handjet', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.03em;
}

.brand-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 66px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--fg);
  box-shadow: var(--glow);
}

.brand-tagline {
  grid-column: 2;
  grid-row: 2;
  margin: -3px 0 0;
  color: var(--jaune);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--jaune); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--pad) clamp(36px, 7vw, 80px);
}

.hero > :not(.hero-pixel-field) {
  position: relative;
  z-index: 1;
}


.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jaune);
}

h1 {
  margin: 0 0 22px;
  font-family: 'Handjet', 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-weight: 700;
  max-width: 24ch;
}

.lead {
  margin: 0 0 30px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-intro { text-align: justify; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- boutons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.btn:hover { background: var(--fg); color: var(--bg); }
.btn--ghost { background: transparent; }

/* ---------- sections ---------- */

main > .band {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad);
}

main > .band + .band { border-top: var(--line); }

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 26px;
}

.band-head h2 {
  margin: 0;
  font-family: 'Handjet', 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.band-note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- agenda ---------- */

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  grid-template-areas: "date what where";
  gap: 8px 24px;
  align-items: center;
  padding: 16px 0;
}

.agenda-row + .agenda-row { border-top: var(--line); }

.agenda-date {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.agenda-date .day { font-size: 1.35rem; font-weight: 700; }
.agenda-date .month { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.agenda-what { grid-area: what; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agenda-what strong { font-size: 1.05rem; font-weight: 700; }

.agenda-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agenda-where {
  grid-area: where;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 15px;
  color: var(--fg);
  opacity: 0.75;
}

.agenda-links { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.agenda-socials { display: inline-flex; align-items: center; gap: 8px; }
.agenda-social-link { display: inline-flex; width: 22px; height: 22px; color: var(--fg); }
.agenda-social-link:hover { color: var(--jaune); }
.agenda-social-link svg { width: 100%; height: 100%; fill: currentColor; }
.agenda-social-link .agenda-icon-instagram { fill: none; stroke: currentColor; stroke-width: 1.8; }
.agenda-social-link .agenda-icon-dot { fill: currentColor; stroke: none; }
.agenda-resource-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agenda-resource-link:hover { color: var(--jaune); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- projets ---------- */

.projets-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) { .projets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projets-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  border: var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card:hover { border-color: var(--jaune); }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  border-bottom: var(--line);
  overflow: hidden;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.thumb--aza::before { background-image: url("assets/projets/aza-aza.jpg"); }
.thumb--mamie::before { background-image: url("assets/projets/mamie-ortie.jpg"); }
.thumb--ouma::before { background-image: url("assets/projets/ouma-bouma.jpg"); }

.card--upcoming .thumb { background: var(--bg-2); }

/* chaque vignette : trois pixels posés différemment */
.thumb .px {
  position: absolute;
  z-index: 1;
  opacity: 1;
  width: 15%; aspect-ratio: 1; height: auto;
}

/* aza/aza — archive sonore : diagonale de données */
.thumb--aza .px:nth-child(1) { left: 14%; bottom: 14%; }
.thumb--aza .px:nth-child(2) { left: 40%; bottom: 30%; width: 15%; }
.thumb--aza .px:nth-child(3) { left: 66%; bottom: 46%; width: 15%; }

/* Mamie Ortie — personnage : bloc massif + deux témoins */
.thumb--mamie .px:nth-child(1) { left: 16%; top: 18%; width: 34%; }
.thumb--mamie .px:nth-child(2) { right: 16%; top: 24%; }
.thumb--mamie .px:nth-child(3) { right: 16%; bottom: 20%; }

/* Oumabouma — festif : trois tailles en escalier */
.thumb--ouma .px:nth-child(1) { left: 18%; top: 16%; width: 24%; }
.thumb--ouma .px:nth-child(2) { right: 30%; bottom: 18%; }
.thumb--ouma .px:nth-child(3) { right: 12%; bottom: 36%; }

/* 19-23 Express — dancefloor : rangée qui défile */
.thumb--express .px:nth-child(1) { left: 14%; bottom: 20%; }
.thumb--express .px:nth-child(2) { left: 38%; bottom: 20%; width: 10%; }
.thumb--express .px:nth-child(3) { left: 56%; bottom: 20%; width: 22%; }

/* Temps Libre — constellation de pixels */
.thumb--temps-libre .px:nth-child(1) { left: 16%; top: 16%; width: 20%; }
.thumb--temps-libre .px:nth-child(2) { right: 18%; top: 24%; width: 13%; }
.thumb--temps-libre .px:nth-child(3) { left: 42%; bottom: 18%; width: 22%; }
.thumb--temps-libre .px:nth-child(4) { right: 12%; bottom: 24%; width: 11%; }

/* Suspended Time — rythme suspendu, du grand au petit */
.thumb--suspended-time .px:nth-child(1) { left: 16%; top: 18%; width: 11%; }
.thumb--suspended-time .px:nth-child(2) { left: 40%; top: 12%; width: 18%; }
.thumb--suspended-time .px:nth-child(3) { right: 12%; bottom: 15%; width: 24%; }
.thumb--suspended-time .px:nth-child(4) { right: 22%; top: 36%; width: 12%; }
.thumb--suspended-time .px:nth-child(5) { left: 22%; bottom: 18%; width: 15%; }

.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

.card-desc { margin: 0; font-size: 0.95rem; color: var(--fg); opacity: 0.8; }

/* ---------- lettre ---------- */

.lettre-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  border: 1px solid var(--blanc);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    inset 0 0 14px rgba(255, 255, 255, 0.1);
  padding: clamp(22px, 4vw, 40px);
}

.lettre-pixels {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.lettre-pixels .lettre-pixel {
  position: absolute;
  top: var(--pixel-y);
  left: var(--pixel-x);
  width: clamp(12px, 3.2vw, 32px);
  height: clamp(12px, 3.2vw, 32px);
  transform: translate(-50%, -50%);
  opacity: 0.08;
  box-shadow: var(--glow);
  mix-blend-mode: screen;
  animation: lettre-pixel-breathe var(--pulse-duration) ease-in-out var(--pulse-delay) infinite alternate;
}

@keyframes lettre-pixel-breathe {
  from { opacity: 0.06; }
  to { opacity: 0.32; }
}

.lettre-text { position: relative; z-index: 1; flex: 1 1 320px; min-width: 0; }

.lettre-text h2 { margin: 0 0 8px; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; }
.lettre-text p { margin: 0; max-width: 52ch; }

.lettre-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 320px;
  min-width: 0;
  margin-left: auto;
}

.lettre-form .sib-form {
  width: 100%;
  padding: 0;
  text-align: left !important;
  background: transparent !important;
}

.lettre-form #sib-container {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fg) !important;
  text-align: left !important;
  font-family: inherit !important;
}

.lettre-form .sib-form-block { padding: 0 !important; }

.lettre-form .entry__label {
  display: block;
  margin: 0 0 8px;
  color: var(--fg) !important;
  font: inherit !important;
  font-weight: 500 !important;
}

.lettre-form .entry__field { border: 0 !important; background: transparent !important; }

.lettre-form input.input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: var(--line) !important;
  border-radius: 0 !important;
  background: var(--bg-2) !important;
  color: var(--fg) !important;
  font: inherit !important;
  font-size: 15px !important;
}

.lettre-form input.input::placeholder { color: var(--fg) !important; opacity: 0.45; }

.lettre-form .entry__error,
.lettre-form .entry__specification {
  color: var(--fg) !important;
  font: inherit !important;
  font-size: 13px !important;
}

.lettre-form .sib-form-block.lettre-submit-block { margin-top: 10px; }

.lettre-form .sib-form-block__button {
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: var(--fg) !important;
  background: var(--bg) !important;
  border: 1px solid var(--fg) !important;
  border-radius: 0 !important;
}

.lettre-form .sib-form-block__button:hover {
  color: var(--bg) !important;
  background: var(--fg) !important;
  border-color: var(--fg) !important;
}

.lettre-form .sib-form-message-panel {
  max-width: none !important;
  margin: 0 0 12px !important;
  font-family: inherit !important;
}

.lettre-form .sib-form-message-panel__text { justify-content: flex-start; }

.lettre-form .sib-form-message-panel__inner-text {
  color: var(--fg) !important;
  font: inherit !important;
}

.lettre-form .sib-form-message-panel#success-message {
  border-color: var(--vert) !important;
  background: rgba(0, 255, 100, 0.1) !important;
}

.lettre-form .sib-form-message-panel#error-message {
  border-color: var(--orange) !important;
  background: rgba(255, 100, 0, 0.1) !important;
}

.lettre-form .sib-hide-loader-icon { display: none; }

.lettre-form .input--hidden {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- pied de page ---------- */

.site-foot {
  border-top: 2px solid var(--fg);
  margin-top: clamp(28px, 5vw, 56px);
}

.foot-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 40px) var(--pad);
}

.foot-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-col p { margin: 0; font-size: 15px; }
.foot-col a { text-decoration: none; border-bottom: 1px solid var(--fg); padding-bottom: 1px; }
.foot-col a:hover { background: var(--jaune); color: var(--bg); }

.foot-stamp {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.foot-stamp .px { width: 14px; height: 14px; }
.foot-stamp .px {
  position: relative;
  animation: pixel-wave 1.8s ease-in-out infinite;
}

.foot-stamp .px:nth-child(2) { animation-delay: 0.12s; }
.foot-stamp .px:nth-child(3) { animation-delay: 0.24s; }
.foot-stamp .px:nth-child(4) { animation-delay: 0.36s; }

@keyframes pixel-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.foot-line {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
  font-size: 13px;
  opacity: 0.7;
}

/* ---------- page projet ---------- */

.project-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad) 0;
}

.project-back {
  display: inline-block;
  margin-bottom: clamp(32px, 6vw, 72px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-back:hover { color: var(--jaune); }

.project-kicker { margin-bottom: 16px; }

.project-title {
  max-width: 12ch;
  margin-bottom: 20px;
}

.project-intro {
  max-width: 58ch;
  margin: 0 0 clamp(28px, 5vw, 52px);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--line);
  border-bottom: var(--line);
  margin-bottom: clamp(28px, 5vw, 56px);
}

.project-meta-item {
  min-width: 0;
  padding: 14px 18px 16px 0;
}

.project-meta-item + .project-meta-item { border-left: var(--line); padding-left: 18px; }

.project-meta-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta-value { font-size: 15px; opacity: 0.8; }

.project-hero-visual {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  margin: 0 0 clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: var(--line);
  background: #000;
}

.project-cover {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover--contain { object-fit: contain; }

.project-hero-visual--placeholder {
  background: var(--bg-2);
}

.project-hero-visual--placeholder .project-pixel { opacity: 1; }

.project-placeholder-label {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 2;
  place-items: center;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-basic-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 clamp(44px, 8vw, 96px);
}

.project-basic-copy h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.project-basic-copy p:last-child { max-width: 62ch; }

.express-story-copy { max-width: 70ch; }
.express-story-copy p { text-align: justify; text-align-last: left; hyphens: auto; }

.project-audio {
  min-width: 0;
  border-top: var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}

.project-audio h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.project-audio h3 { margin: 24px 0 10px; font-size: 1rem; font-weight: 500; }
.project-audio iframe { display: block; width: 100%; max-width: 100%; border: 0; }

.project-pixel {
  position: absolute;
  z-index: 1;
  width: clamp(56px, 12vw, 150px);
  aspect-ratio: 1;
  opacity: 0.2;
  pointer-events: none;
}

.project-pixel--yellow {
  left: 12%;
  top: 17%;
  background: var(--jaune);
}

.project-pixel--magenta {
  right: 14%;
  bottom: 15%;
  background: var(--magenta);
}

.project-pixel--mamie-magenta {
  left: 16%;
  top: 18%;
  width: 34%;
  background: var(--magenta);
}

.project-pixel--mamie-white {
  right: 16%;
  top: 24%;
  width: 15%;
  background: var(--fg);
}

.project-pixel--mamie-cyan {
  right: 16%;
  bottom: 20%;
  width: 15%;
  background: var(--cyan);
}

.mamie-story {
  max-width: 76ch;
  margin: 0 auto;
  padding: 0 0 clamp(28px, 5vw, 56px);
}

.mamie-page .project-intro,
.mamie-page .mamie-story p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.mamie-poster {
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vw, 56px);
}

.mamie-poster img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line);
}

.project-basic-action { margin: 0 0 clamp(44px, 8vw, 96px); }

.aza-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px) clamp(28px, 7vw, 92px);
  padding: 0 0 clamp(44px, 8vw, 96px);
}

.aza-story-block { max-width: 68ch; }
.aza-story-block p { margin: 0; }

.aza-page .project-intro,
.aza-page .aza-story p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.aza-story-image {
  display: block;
  width: 100%;
  max-height: 440px;
  border: var(--line);
  object-fit: cover;
}

.aza-story-block:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.aza-story-image:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.aza-story-block:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.aza-story-image:nth-of-type(2) { grid-column: 1; grid-row: 2; }
.aza-story-block:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.aza-story-image:nth-of-type(3) { grid-column: 2; grid-row: 3; }
.aza-story-block:nth-of-type(4) { grid-column: 2; grid-row: 4; }

.aza-media,
.aza-slideshow {
  border-top: var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}

.aza-media h2,
.aza-extras h2,
.aza-slideshow h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.aza-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aza-video-card { min-width: 0; }
.aza-video-card iframe,
.aza-video-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: var(--line);
  background: var(--bg-2);
}
.aza-video-card iframe { height: auto; }
.aza-video-placeholder {
  place-content: center;
  padding: 16px;
  color: var(--fg);
  text-align: center;
  font-size: 14px;
}
.aza-video-placeholder span { color: var(--jaune); }
.aza-video-card > p { margin: 10px 0 0; font-size: 14px; }

.aza-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 28px;
  border-top: var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}
.aza-embed-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: var(--line);
  background: var(--bg-2);
  color: var(--fg);
  opacity: 0.65;
}
.aza-instagram { border-top: 2px solid var(--jaune); padding-top: 12px; }
.aza-instagram a { display: inline-block; }

.aza-slides {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--jaune) var(--bg-2);
}
.aza-slides img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(240px, 42vw, 520px);
  max-width: 90%;
  border: var(--line);
  background: #000;
  object-fit: contain;
  scroll-snap-align: start;
}

.project-main > .project-meta { margin-top: clamp(28px, 5vw, 56px); }

@media (max-width: 700px) {
  .brand-logo { width: 54px; height: 54px; }
  .hero-pixel-field .px { width: 7px; height: 7px; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta-item + .project-meta-item { border-left: 0; border-top: var(--line); padding-left: 0; }
  .aza-story { grid-template-columns: 1fr; gap: 20px; }
  .aza-story-block,
  .aza-story-image { grid-column: 1 !important; grid-row: auto !important; }
  .aza-story-block { padding: 4px 0; }
  .aza-video-grid { grid-template-columns: 1fr; }
  .aza-extras { grid-template-columns: 1fr; }
  .aza-slides img { height: clamp(240px, 62vh, 420px); }
  .project-basic-copy { align-items: flex-start; flex-direction: column; }
}

/* ---------- mobile ---------- */

@media (max-width: 560px) {
  .agenda-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "date what"
      "date where";
    row-gap: 4px;
  }
  .agenda-where { align-items: flex-start; padding-left: 2px; }
  .lettre-form { flex-basis: 100%; margin-left: 0; }
  .lettre-pixels .lettre-pixel { width: clamp(16px, 4.5vw, 20px); height: clamp(16px, 4.5vw, 20px); }
}
