/* ==========================================================================
   Accueil : bande « En ce moment » sous la revue de presse (25/11/2026)
   — les dates sur un grand tableau à palettes (moteur assets/js/scene/board.js, styles communs board.css),
     pages qui défilent, flyer au survol d'une ligne, ligne « Booking » (→ /contact#booking)
   — les 4 dernières news en polaroïds punaisés (→ /news#<slug>)
   — Bandcamp / Instagram en autocollants (SoundCloud et YouTube retirés le 26/11/2026)
   Remplie par assets/js/ecm/ecm.js ; préfixe ecm- (l'id « now » est déjà pris par la légende du lecteur).
   ========================================================================== */

.ecm {
  --wall: #efedf0; --ink: #1c1c1e; --ink-dim: #6e6e73;
  background: var(--wall); color: var(--ink);
  padding: 8px clamp(16px, 4vw, 56px) 96px;
  position: relative;
}
/* pas de grand titre visible (choix de Maxime, 25/11/2026) : titre pour lecteurs d'écran seulement (.sr-only) */

.ecm-board { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(44px, 5vw, 64px); }
.ecm-more {
  display: inline-block; margin-top: 26px;
  font: 600 12px/1 var(--font-titres, "Josefin Sans", sans-serif); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.ecm-more:hover { color: #e3051b; }
/* « Sur scène » et « Dernières news » : plus affichés (Maxime, 26/11/2026 : « ces titres servent à rien »),
   gardés pour les lecteurs d'écran (.sr-only dans index.html) */
.ecm-label {
  margin: 0 0 18px;
  font: 600 12px/1 var(--font-titres, "Josefin Sans", sans-serif); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Polaroïds ---------- */
.ecm-news[hidden] { display: none; }
.ecm-polas {
  list-style: none; margin: 0; padding: 14px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px clamp(20px, 3.4vw, 52px);
}
.ecm-polas > li { max-width: 290px; rotate: var(--r, 0deg); translate: 0 var(--dy, 0); }
.ecm-pola {
  position: relative; display: block; aspect-ratio: 88 / 107;
  color: #1f2024; text-decoration: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(160deg, #fdfcf8, #f3f1ea);
  border-radius: 2px;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.08),
    0 1px 1px rgba(0,0,0,.08),
    0 10px 18px -8px rgba(40,30,20,.32),
    0 22px 36px -22px rgba(40,30,20,.28);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.ecm-pola:hover, .ecm-pola:focus-visible {
  transform: translateY(-8px) rotate(calc(var(--r, 0deg) * -.65)) scale(1.045);
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.08),
    0 2px 3px rgba(0,0,0,.08),
    0 24px 36px -12px rgba(40,30,20,.38),
    0 40px 60px -30px rgba(40,30,20,.3);
}
.ecm-pola:focus-visible { outline: 2px solid #1c1c1e; outline-offset: 6px; }

/* punaise rouge en haut */
.ecm-pola::before {
  content: ""; position: absolute; z-index: 3; left: 50%; top: -7px; translate: -50% 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #d81e10 55%, #8a0d05);
  box-shadow: 0 3px 4px -1px rgba(0,0,0,.45), 2px 6px 6px -3px rgba(0,0,0,.25);
}

.ecm-photo {
  position: absolute; left: 6.8%; right: 6.8%; top: 5.6%;
  aspect-ratio: 1; overflow: hidden; background: #1d1f1a;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.ecm-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) contrast(1.04) sepia(.12) brightness(1.02);
  transition: filter 3.2s cubic-bezier(.3,.1,.3,1), opacity 1.2s;
}
.ecm-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 75% at 50% 45%, transparent 55%, rgba(30,20,10,.28)),
    linear-gradient(125deg, rgba(255,255,255,.22) 0, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 68%, rgba(255,255,255,.08));
}
/* voile de développement, qui se dissipe quand le polaroïd arrive à l'écran */
.ecm-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, #6f7c72, #4b5650);
  opacity: 0; transition: opacity 3.6s cubic-bezier(.3,.1,.3,1);
}
.ecm-pola:not(.is-dev) .ecm-photo img { filter: brightness(.35) contrast(.5) sepia(.6) hue-rotate(115deg) saturate(.5) blur(1.5px); opacity: .55; transition: none; }
.ecm-pola:not(.is-dev) .ecm-photo::before { opacity: .92; transition: none; }
.ecm-pola.is-dev .ecm-photo img, .ecm-pola.is-dev .ecm-photo::before { transition-delay: var(--dev-delay, 0s); }

/* sans photo : film resté noir, titre au marqueur argent */
.ecm-photo.is-blank { background: radial-gradient(ellipse at 30% 25%, #34332f, #121210 70%); display: grid; place-items: center; }
.ecm-photo.is-blank::before { display: none; }
.ecm-blank {
  position: relative; z-index: 2; padding: 12%;
  font-family: "Permanent Marker", "Caveat", cursive; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.15;
  color: #d9d9d4; text-align: center; transform: rotate(-4deg);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.ecm-caption {
  position: absolute; left: 7%; right: 6%; top: calc(5.6% + 86.4% * 88 / 107 + 2.5%); bottom: 3.5%;
  display: flex; align-items: center; gap: 6px;
}
.ecm-pola-title {
  flex: 1; min-width: 0;
  font-family: "Caveat", cursive; font-weight: 600; font-size: clamp(15px, 1.3vw, 19px); line-height: .98;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transform: rotate(-1deg);
}
.ecm-pola-date {
  flex: none; align-self: flex-end; margin-bottom: 1px;
  font-family: "Caveat", cursive; font-size: 13px; line-height: 1; opacity: .65; transform: rotate(-3deg);
}

/* ---------- Grand tableau des dates ---------- */
/* Palettes : board.css (commun avec la page Scène). Ici : le cadre, le titre et ses touches, les pages, le flyer. */
.ecm-dates[hidden] { display: none; }
.ecm-dep {
  --flap-bg: #222326; --flap-ink: #f1ede0;
  --ink: var(--flap-ink);   /* la bande définit --ink (texte noir) : les palettes reprennent leur encre claire */
  --ch-max: 64px;           /* palettes bien plus grandes que sur la page Scène (34 px) */
  position: relative;
  padding: clamp(14px, 2.2vw, 30px) clamp(12px, 2.4vw, 34px) clamp(14px, 2vw, 26px);
  border-radius: 14px;
  background: linear-gradient(#2b2c30, #1a1b1e 12%, #161719);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04),
    24px 40px 70px -20px rgba(0,0,0,.42), 4px 8px 16px -6px rgba(0,0,0,.3);
}
.ecm-dep::before {   /* vis aux quatre coins */
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #8b8d93 0 2.6px, transparent 3.2px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle at 100% 0, #8b8d93 0 2.6px, transparent 3.2px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle at 0 100%, #8b8d93 0 2.6px, transparent 3.2px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle at 100% 100%, #8b8d93 0 2.6px, transparent 3.2px) 100% 100% / 8px 8px no-repeat;
}
.ecm-dep-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: clamp(10px, 1.6vw, 20px); }
.ecm-dep-top[data-pages="1"] .ecm-dep-key { visibility: hidden; }
.ecm-dep .ecm-dep-title.board { width: min(100%, 640px); justify-self: center; --ch-max: 52px; }
.ecm-dep .ecm-dep-title .board-cols { display: none; }
.ecm-dep .ecm-dep-title .board-row .flap { --ink: #ffb21f; }   /* titre en jaune, comme les en-têtes « DÉPARTS » (plus fort que .board-row.is-empty) */
.ecm-dep-key {
  width: clamp(30px, 3vw, 40px); aspect-ratio: 1; border-radius: 8px; border: 0; cursor: pointer;
  background: linear-gradient(#3b3c41, #232428); color: #d9d6cc; font-size: clamp(11px, 1vw, 14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 3px rgba(0,0,0,.5);
}
.ecm-dep-key:hover { color: #ffb21f; }
.ecm-dep-key:active { translate: 0 1px; }
.ecm-dep-key:focus-visible { outline: 2px solid #ffb21f; outline-offset: 3px; }
.ecm-dep .board-cols { margin-bottom: 8px; font-size: clamp(10px, .9vw, 12px); }
.ecm-dep .board-rows { gap: clamp(3px, .4vw, 6px); }
/* 5ᵉ colonne (grand tableau seulement) : ▶ = set enregistré, en jaune comme sur la page Scène */
.ecm-dep .board-row .board-cell:nth-child(5) .flap { --ink: #ffb21f; }
/* petits repères de page sous le tableau */
.ecm-dep-dots { display: flex; justify-content: center; gap: 7px; margin-top: clamp(10px, 1.4vw, 16px); }
.ecm-dep-dots[hidden] { display: none; }
.ecm-dep-dots span { width: 6px; height: 6px; border-radius: 50%; background: #4a4b50; transition: background .3s; }
.ecm-dep-dots span.is-on { background: #ffb21f; box-shadow: 0 0 6px rgba(255,178,31,.6); }

/* flyer de la date survolée, scotché par-dessus le tableau */
.ecm-flyer {
  position: absolute; z-index: 6; left: 0; top: 0; width: clamp(150px, 15vw, 220px);
  pointer-events: none; opacity: 0; scale: .9; rotate: var(--r, 3deg);
  transition: opacity .18s, scale .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 18px 34px -10px rgba(0,0,0,.55);
  background: #fff;
}
.ecm-flyer.is-on { opacity: 1; scale: 1; }
.ecm-flyer img { display: block; width: 100%; height: auto; }
.ecm-flyer::before {   /* bout de scotch */
  content: ""; position: absolute; z-index: 1; left: 50%; top: -11px; width: 64px; height: 22px; translate: -50% 0; rotate: -4deg;
  background: rgba(246, 240, 214, .78); box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.ecm-side { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---------- Autocollants ---------- */
.ecm-stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 20px; }
.ecm-stickers li:has(> [hidden]) { display: none; }
.ecm-sticker {
  --bg: #333; --fg: #fff;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 120px; padding: 13px 18px 11px;
  color: var(--fg); background: var(--bg); text-decoration: none; text-align: center;
  border-radius: 12px; rotate: var(--r, 0deg);
  box-shadow: 0 0 0 5px #fbfaf7, 0 0 0 5.5px rgba(0,0,0,.08), 0 8px 14px -4px rgba(40,30,20,.35);
  transition: rotate .3s cubic-bezier(.2,.8,.2,1), translate .3s, box-shadow .3s;
  overflow: hidden;
}
/* reflet vinyle */
.ecm-sticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 72%, rgba(255,255,255,.14));
}
.ecm-sticker:hover, .ecm-sticker:focus-visible {
  rotate: calc(var(--r, 0deg) * -.4); translate: 0 -4px;
  box-shadow: 0 0 0 5px #fbfaf7, 0 0 0 5.5px rgba(0,0,0,.08), 0 16px 22px -6px rgba(40,30,20,.4);
}
.ecm-sticker:focus-visible { outline: 2px solid #1c1c1e; outline-offset: 9px; }
.ecm-sticker b { font: 900 19px/1 "Lato", sans-serif; letter-spacing: -.01em; }
.ecm-sticker span { margin-top: 5px; font: 600 10px/1 var(--font-titres, "Josefin Sans", sans-serif); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ecm-sticker--bandcamp { --bg: #1da0c3; --r: -4deg; border-radius: 4px; }
.ecm-sticker--instagram {
  --r: 5deg; border-radius: 50%; width: 108px; height: 108px; min-width: 0; padding: 0;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ecm-sticker--instagram b { font-size: 16px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .ecm-polas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecm-polas > li { max-width: none; }
}
@media (max-width: 560px) {
  .ecm { padding-bottom: 72px; }
  .ecm-polas { gap: 28px 20px; }
  .ecm-stickers { gap: 20px 16px; }
  .ecm-sticker { min-width: 104px; padding: 11px 14px 9px; }
  .ecm-sticker b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecm-pola, .ecm-sticker, .ecm-flyer { transition: none; }
  .ecm-pola:not(.is-dev) .ecm-photo img { filter: none; opacity: 1; }
  .ecm-pola:not(.is-dev) .ecm-photo::before { opacity: 0; }
}
