/* Squelette de démarrage de l'app web : la forme de l'accueil pendant le chargement. */
html, body {
  margin: 0;
  height: 100%;
  background: #0B0B0C;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  box-sizing: border-box;
  padding: 14px 24px 0;
  overflow: hidden;
  background: #0B0B0C;
  transition: opacity .25s ease;
}

#splash.sk-out {
  opacity: 0;
  pointer-events: none;
}

.sk {
  border-radius: 16px;
  background: linear-gradient(100deg, #1F1F23 30%, #2A2A30 50%, #1F1F23 70%);
  background-size: 300% 100%;
  animation: sk-sweep 1.4s linear infinite;
}

@keyframes sk-sweep {
  from { background-position: 100% 0; }
  to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

.sk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  margin-bottom: 16px;
}

.sk-logo { width: 34px; height: 34px; border-radius: 10px; }
.sk-word { width: 86px; height: 20px; border-radius: 8px; }
.sk-space { flex: 1; }
.sk-search { width: 280px; height: 38px; border-radius: 99px; }
.sk-avatar { width: 34px; height: 34px; border-radius: 50%; }

.sk-bento {
  display: flex;
  gap: 14px;
  height: 380px;
}

.sk-big { flex: 3; border-radius: 24px; }

.sk-small {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.sk-small .sk { border-radius: 24px; }

.sk-title {
  width: 150px;
  height: 12px;
  border-radius: 6px;
  margin: 32px 0 14px;
}

.sk-shelf {
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.sk-shelf .sk {
  flex: 0 0 140px;
  height: 210px;
}

.sk-dock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(560px, calc(100% - 48px));
  height: 54px;
  border-radius: 99px;
  transform: translateX(-50%);
  border: 1px solid #2A2A30;
}

/* Téléphone : comme l'app, une grande tuile puis deux petites. */
@media (max-width: 760px) {
  .sk-word, .sk-search { display: none; }
  .sk-bento { flex-direction: column; height: auto; }
  .sk-big { flex: none; height: 240px; }
  .sk-small { flex: none; grid-template-rows: 130px; }
  .sk-small .sk:nth-child(n+3) { display: none; }
  .sk-dock { width: min(320px, calc(100% - 48px)); }
}
