/* Golf des Flandres : chargements (squelettes) des zones asynchrones
   Zones : barre de statut, liste des événements, horaires d'accueil.
   À charger dans le <head> pour qu'il n'y ait pas de flash. */

/* Le squelette est dans le HTML envoyé par le serveur (visible dès le premier affichage).
   Légère temporisation à l'apparition : pas de clignotement si les données sont instantanées. */
.gl-sk-block { animation: gl-sk-appear .2s ease .12s both; }
@keyframes gl-sk-appear { from { opacity: 0; } to { opacity: 1; } }

/* Barre de statut du hero : css/live.css la masque tant qu'elle n'est pas .is-live.
   Pendant le chargement (avant la première réponse de l'API), on l'affiche avec son squelette. */
html:not(.gdf-live-settled) .status-bar-inline:not(.is-live) {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    /* La barre (fond sombre) et son squelette apparaissent ENSEMBLE, en fondu : pas de rectangle noir vide */
    animation: gl-sk-appear .25s ease both;
}
.gl-sk-block[data-zone="status"] { animation: none; }
html:not(.gdf-live-settled) .status-bar-inline:not(.is-live) .status-grid,
html:not(.gdf-live-settled) .status-bar-inline:not(.is-live) .status-disclaimer {
    display: none;
}

/* Fin du chargement : on retire les squelettes liés à l'API de statut (barre et horaires).
   Échec ou pas de réponse : on n'affiche rien plutôt qu'une information fausse. */
.status-bar-inline.is-live .gl-sk-block,
html.gdf-live-settled .gl-sk-block[data-zone="status"],
html.gdf-live-settled .gl-sk-block[data-zone="hours"] { display: none !important; }

.gl-sk-block {
  box-sizing: border-box; width: 100%;
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  font-family: inherit; color: var(--gl-fg);
}
.gl-sk-block[data-tone="dark"]  { --gl-fg: rgba(255,255,255,.88); --gl-b: rgba(255,255,255,.12); --gl-s: rgba(255,255,255,.28); }
.gl-sk-block[data-tone="light"] { --gl-fg: rgba(60,45,10,.8);     --gl-b: rgba(0,0,0,.09);       --gl-s: rgba(0,0,0,.18); }

/* Formes qui scintillent */
.gl-sk {
  display: block; flex: none; border-radius: 6px;
  background: linear-gradient(100deg, var(--gl-b) 30%, var(--gl-s) 50%, var(--gl-b) 70%);
  background-size: 300% 100%;
  animation: gl-sk-shimmer 1.5s linear infinite;
}
.gl-sk.round { border-radius: 50%; }

/* « Chargement en cours » avec rond qui tourne et points animés */
.gl-sk-label {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.gl-sk-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: gl-sk-rotate .8s linear infinite; opacity: .85;
}
.gl-sk-dots::after {
  content: ""; display: inline-block; width: 1.1em; text-align: left;
  animation: gl-sk-dots 1.4s steps(4, end) infinite;
}

.gl-sk-row  { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gl-sk-rows { display: flex; flex-direction: column; gap: 18px; }
.gl-sk-cols { display: none; }
.gl-sk-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.gl-sk-col  { display: flex; flex-direction: column; gap: 7px; }
.gl-sk-card {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  height: 92px; box-sizing: border-box; padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,.07);
}

/* Barre de statut : 5 colonnes sur bureau (même point de rupture que le thème) */
@media (min-width: 969px) {
  .gl-sk-block.gl-sk-status { padding: 2px 0; gap: 14px; }
  .gl-sk-block.gl-sk-status .gl-sk-rows { display: none; }
  .gl-sk-block.gl-sk-status .gl-sk-cols {
    display: grid; grid-template-columns: repeat(5, 1fr);
    max-width: 1200px; margin: 0 auto; width: 100%;
  }
}

@keyframes gl-sk-shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes gl-sk-rotate  { to { transform: rotate(360deg); } }
@keyframes gl-sk-dots    { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

@media (prefers-reduced-motion: reduce) {
  .gl-sk, .gl-sk-spin, .gl-sk-dots::after { animation: none; }
  .gl-sk-dots::after { content: "..."; }
}

.status-bar-inline {
  --gdf-status-content-h: 69px; /* >= 1241px */
}

@media (max-width: 1240px) { .status-bar-inline { --gdf-status-content-h: 87px; } }
@media (max-width: 1130px) { .status-bar-inline { --gdf-status-content-h: 106px; } }
@media (max-width: 1050px) { .status-bar-inline { --gdf-status-content-h: 118px; } }
@media (max-width: 968px)  { .status-bar-inline { --gdf-status-content-h: 283px; } }

.status-bar-inline:not(.is-live) .gl-sk-status {
  position: relative;
  padding: 0;
  gap: 0;
  height: var(--gdf-status-content-h);
  overflow: hidden;
  justify-content: center;
}

.status-bar-inline:not(.is-live) .gl-sk-status .gl-sk-cols,
.status-bar-inline:not(.is-live) .gl-sk-status .gl-sk-rows {
  opacity: 0.6;
}

.status-bar-inline:not(.is-live) .gl-sk-status .gl-sk-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 220px 40px at center, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}