/* ════════════════════════════════════════════════════════════════════
   YBN LOS ANGELES — ybn-boost.css
   Couche transverse chargée sur TOUTES les pages.
   Tout est préfixé `yb-` : aucune collision possible avec style.css,
   gritty.css, polish.css ou les <style> inline des pages.

   Sommaire
   01. Tokens & garde-fous (reduced-motion, focus, sélection)
   02. Accessibilité — lien d'évitement
   03. Barre de progression de lecture
   04. Bouton retour en haut
   05. Palette de commandes (Ctrl+K)
   06. Lightbox galerie
   07. Widget serveur live
   08. Sommaire flottant (guide / règlement)
   09. Fil d'Ariane
   10. Micro-interactions (tilt, magnétique, spotlight, révélations)
   11. Transition de page
   12. Squelettes de chargement
   ════════════════════════════════════════════════════════════════════ */

/* ════════ 01. TOKENS & GARDE-FOUS ════════ */
:root {
  --yb-gold:      #FFD700;
  --yb-gold-2:    #DAA520;
  --yb-gold-deep: #8a6914;
  --yb-ink:       #0a0908;
  --yb-ink-2:     #14120f;
  --yb-ink-3:     #1c1915;
  --yb-line:      rgba(255,255,255,.09);
  --yb-line-2:    rgba(218,165,32,.35);
  --yb-text:      #f2f1ed;
  --yb-text-2:    #97948e;
  --yb-text-3:    #64615c;
  --yb-good:      #3fae66;
  --yb-warn:      #f59e0b;
  --yb-bad:       #ef4444;

  --yb-ease:      cubic-bezier(.22,1,.36,1);
  --yb-ease-out:  cubic-bezier(.16,1,.3,1);
  --yb-shadow:    0 24px 60px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05);

  --yb-nav-h:     72px;
  --yb-z-progress: 9400;
  --yb-z-top:      9450;
  --yb-z-toc:      9300;
  --yb-z-lightbox: 9600;
  --yb-z-palette:  9800;
  --yb-z-curtain:  9900;
}

/* Respect absolu de la préférence système : on coupe tout mouvement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus clavier visible et cohérent — sans polluer la souris. */
:focus-visible {
  outline: 2px solid var(--yb-gold-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ════════ 02. LIEN D'ÉVITEMENT ════════ */
.yb-skip {
  position: fixed;
  top: -100px; left: 12px;
  z-index: var(--yb-z-curtain);
  padding: 12px 20px;
  background: var(--yb-gold-2);
  color: #000;
  font: 700 13px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .5px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top .22s var(--yb-ease);
}
.yb-skip:focus { top: 0; }

/* ════════ 03. BARRE DE PROGRESSION ════════ */
.yb-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  z-index: var(--yb-z-progress);
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--yb-gold-deep), var(--yb-gold), var(--yb-gold-2));
  box-shadow: 0 0 12px rgba(255,215,0,.55);
  will-change: transform;
}

/* ════════ 04. RETOUR EN HAUT ════════ */
.yb-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  width: 46px; height: 46px;
  z-index: var(--yb-z-top);
  display: grid; place-items: center;
  border: 1px solid var(--yb-line-2);
  background: rgba(12,11,9,.9);
  backdrop-filter: blur(10px);
  color: var(--yb-gold-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--yb-ease), transform .3s var(--yb-ease),
              background .2s, color .2s, border-color .2s;
}
.yb-top.on { opacity: 1; transform: none; pointer-events: auto; }
.yb-top:hover { background: var(--yb-gold-2); color: #000; border-color: var(--yb-gold); }
.yb-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; }
/* Anneau de progression autour du bouton */
.yb-top .yb-top-ring { position: absolute; inset: -1px; transform: rotate(-90deg); }
.yb-top .yb-top-ring circle {
  fill: none; stroke: var(--yb-gold); stroke-width: 1.5;
  stroke-dasharray: 145; stroke-dashoffset: 145;
  transition: stroke-dashoffset .12s linear;
  opacity: .75;
}

/* ════════ 05. PALETTE DE COMMANDES (Ctrl+K) ════════ */
.yb-pal-hint {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--yb-line);
  background: rgba(255,255,255,.03);
  color: var(--yb-text-3);
  font: 600 11.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .2s var(--yb-ease);
}
.yb-pal-hint:hover { border-color: var(--yb-line-2); color: var(--yb-text); background: rgba(218,165,32,.08); }
.yb-pal-hint kbd {
  font: 700 10px/1 'Inter', system-ui, sans-serif;
  padding: 3px 5px;
  border: 1px solid var(--yb-line);
  background: rgba(255,255,255,.05);
  border-radius: 3px;
  color: var(--yb-text-2);
}
@media (max-width: 900px) { .yb-pal-hint { display: none; } }

.yb-pal-back {
  position: fixed; inset: 0;
  z-index: var(--yb-z-palette);
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(60px, 12vh, 140px) 16px 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--yb-ease), visibility .2s;
}
.yb-pal-back.on { opacity: 1; visibility: visible; }

.yb-pal {
  width: 100%; max-width: 620px;
  background: linear-gradient(170deg, var(--yb-ink-3), var(--yb-ink-2));
  border: 1px solid var(--yb-line-2);
  box-shadow: var(--yb-shadow);
  display: flex; flex-direction: column;
  max-height: min(560px, 70vh);
  transform: translateY(-16px) scale(.98);
  opacity: 0;
  transition: transform .26s var(--yb-ease-out), opacity .26s;
}
.yb-pal-back.on .yb-pal { transform: none; opacity: 1; }

.yb-pal-search {
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--yb-line);
  flex-shrink: 0;
}
.yb-pal-search svg { width: 17px; height: 17px; fill: none; stroke: var(--yb-gold-2); stroke-width: 2; flex-shrink: 0; }
.yb-pal-search input {
  flex: 1;
  background: none; border: none; outline: none;
  padding: 18px 0;
  color: var(--yb-text);
  font: 400 15.5px/1.3 'Inter', system-ui, sans-serif;
}
.yb-pal-search input::placeholder { color: var(--yb-text-3); }
.yb-pal-esc {
  font: 700 10px/1 'Inter', system-ui, sans-serif;
  padding: 4px 7px;
  border: 1px solid var(--yb-line);
  color: var(--yb-text-3);
  border-radius: 3px;
  flex-shrink: 0;
}

.yb-pal-list { overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.yb-pal-list::-webkit-scrollbar { width: 6px; }
.yb-pal-list::-webkit-scrollbar-thumb { background: var(--yb-gold-deep); }

.yb-pal-group {
  padding: 12px 12px 6px;
  font: 700 9.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--yb-text-3);
}
.yb-pal-item {
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  padding: 11px 12px;
  background: none; border: none;
  border-left: 2px solid transparent;
  color: var(--yb-text-2);
  text-align: left; text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background .14s, color .14s, border-color .14s;
}
.yb-pal-item:hover, .yb-pal-item.sel {
  background: rgba(218,165,32,.11);
  border-left-color: var(--yb-gold-2);
  color: var(--yb-text);
}
.yb-pal-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--yb-line);
  background: rgba(255,255,255,.03);
  color: var(--yb-gold-2);
  font-size: 12.5px;
}
.yb-pal-txt { min-width: 0; flex: 1; }
.yb-pal-t { font-size: 13.5px; font-weight: 600; color: inherit; line-height: 1.3; }
.yb-pal-d {
  font-size: 11.5px; color: var(--yb-text-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yb-pal-item mark { background: rgba(255,215,0,.22); color: var(--yb-gold); padding: 0 1px; }
.yb-pal-arrow { color: var(--yb-text-3); font-size: 11px; flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.yb-pal-item.sel .yb-pal-arrow { opacity: 1; }

.yb-pal-empty { padding: 42px 20px; text-align: center; color: var(--yb-text-3); font: 400 13px 'Inter', system-ui, sans-serif; }
.yb-pal-empty strong { color: var(--yb-text-2); }

.yb-pal-foot {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--yb-line);
  font: 500 10.5px/1 'Inter', system-ui, sans-serif;
  color: var(--yb-text-3);
  flex-shrink: 0; flex-wrap: wrap;
}
.yb-pal-foot span { display: inline-flex; align-items: center; gap: 5px; }
.yb-pal-foot kbd {
  padding: 3px 5px;
  border: 1px solid var(--yb-line);
  background: rgba(255,255,255,.04);
  border-radius: 3px;
  font: 700 9.5px/1 'Inter', system-ui, sans-serif;
}

/* ════════ 06. LIGHTBOX ════════ */
.yb-lb {
  position: fixed; inset: 0;
  z-index: var(--yb-z-lightbox);
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--yb-ease), visibility .25s;
}
.yb-lb.on { opacity: 1; visibility: visible; }
.yb-lb-stage {
  position: relative;
  max-width: 92vw; max-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.yb-lb-img {
  max-width: 92vw; max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--yb-line-2);
  box-shadow: 0 40px 90px rgba(0,0,0,.9);
  transform: scale(.94);
  opacity: 0;
  transition: transform .3s var(--yb-ease-out), opacity .3s;
  cursor: zoom-in;
}
.yb-lb.on .yb-lb-img { transform: none; opacity: 1; }
.yb-lb-img.zoom { cursor: zoom-out; transform: scale(1.7); }

.yb-lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--yb-line);
  background: rgba(12,11,9,.85);
  backdrop-filter: blur(8px);
  color: var(--yb-text);
  cursor: pointer;
  transition: all .2s var(--yb-ease);
  z-index: 2;
}
.yb-lb-btn:hover { background: var(--yb-gold-2); color: #000; border-color: var(--yb-gold); }
.yb-lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.yb-lb-prev { left: clamp(10px, 3vw, 34px); top: 50%; transform: translateY(-50%); }
.yb-lb-next { right: clamp(10px, 3vw, 34px); top: 50%; transform: translateY(-50%); }
.yb-lb-close { right: clamp(10px, 3vw, 34px); top: clamp(10px, 3vw, 28px); }
.yb-lb-prev:hover, .yb-lb-next:hover { transform: translateY(-50%) scale(1.06); }

.yb-lb-bar {
  position: absolute;
  bottom: clamp(12px, 4vh, 34px); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 9px 18px;
  border: 1px solid var(--yb-line);
  background: rgba(12,11,9,.88);
  backdrop-filter: blur(10px);
  color: var(--yb-text-2);
  font: 500 12px/1 'Inter', system-ui, sans-serif;
  max-width: 90vw;
}
.yb-lb-bar .n { color: var(--yb-gold-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.yb-lb-bar .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .yb-lb-prev, .yb-lb-next { width: 40px; height: 40px; }
}

/* ════════ 07. WIDGET SERVEUR LIVE ════════ */
.yb-live {
  border: 1px solid var(--yb-line);
  background: linear-gradient(168deg, var(--yb-ink-3), var(--yb-ink-2));
  box-shadow: 6px 8px 24px rgba(0,0,0,.6);
  padding: 1.35rem 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}
.yb-live::before {
  content: '';
  position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--yb-gold), var(--yb-gold-deep));
}
.yb-live-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.yb-live-t {
  font: 600 11px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--yb-text-3);
}
.yb-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--yb-line);
  font: 700 10.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.yb-live-pill .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.yb-live-pill.on  { color: var(--yb-good); border-color: rgba(63,174,102,.4); background: rgba(63,174,102,.08); }
.yb-live-pill.on .d  { background: var(--yb-good); animation: yb-pulse 2s infinite; }
.yb-live-pill.off { color: var(--yb-bad);  border-color: rgba(239,68,68,.35);  background: rgba(239,68,68,.07); }
.yb-live-pill.off .d { background: var(--yb-bad); }
.yb-live-pill.wait{ color: var(--yb-warn); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.07); }
.yb-live-pill.wait .d{ background: var(--yb-warn); animation: yb-pulse 1.4s infinite; }
@keyframes yb-pulse {
  0%,100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%     { box-shadow: 0 0 0 5px transparent; opacity: .55; }
}

.yb-live-count {
  display: flex; align-items: baseline; gap: 9px;
  font-family: 'Teko', 'Inter', sans-serif;
  line-height: .9;
}
.yb-live-count .now {
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 600;
  color: var(--yb-gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255,215,0,.28);
}
.yb-live-count .max { font-size: 22px; color: var(--yb-text-3); font-weight: 500; }
.yb-live-count .lbl {
  margin-left: auto;
  font: 500 11.5px/1.4 'Inter', system-ui, sans-serif;
  color: var(--yb-text-3);
  text-align: right;
  align-self: flex-end;
}

.yb-live-bar {
  height: 5px;
  background: rgba(255,255,255,.06);
  margin: .9rem 0 1.1rem;
  overflow: hidden;
}
.yb-live-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yb-gold-deep), var(--yb-gold));
  transition: width .9s var(--yb-ease-out);
  box-shadow: 0 0 12px rgba(255,215,0,.45);
}

/* Sparkline d'historique */
.yb-live-spark { display: block; width: 100%; height: 38px; margin-bottom: 1rem; }
.yb-live-spark .ln { fill: none; stroke: var(--yb-gold-2); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.yb-live-spark .ar { fill: url(#yb-spark-grad); opacity: .5; }

.yb-live-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  background: var(--yb-line);
  border: 1px solid var(--yb-line);
}
.yb-live-cell { background: var(--yb-ink-2); padding: .7rem .8rem; }
.yb-live-cell .k {
  font: 600 9.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--yb-text-3);
  margin-bottom: 6px;
  display: block;
}
.yb-live-cell .v {
  font: 600 17px/1 'Teko', 'Inter', sans-serif;
  color: var(--yb-text);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}
.yb-live-cell .v.gold { color: var(--yb-gold-2); }

.yb-live-next {
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px dashed var(--yb-line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.yb-live-next .ev {
  font: 600 13px/1.3 'Inter', system-ui, sans-serif;
  color: var(--yb-text);
}
.yb-live-next .ev small { display: block; font-size: 10.5px; font-weight: 500; color: var(--yb-text-3); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 3px; }
.yb-live-cd {
  margin-left: auto;
  display: flex; gap: 6px;
}
.yb-live-cd div {
  min-width: 42px; text-align: center;
  border: 1px solid var(--yb-line);
  background: rgba(255,255,255,.03);
  padding: 5px 4px;
}
.yb-live-cd b {
  display: block;
  font: 600 19px/1 'Teko', 'Inter', sans-serif;
  color: var(--yb-gold);
  font-variant-numeric: tabular-nums;
}
.yb-live-cd span {
  font: 600 8.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--yb-text-3);
}

/* ════════ 08. SOMMAIRE FLOTTANT ════════ */
.yb-toc {
  position: fixed;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: var(--yb-z-toc);
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 10px;
  border: 1px solid var(--yb-line);
  background: rgba(10,9,8,.82);
  backdrop-filter: blur(12px);
  max-height: 72vh; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--yb-ease);
  scrollbar-width: none;
}
.yb-toc::-webkit-scrollbar { display: none; }
.yb-toc.on { opacity: 1; pointer-events: auto; }
.yb-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--yb-text-3);
  font: 600 11.5px/1.3 'Inter', system-ui, sans-serif;
  transition: color .18s;
  max-width: 42px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .3s var(--yb-ease), color .18s;
}
.yb-toc:hover a { max-width: 230px; }
.yb-toc a::before {
  content: '';
  width: 22px; height: 2px; flex-shrink: 0;
  background: currentColor;
  transition: width .22s var(--yb-ease);
}
.yb-toc a:hover, .yb-toc a.on { color: var(--yb-gold); }
.yb-toc a.on::before { width: 30px; }
@media (max-width: 1280px) { .yb-toc { display: none; } }

/* ════════ 09. FIL D'ARIANE ════════ */
.yb-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 500 11.5px/1 'Inter', system-ui, sans-serif;
  color: var(--yb-text-3);
  padding: 0 0 1rem;
}
.yb-crumb a { color: var(--yb-text-3); text-decoration: none; transition: color .18s; }
.yb-crumb a:hover { color: var(--yb-gold-2); }
.yb-crumb .sep { opacity: .45; }
.yb-crumb .cur { color: var(--yb-text-2); }

/* ════════ 10. MICRO-INTERACTIONS ════════ */

/* Révélations au scroll — pour les pages sans gritty.js */
[data-yb-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--yb-ease-out), transform .7s var(--yb-ease-out);
  will-change: opacity, transform;
}
[data-yb-reveal="left"]  { transform: translateX(-32px); }
[data-yb-reveal="right"] { transform: translateX(32px); }
[data-yb-reveal="zoom"]  { transform: scale(.94); }
[data-yb-reveal].yb-in { opacity: 1; transform: none; }

/* Tilt 3D — le JS pose --rx / --ry */
[data-yb-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .45s var(--yb-ease);
  transform-style: preserve-3d;
}
[data-yb-tilt].yb-tilting { transition: transform .08s linear; }

/* Spotlight qui suit le curseur sur les cartes */
[data-yb-spot] { position: relative; isolation: isolate; }
[data-yb-spot]::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,215,0,.09), transparent 62%);
}
[data-yb-spot]:hover::after { opacity: 1; }

/* Boutons magnétiques */
[data-yb-magnet] {
  transition: transform .35s var(--yb-ease);
  will-change: transform;
}

/* Texte qui se "sprayer" caractère par caractère */
.yb-split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em) rotate(4deg);
  animation: yb-char .55s var(--yb-ease-out) forwards;
}
@keyframes yb-char { to { opacity: 1; transform: none; } }

/* Soulignement animé sur les liens de contenu */
.yb-underline {
  background-image: linear-gradient(var(--yb-gold-2), var(--yb-gold-2));
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .32s var(--yb-ease);
}
.yb-underline:hover { background-size: 100% 1.5px; }

/* Marquee : pause au survol (le CSS d'origine ne le prévoyait pas) */
.g-marquee:hover .g-marquee-track { animation-play-state: paused; }
.g-marquee .g-marquee-track { will-change: transform; }

/* Images : anti-CLS + fondu à l'arrivée */
img[data-yb-fade] { opacity: 0; transition: opacity .5s var(--yb-ease); }
img[data-yb-fade].yb-loaded { opacity: 1; }

/* ════════ 11. TRANSITION DE PAGE ════════ */
.yb-curtain {
  position: fixed; inset: 0;
  z-index: var(--yb-z-curtain);
  pointer-events: none;
  background: var(--yb-ink);
  opacity: 0;
  transition: opacity .28s var(--yb-ease);
}
.yb-curtain.on { opacity: 1; }
.yb-curtain::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--yb-gold), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.yb-curtain.on::after { animation: yb-curtain-line .5s var(--yb-ease-out) forwards; }
@keyframes yb-curtain-line { to { transform: scaleX(1); } }

/* ════════ 12. SQUELETTES DE CHARGEMENT ════════ */
.yb-skel {
  background: linear-gradient(100deg, rgba(255,255,255,.035) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.035) 70%);
  background-size: 220% 100%;
  animation: yb-shimmer 1.5s infinite linear;
}
@keyframes yb-shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* ════════ IMPRESSION — règlement / guide imprimables proprement ════════ */
@media print {
  .yb-progress, .yb-top, .yb-toc, .yb-pal-back, .yb-lb, .yb-curtain, .yb-skip,
  .g-nav, nav, .g-marquee, #splash, .yb-cur-dot, .yb-cur-ring,
  canvas, .g-hero-fog, video { display: none !important; }
  body, html { background: #fff !important; color: #000 !important; }
  body::after, body::before { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
  * { box-shadow: none !important; text-shadow: none !important; }
}

/* ════════ MISE EN PAGE — section « En direct » de l'accueil ════════ */
.g-live-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .g-live-split { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════
   14. CURSEUR PERSONNALISÉ  (build 5.2)
   ────────────────────────────────────────────────────────────────────
   Remplace la version qui vivait dans gritty.js / gritty.css et ne
   fonctionnait donc que sur l'accueil. Trois corrections de fond :

   1. z-index maximal — l'ancien (99991) passait SOUS certains panneaux ;
      ici rien ne peut le recouvrir.
   2. Plus de traînée de fumée : les bouffées grises se voyaient sur les
      fonds sombres (palette, lightbox, modales) et salissaient l'écran.
   3. Le curseur natif revient sur les champs de saisie : masquer le
      « I » de texte rendait les formulaires pénibles à utiliser.
   ════════════════════════════════════════════════════════════════════ */

.yb-cur-dot, .yb-cur-ring {
  position: fixed; left: 0; top: 0;
  pointer-events: none;
  z-index: 2147483000;          /* au-dessus de TOUT, palette incluse */
  will-change: transform;
  transform: translate3d(-200px, -200px, 0);
  opacity: 0;
  transition: opacity .22s var(--yb-ease);
}
.yb-cur-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;    /* centrage sans surcoût de calcul en JS */
  border-radius: 50%;
  background: var(--yb-gold);
  box-shadow: 0 0 8px rgba(255,215,0,.75);
}
.yb-cur-ring {
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1.5px solid rgba(218,165,32,.45);
  border-radius: 50%;
  transition: opacity .22s var(--yb-ease),
              background .2s, border-color .2s, width .2s, height .2s, margin .2s;
}

/* Curseur visible (le JS pose la classe après le premier mouvement) */
body.yb-cursor-on .yb-cur-dot,
body.yb-cursor-on .yb-cur-ring { opacity: 1; }

/* Survol d'un élément cliquable */
.yb-cur-ring.hot {
  border-color: rgba(255,215,0,.85);
  background: rgba(255,215,0,.08);
}
/* Bouton pressé */
.yb-cur-ring.down { border-color: var(--yb-gold); background: rgba(255,215,0,.16); }

/* Sur un champ de saisie : on rend la main au curseur natif */
body.yb-cursor-on.yb-cursor-text .yb-cur-dot,
body.yb-cursor-on.yb-cursor-text .yb-cur-ring { opacity: 0; }

/* ── Masquage du curseur natif ──
   Une seule règle universelle plutôt qu'une liste de balises : n'importe
   quelle feuille de style de la page peut déclarer `cursor:pointer` sur
   sa propre classe, `!important` tranche systématiquement. */
body.yb-cursor-on, body.yb-cursor-on * { cursor: none !important; }

/* …sauf sur les champs texte, où le caret doit rester visible */
body.yb-cursor-on input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.yb-cursor-on textarea,
body.yb-cursor-on [contenteditable="true"] { cursor: text !important; }

/* Pas de curseur maison sur écran tactile ni en mouvement réduit */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .yb-cur-dot, .yb-cur-ring { display: none !important; }
  body.yb-cursor-on, body.yb-cursor-on * { cursor: auto !important; }
  body.yb-cursor-on a, body.yb-cursor-on button,
  body.yb-cursor-on [onclick], body.yb-cursor-on [role="button"],
  body.yb-cursor-on label, body.yb-cursor-on summary { cursor: pointer !important; }
}
