/* ============================================================
   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.72);
    opacity: 0.08;
  }
  24% {
    transform: translate3d(-2px, -3px, 0) scale(0.92);
    opacity: 0.48;
  }
  52% {
    transform: translate3d(4px, -6px, 0) scale(1);
    opacity: 0.9;
  }
  78% {
    transform: translate3d(2px, 2px, 0) scale(0.78);
    opacity: 0.18;
  }
}

.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.12em;
  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-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; font-size: 15px; color: var(--fg); opacity: 0.75; }

.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;
}

/* chaque vignette : trois pixels posés différemment */
.thumb .px {
  position: absolute;
  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%; }
.thumb--aza .px:nth-child(2) { opacity: 0.85; }
.thumb--aza .px:nth-child(3) { opacity: 0.7; }

/* 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 — bal : 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%; }

.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 {
  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-text { 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 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.lettre-form input {
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: var(--line);
  background: var(--bg-2);
  color: var(--fg);
  min-width: 220px;
}

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

/* ---------- 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;
  min-height: clamp(260px, 42vw, 520px);
  margin: 0 0 clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: var(--line);
  background: var(--bg-2);
}

.project-hero-visual::before,
.project-hero-visual::after { content: ""; position: absolute; }

.project-hero-visual::before {
  width: 24%;
  aspect-ratio: 1;
  left: 15%;
  top: 22%;
  background: var(--jaune);
  box-shadow: 0 0 14px rgba(255, 213, 0, 0.35);
}

.project-hero-visual::after {
  width: 13%;
  aspect-ratio: 1;
  right: 18%;
  bottom: 20%;
  background: var(--magenta);
  box-shadow: 0 0 14px rgba(230, 22, 230, 0.35);
}

.project-visual-label {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(28px, 7vw, 96px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

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

.project-side {
  align-self: start;
  padding-top: 5px;
  border-top: 2px solid var(--jaune);
}

.project-side p { margin: 12px 0 0; font-size: 14px; }

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

.project-gallery-item {
  min-height: clamp(150px, 18vw, 230px);
  border: var(--line);
  background: var(--bg-2);
}

.project-gallery-item:nth-child(2) { background: var(--magenta); opacity: 0.9; }
.project-gallery-item:nth-child(3) { background: var(--cyan); opacity: 0.9; }

@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; }
  .project-copy { grid-template-columns: 1fr; gap: 28px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-item { min-height: 180px; }
}

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

@media (max-width: 560px) {
  .agenda-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "date what"
      "date where";
    row-gap: 4px;
  }
  .agenda-where { padding-left: 2px; }
  .lettre-form { margin-left: 0; }
  .lettre-form input { min-width: 0; flex: 1 1 100%; }
}
