/* Messages, totaux, pastilles de statut, listes, lien personnel, chargement. */
.alert { position: relative; border-radius: var(--radius-md); padding: 14px 16px 14px 52px; margin: 14px 0; background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.alert::before { content: "i"; position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 .8125rem/1 var(--font-body); background: var(--accent); color: var(--accent-ink); }
.alert.error { background: var(--danger-soft); } .alert.error::before { content: "×"; background: var(--danger); color: var(--danger-ink); }
.alert.ok { background: var(--ok-soft); } .alert.ok::before { content: "✓"; background: var(--ok); color: var(--surface); }
.alert.warn { background: var(--warn-soft); } .alert.warn::before { content: "!"; background: var(--warn); color: var(--warn-ink); }
/* Club fermé (hors saison) : réouverture, puis l'assistant et le contact par texto, chacun sur sa ligne. */
.closed-note > p { margin: 0 0 6px; }
.closed-note > p:first-child { font-weight: 700; }
.closed-note .linkbtn { min-height: 44px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.3rem var(--font-head); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: var(--radius-pill); padding: 2px 10px; font-size: .8125rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.badge.info { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge.cancel { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.badge.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: var(--space-3) var(--space-4); }
.linkbox { word-break: break-all; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; font-size: .85rem; }
.skeleton { height: 180px; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
/* Catalogue en cours de chargement : la place de la liste est réservée (sinon le pied de page, remonté sous l'écran puis repoussé, décale toute la page). Disparaît tout seul quand la liste remplace le squelette. */
#catalogue:has(> .skeleton) { min-height: 140svh; }
/* Pages à application unique (réserver, reprogrammer…) : la hauteur est réservée pendant le chargement, sinon le contenu arrivé pousse le pied de page et décale toute la page (audit UX P1-4). Disparaît quand le squelette est remplacé. */
#app:has(> .skeleton) { min-height: 100svh; }
.cancel-form { margin-top: 12px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); }
