/* Titre Platinium (style « Platine », title-platinum.js) : maquette Figma « Titre Platinium · spécification » et
   prototype animé Claude Design. Couches, de bas en haut : halo pulsé, relief et contour (::before du badge),
   métal platine, reflet holographique, éclat qui traverse, diamant, étincelles, particules (taille profil). */
.title-badge.plat-title { padding-left:1.32em; isolation:isolate; transition:transform .25s cubic-bezier(.3, 1.5, .5, 1) }
.title-badge.plat-title::before { color:#0c111c; -webkit-text-stroke-color:#0c111c; filter:drop-shadow(0 var(--tb-depth) 0 #05070c) drop-shadow(0 0 6px #cfe3ffa6) }
.title-badge.plat-title .tb-fill {
  background-image:linear-gradient(110deg, #8c9db4 0%, #c9d6e6 12%, #ffffff 24%, #b9c7da 37%, #f6f9ff 50%, #9fb0c6 62%, #eef3fa 75%, #ffffff 87%, #8c9db4 100%);
  background-size:250% 100%; background-position:30% 0 }
.plat-aura, .plat-holo, .plat-glint, .plat-sparks, .plat-dust, .plat-gem { pointer-events:none }
.plat-aura { position:absolute; inset:-38% -10% -38% 0; z-index:-1; border-radius:50%; background:radial-gradient(closest-side, #cfe3ff80, #8fb4ff29 62%, transparent); filter:blur(5px) }
.plat-holo, .plat-glint { position:absolute; inset:0; padding:inherit; z-index:2; white-space:nowrap; color:transparent; -webkit-background-clip:text; background-clip:text }
.plat-holo { background-image:linear-gradient(120deg, #ff9ad5, #ffe89a 18%, #9dffcf 36%, #8fd8ff 54%, #c9a2ff 72%, #ff9ad5 90%); background-size:300% 100%; mix-blend-mode:color-dodge; opacity:.42 }
.plat-glint { background-image:linear-gradient(105deg, transparent 44%, #ffffffe6 50%, transparent 56%); background-size:300% 100%; background-repeat:no-repeat; background-position:100% 0; mix-blend-mode:screen }
.plat-gem { position:absolute; left:.02em; top:50%; z-index:3; width:1.12em; height:1.12em; transform:translateY(-54%); filter:drop-shadow(0 0 3px #cfe3ff) }
.plat-gem svg { display:block; width:100%; height:100% }
.plat-sparks { position:absolute; inset:0; z-index:4; filter:drop-shadow(0 0 2.5px #dbe9ff) }
.plat-sparks i { position:absolute; width:.56em; height:.56em; background:#fff; opacity:0;
  clip-path:polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%) }
.plat-sparks i:nth-child(1) { right:-.34em; top:-.4em }
.plat-sparks i:nth-child(2) { left:46%; top:-.5em; width:.4em; height:.4em }
.plat-sparks i:nth-child(3) { right:16%; bottom:-.38em; width:.44em; height:.44em }
.plat-sparks i:nth-child(4) { left:1.05em; bottom:-.3em; width:.34em; height:.34em }
.plat-dust { display:none }
.title-badge.plat-title.block .plat-dust { display:block; position:absolute; inset:-40% -6% 0; z-index:-1; overflow:hidden }
.plat-dust i { position:absolute; bottom:0; width:2px; height:2px; border-radius:50%; background:#e6f0ff; box-shadow:0 0 3px #cfe3ff; opacity:0 }
.plat-dust i:nth-child(1) { left:12% } .plat-dust i:nth-child(2) { left:30% } .plat-dust i:nth-child(3) { left:47% }
.plat-dust i:nth-child(4) { left:63% } .plat-dust i:nth-child(5) { left:78% } .plat-dust i:nth-child(6) { left:92% }
/* Listes et classements : métal, contour, diamant, éclat et deux étincelles seulement. */
.title-badge.plat-title.sm .plat-holo, .title-badge.plat-title.sm .plat-sparks i:nth-child(n+3) { display:none }
.title-badge.plat-title.sm .plat-aura { opacity:.6 }

@media (prefers-reduced-motion: no-preference) {
  .title-badge.plat-title .tb-fill { animation:plat-metal 6s linear infinite }
  .plat-aura { animation:plat-aura 3.2s ease-in-out infinite }
  .plat-holo { animation:plat-holo 9s linear infinite }
  .plat-glint { animation:plat-glint 3.5s cubic-bezier(.45, 0, .2, 1) infinite }
  .plat-gem { animation:plat-gem 4s ease-in-out infinite }
  .plat-sparks i { animation:plat-spark 2.6s ease-in-out infinite }
  .plat-sparks i:nth-child(2) { animation-delay:.65s } .plat-sparks i:nth-child(3) { animation-delay:1.3s } .plat-sparks i:nth-child(4) { animation-delay:1.95s }
  .plat-dust i { animation:plat-dust 3.4s linear infinite }
  .plat-dust i:nth-child(2) { animation-delay:.6s } .plat-dust i:nth-child(3) { animation-delay:1.7s } .plat-dust i:nth-child(4) { animation-delay:1.1s }
  .plat-dust i:nth-child(5) { animation-delay:2.4s } .plat-dust i:nth-child(6) { animation-delay:2.9s }
  /* Survol : éclat deux fois plus rapide, étincelles toutes allumées, titre soulevé. */
  .title-badge.plat-title:hover { transform:translateY(-1px) }
  .title-badge.plat-title:hover .plat-glint { animation-duration:1.6s }
  .title-badge.plat-title:hover .plat-sparks i { animation-duration:1.1s }
  .title-badge.plat-title:hover .plat-aura { animation-duration:1.4s }
}
@media (prefers-reduced-motion: reduce) {
  .plat-glint { display:none }
  .plat-sparks i:nth-child(-n+2) { opacity:.9 }
}
@keyframes plat-metal { from { background-position:0% 0 } to { background-position:250% 0 } }
@keyframes plat-aura { 0%, 100% { opacity:.55; transform:scale(.94) } 50% { opacity:1; transform:scale(1.06) } }
@keyframes plat-holo { from { background-position:0% 0 } to { background-position:300% 0 } }
@keyframes plat-glint { 0%, 50% { background-position:100% 0 } 82%, 100% { background-position:0% 0 } }
@keyframes plat-gem { 0%, 100% { transform:translateY(-54%) rotate(-7deg) scale(1) } 50% { transform:translateY(-60%) rotate(7deg) scale(1.1) } }
@keyframes plat-spark { 0%, 100% { opacity:0; transform:scale(.2) rotate(0deg) } 38% { opacity:1; transform:scale(1) rotate(45deg) } 68% { opacity:0; transform:scale(.35) rotate(90deg) } }
@keyframes plat-dust { 0% { opacity:0; transform:translateY(0) } 20% { opacity:.9 } 100% { opacity:0; transform:translateY(-2.4em) } }
/* Admin → Titres : aperçu */
.bo-title-preview { display:flex; flex-direction:column; gap:10px; margin:6px 0 4px; padding:16px 18px; border-radius:12px; background:radial-gradient(420px 120px at 30% 40%, #1c2333, #0b0d14); border:1px solid #ffffff1a }
.bo-title-preview-name { color:#e9eef8; font-weight:700 }
