/* La page « Le boîtier Tempo » de l'atelier : le hero-établi et son boîtier jouable, le récit de
 * sa naissance, les quatre métiers de la fabrication et la fin.
 *
 * Vient après `base.css`, dont elle réutilise les valeurs et dont elle surcharge ici les seules
 * règles qui divergent sur cette page.
 */

/* Les quatre couleurs du calendrier Tempo, et le second ton de l'établi. */
:root {
  --bnm-tmp-bench-2: #1d1a36;
  --bnm-tmp-t-blue: #2f74e0;
  --bnm-tmp-t-white: #eef0f2;
  --bnm-tmp-t-red: #d92d20;
  --bnm-tmp-t-yellow: #f5b301;
}

body { font-family: var(--bnm-font); color: var(--bnm-ink); background: var(--bnm-paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased }
a { color: inherit }
.bnm-tmp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700;
  font-family: var(--bnm-display); text-wrap: balance }

/* ── Le hero : l'établi de nuit ───────────────────────────────────────────────────────────── */
.bnm-tmp-bench { background: radial-gradient(120% 90% at 78% -10%, #2a2550, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, #241f47, transparent 55%), var(--bnm-bench);
  color: #eae8ff; position: relative; overflow: hidden }
.bnm-tmp-bench:before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px; mask: radial-gradient(120% 100% at 50% 30%, #000, transparent 85%) }
.bnm-tmp-hero { position: relative; padding: 60px 0 72px; display: grid;
  grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; text-align: left }
@media (max-width: 900px) {
  .bnm-tmp-hero { grid-template-columns: 1fr; gap: 36px; text-align: center; padding: 52px 0 60px }
  .bnm-tmp-hero h1, .bnm-tmp-hero .bnm-tmp-sub, .bnm-tmp-hero .bnm-tmp-play-hint {
    margin-left: auto; margin-right: auto }
}
.bnm-tmp-hero-play { text-align: center }
.bnm-tmp-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bnm-display);
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #b9b7f0;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 100px; padding: 6px 14px; margin-bottom: 24px }
.bnm-tmp-kicker b { color: var(--bnm-amber); font-weight: 800 }
.bnm-tmp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); color: #fff; max-width: 15ch; margin: 0 0 16px }
.bnm-tmp-hero h1 em { font-style: normal; color: #8fb6f2 }
.bnm-tmp-hero .bnm-tmp-sub { color: #c3c1e6; font-size: 1.15rem; max-width: 42ch; margin: 0 0 10px }
.bnm-tmp-hero .bnm-tmp-sub-explain { font-size: 1rem; color: #a5a2ce; max-width: 46ch }
.bnm-tmp-hero .bnm-tmp-sub-explain b { color: #e8e6ff; font-weight: 600 }
.bnm-tmp-hero .bnm-tmp-play-hint { color: #8f8cc0; font-size: .95rem; margin: 6px 0 0;
  font-style: italic; max-width: 38ch }

/* ── Le boîtier jouable ───────────────────────────────────────────────────────────────────── */
.bnm-tmp-stage { position: relative; max-width: 460px; margin: 0 auto }
.bnm-tmp-device { aspect-ratio: 5/3; border-radius: 26px;
  background: linear-gradient(162deg, #f7f5ef, #e7e4da 72%, #dcd8cc); border: 1px solid #cbc6b8;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .05);
  display: flex; align-items: center; justify-content: center; gap: min(14%, 58px); cursor: pointer;
  user-select: none; transition: transform .15s ease }
.bnm-tmp-device:hover { transform: translateY(-3px) }
.bnm-tmp-device:focus-visible { outline: 3px solid var(--bnm-indigo-2); outline-offset: 4px }
.bnm-tmp-device:after { content: ""; position: absolute; left: 16%; right: 16%; top: 14px; height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent) }
.bnm-tmp-led-wrap { display: flex; flex-direction: column; align-items: center; gap: 15px }
.bnm-tmp-led { width: clamp(48px, 14vw, 66px); height: clamp(48px, 14vw, 66px); border-radius: 50%;
  background: #c8ccd2;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .3) inset;
  transition: box-shadow .45s ease, background .1s ease }
.bnm-tmp-led--blue { background: radial-gradient(circle at 34% 30%, #a9c6f6, #2f74e0 60%, #1c56b8);
  box-shadow: 0 0 0 5px rgba(47, 116, 224, .18), 0 0 40px 9px rgba(47, 116, 224, .6),
    0 2px 4px rgba(0, 0, 0, .35) inset }
.bnm-tmp-led--white { background: radial-gradient(circle at 34% 30%, #ffffff, #eef0f2 60%, #d7dae0);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 0 30px 6px rgba(255, 255, 255, .5),
    0 2px 4px rgba(0, 0, 0, .22) inset }
.bnm-tmp-led--red { background: radial-gradient(circle at 34% 30%, #f3a49d, #d92d20 58%, #a81d13);
  box-shadow: 0 0 0 5px rgba(217, 45, 32, .2), 0 0 46px 11px rgba(217, 45, 32, .62),
    0 2px 4px rgba(0, 0, 0, .35) inset; animation: pulse 1.5s ease-in-out infinite }
.bnm-tmp-led--yellow { background: radial-gradient(circle at 34% 30%, #ffe293, #f5b301 58%, #c98f00);
  box-shadow: 0 0 0 5px rgba(245, 179, 1, .2), 0 0 36px 8px rgba(245, 179, 1, .55),
    0 2px 4px rgba(0, 0, 0, .3) inset }
.bnm-tmp-led-label { font-family: var(--bnm-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; color: #4a4636; text-transform: lowercase }
@keyframes pulse { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(.6) } }
@keyframes boot { 0% { opacity: .1 } 40% { opacity: .4 } 55% { opacity: .15 } 100% { opacity: 1 } }
.bnm-tmp-booting .bnm-tmp-led { animation: boot .9s ease-out both }
.bnm-tmp-booting .bnm-tmp-led:nth-child(1) { animation-delay: .15s }

/* ── Les annotations au crayon ────────────────────────────────────────────────────────────── */
/* Elles vivent dans les marges du boîtier : en dessous de 1220px celle de droite sortait du cadre
   (rognée par le overflow du hero) — mesuré : il faut 1280px de large pour que le repère de droite
   tienne entièrement hors du boîtier : 1341px */
@media (max-width: 1340px) { .bnm-ann-annot { display: none } }

.bnm-tmp-advice { margin: 26px auto 20px; max-width: 38ch; font-family: var(--bnm-display);
  font-size: 1.15rem; font-weight: 500; color: #fff; min-height: 2.4em; display: flex;
  align-items: center; justify-content: center; transition: opacity .2s ease }
/* Le conseil s'efface le temps d'être réécrit : le contrôleur pose l'attribut, la règle le peint. */
.bnm-tmp-advice[data-fading] { opacity: 0 }
.bnm-tmp-scn { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 6px;
  border-radius: 100px }
.bnm-tmp-scn button { font-family: var(--bnm-font); font-size: .9rem; font-weight: 600; color: #c7c5ee;
  background: transparent; border: 0; padding: 9px 16px; border-radius: 100px; cursor: pointer;
  transition: background .15s ease, color .15s ease }
.bnm-tmp-scn button:hover { color: #fff }
.bnm-tmp-scn button[aria-pressed="true"] { background: #fff; color: var(--bnm-indigo-ink) }
.bnm-tmp-scn button:focus-visible { outline: 2px solid #fff; outline-offset: 2px }

/* ── Les sections claires : papier millimétré ─────────────────────────────────────────────── */
section { padding: 76px 0 }
.bnm-tmp-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start }
@media (max-width: 820px) { .bnm-tmp-story { grid-template-columns: 1fr; gap: 26px } }
.bnm-tmp-story-main { max-width: 60ch }
.bnm-tmp-story .bnm-tmp-lbl { font-family: var(--bnm-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bnm-amber-ink);
  background: var(--bnm-amber-soft); padding: 5px 12px; border-radius: 100px; display: inline-block;
  margin-bottom: 22px }
.bnm-tmp-story h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 18px }
.bnm-tmp-story p { font-size: 1.14rem; color: var(--bnm-ink-soft); margin-bottom: 16px }
.bnm-tmp-story .bnm-tmp-mark-am { background: linear-gradient(transparent 62%, rgba(224, 122, 63, .35) 0);
  padding: 0 2px }
.bnm-tmp-signoff { font-family: var(--bnm-display); font-style: italic; color: var(--bnm-ink);
  font-weight: 500 }

/* ── Le callout fiabilité ─────────────────────────────────────────────────────────────────── */
.bnm-tmp-callout { background: var(--bnm-white); border: 1px solid var(--bnm-line);
  border-left: 4px solid var(--bnm-indigo); border-radius: 14px; padding: 26px 28px;
  box-shadow: var(--bnm-shadow) }
@media (min-width: 821px) { .bnm-tmp-callout { position: sticky; top: 74px } }
@media (max-width: 820px) { .bnm-tmp-callout { margin-top: 4px } }
.bnm-tmp-callout h3 { font-size: 1.2rem; margin-bottom: 6px }
.bnm-tmp-callout p { color: var(--bnm-ink-soft); font-size: 1rem }

/* ── Fait ici : les 4 métiers ─────────────────────────────────────────────────────────────── */
.bnm-tmp-made { position: relative }
.bnm-tmp-made .bnm-tmp-head { max-width: 780px; margin: 0 0 8px }
.bnm-tmp-made .bnm-tmp-lbl { font-family: var(--bnm-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bnm-indigo); margin-bottom: 14px;
  display: block }
.bnm-tmp-made h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px }
.bnm-tmp-made .bnm-tmp-intro { font-size: 1.12rem; color: var(--bnm-ink-soft); margin-bottom: 38px;
  max-width: 70ch }
.bnm-tmp-realshot { margin: 0 0 40px }
.bnm-tmp-realshot .bnm-tmp-frame { border-radius: var(--bnm-radius); overflow: hidden;
  border: 1px solid var(--bnm-line); box-shadow: var(--bnm-shadow); background: #fff; max-width: 700px }
.bnm-tmp-realshot img { width: 100%; display: block; height: auto }
.bnm-tmp-realshot figcaption { margin-top: 11px; color: var(--bnm-muted); font-size: .92rem;
  max-width: 62ch }
.bnm-tmp-crafts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px }
@media (max-width: 720px) { .bnm-tmp-crafts { grid-template-columns: 1fr } }
.bnm-tmp-craft { background: var(--bnm-white); border: 1px solid var(--bnm-line);
  border-radius: var(--bnm-radius); padding: 26px; position: relative;
  transition: transform .14s ease, box-shadow .2s ease }
.bnm-tmp-craft:hover { transform: translateY(-3px); box-shadow: var(--bnm-shadow) }
.bnm-tmp-craft .bnm-tmp-k { font-family: var(--bnm-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bnm-amber-ink);
  background: var(--bnm-amber-soft); padding: 4px 10px; border-radius: 100px; display: inline-block;
  margin-bottom: 12px }
.bnm-tmp-craft h3 { font-size: 1.3rem; margin-bottom: 7px }
.bnm-tmp-craft p { color: var(--bnm-ink-soft); font-size: .98rem }
.bnm-tmp-stamp { position: absolute; right: -6px; top: -18px; width: 96px; height: 96px;
  transform: rotate(9deg) }
@media (max-width: 720px) { .bnm-tmp-stamp { right: 8px; top: -34px; width: 78px; height: 78px } }

/* ── La fin légère ────────────────────────────────────────────────────────────────────────── */
.bnm-tmp-end { text-align: center; padding: 84px 0 }
.bnm-tmp-end h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: 14px }
.bnm-tmp-end p { font-size: 1.14rem; color: var(--bnm-ink-soft); max-width: 46ch; margin: 0 auto 26px }
.bnm-tmp-end .bnm-tmp-fine { margin-top: 16px; color: var(--bnm-muted); font-size: .92rem }
/* Les renvois vers le reste de l'atelier ressortent du gris de la ligne qui les porte : ce sont
   les seuls mots cliquables de la section. */
.bnm-tmp-fine a { color: var(--bnm-indigo); font-weight: 600 }

/* ── Le pied ──────────────────────────────────────────────────────────────────────────────── */
footer { padding: 30px 0; color: var(--bnm-muted); font-size: .88rem;
  border-top: 1px solid var(--bnm-line); text-align: center }
footer a { color: var(--bnm-ink-soft) }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important } }
