/* ═════════════════════════════════════════════════════════════════════════
   USB COMMON CSS v2 — design system partagé USBouloire Basket
   ─────────────────────────────────────────────────────────────────────────
   Utilisé par : index.html, agenda.html, contact.html, app.html,
                 admin.html, boutique.html.

   Architecture en 5 couches :
     1. TOKENS       : variables CSS unifiées (couleurs, spacing, radius…)
     2. RESET & BASE : reset minimal + styles globaux html/body/inputs
     3. UTILITIES    : helpers (sr-only, no-scroll, spinner, anim)
     4. COMPONENTS   : nav, modal, btn, form, toast, card, badge, skeleton,
                       drawer, login-card
     5. COMPAT       : aliases pour les anciens noms (--vert) pour migration
                       progressive sans casse.

   Convention de nommage :
     • Composants existants conservés tels quels (.nav-*, .modal-*, .toast,
       .form-*, .btn-*) pour minimiser le diff dans les pages.
     • Nouveaux composants génériques préfixés .usb-* pour éviter les
       collisions futures.
     • Variables = système admin/boutique (--vert-club, --vert-bg, --gris-bord)
       qui sont plus explicites que les anciennes courtes (--vert).
   ═════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   1 — TOKENS
   ─────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Couleurs club (vert dominant) ───────────────────────────────── */
  --vert-club:    #1a4a2e;   /* vert principal — fond nav, titres, accent */
  --vert-clair:   #2d6b47;   /* vert intermédiaire — hover, accents secondaires */
  --vert-mid:     #2d6e46;   /* alias léger d'index ≈ --vert-clair */
  --vert-vif:     #4caf50;   /* vert vif — active state, success bright */
  --vert-fonce:   #143620;   /* vert foncé — toast bg, états appuyés */
  --vert-bg:      #eaf3de;   /* vert très clair — fond infos positives */
  --vert-nav-sub: #a8d5b0;   /* vert pâle — sous-titre logo nav */

  /* ── Neutres ─────────────────────────────────────────────────────── */
  --blanc:           #f5f5f0;   /* blanc cassé — fond principal index public */
  --gris-bg:         #f4f4ec;   /* gris très clair — fond admin/boutique/app */
  --gris-bord-clair: #ebeae3;
  --gris-bord:       #d3d1c7;
  --gris:            #8a9490;   /* gris neutre — texte secondaire */
  --gris-fonce:      #444441;   /* gris foncé — texte label */
  --noir:            #1a1a1a;   /* "noir" — texte principal */
  --noir-deep:       #0d1f14;   /* noir teinté vert — fond overlay */

  /* ── Couleurs sémantiques ────────────────────────────────────────── */
  --rouge:        #a32d2d;   --rouge-bg:   #fcebeb;   --rouge-clair: #f09595;
  --orange:       #e65100;   --orange-clair: #ff8a3d;
  --ambre:        #ba7517;   --ambre-bg:   #faeeda;   --ambre-fonce: #854f0b;
  --violet:       #534ab7;   --violet-bg:  #eeedfe;   --violet-fonce: #3c3489;
  --bleu:         #185fa5;   --bleu-bg:    #e6f1fb;   --bleu-fonce:  #0c447c;
  --jaune:        #ffc107;

  /* ── Spacing scale (base 4px) ────────────────────────────────────── */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;  --sp-12: 48px;

  /* ── Radius ──────────────────────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-btn:  10px;
  --radius-card: 14px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* ── Shadows (Material You discret) ──────────────────────────────── */
  --shadow-card:    0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.06);
  --shadow-hover:   0 4px 12px rgba(0,0,0,0.08), 0 12px 28px rgba(0,0,0,0.10);
  --shadow-modal:   0 24px 64px rgba(13,31,20,0.30);
  --shadow-toast:   0 4px 14px rgba(0,0,0,0.25);

  /* ── Typographie ─────────────────────────────────────────────────── */
  --font-sans:    'DM Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bebas Neue', 'DM Sans', sans-serif;
  --font-system:  -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* ── Layout ──────────────────────────────────────────────────────── */
  --nav-height: 60px;
  --z-nav:        100;
  --z-overlay-bg:  95;
  --z-modal:      200;
  --z-modal-stack: 210;
  --z-toast:      999;

  /* ── Transitions ─────────────────────────────────────────────────── */
  --t-fast:  0.15s;
  --t-mid:   0.25s;
  --t-slow:  0.40s;
  --ease:    cubic-bezier(.2, .7, .3, 1);
}


/* ═══════════════════════════════════════════════════════════════════════
   2 — RESET & BASE
   ─────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--noir);
  line-height: 1.45;
  overflow-x: hidden;
  /* Le fond reste piloté par chaque page (--blanc pour index public,
     --gris-bg pour admin/app/boutique) via un override local. */
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Focus visible standardisé partout */
:focus-visible {
  outline: 2px solid var(--vert-club);
  outline-offset: 2px;
}


/* ═══════════════════════════════════════════════════════════════════════
   3 — UTILITIES
   ─────────────────────────────────────────────────────────────────────── */

/* Visually hidden (a11y) — pour les labels invisibles, ARIA, etc. */
.usb-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Scroll lock body quand modale/drawer ouvert */
body.usb-no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Spinner générique — couleur via `color` du parent */
.usb-spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(0,0,0,0.10);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: usb-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes usb-spin { to { transform: rotate(360deg); } }

/* Animations d'entrée — réutilisables sur n'importe quel élément */
@keyframes usb-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes usb-slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.usb-anim-up    { animation: usb-fade-up 0.5s ease both; }
.usb-anim-up-2  { animation: usb-fade-up 0.5s 0.1s ease both; }
.usb-anim-up-3  { animation: usb-fade-up 0.5s 0.2s ease both; }
.usb-anim-up-4  { animation: usb-fade-up 0.5s 0.3s ease both; }


/* ═══════════════════════════════════════════════════════════════════════
   4 — COMPONENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 4.1 — NAV ───────────────────────────────────────────────────────────
   Barre de navigation fixe en haut. Partagée index/agenda/contact/app/boutique.
   Admin n'a pas de nav (page sous login wall).
   ─────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  /* Hauteur = barre + safe-area top (Dynamic Island sur iPhone récents) */
  height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 32px; padding-right: 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--vert-club);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--t-mid);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.30); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
}
.nav-logo-ball {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}
.nav-logo-ball img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 1.5px;
  color: #fff; line-height: 1;
}
.nav-logo-sub {
  font-size: 9px; letter-spacing: 2px;
  color: var(--vert-nav-sub);
  text-transform: uppercase; line-height: 1;
}

/* Dribble : 3 tours qui ralentissent au clic sur le ballon */
@keyframes ball-spin { from { transform: rotate(0); } to { transform: rotate(1080deg); } }
.nav-logo-ball.spinning { animation: ball-spin .65s var(--ease) 1; }

/* Liste de liens (desktop) */
.nav-list-wrap { display: contents; }
.nav-links {
  display: flex; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-links a.active::after {
  content: ''; display: block;
  width: 16px; height: 2px;
  background: var(--vert-vif);
  margin: 3px auto 0;
  border-radius: 2px;
}

/* Bouton Facebook (lien externe en nav) */
.nav-fb {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background var(--t-fast);
}
.nav-fb:hover { background: rgba(255,255,255,0.18); }
.nav-fb svg { width: 14px; height: 14px; fill: #fff; }

/* Bouton login / déconnexion à droite */
.nav-auth-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: inherit;
}
.nav-auth-btn:hover { background: rgba(255,255,255,0.20); }
.nav-auth-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Burger button (mobile uniquement) */
.nav-burger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--t-mid), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay sombre derrière le menu mobile */
.nav-mobile-overlay {
  display: none; position: fixed;
  inset: calc(var(--nav-height) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: rgba(13,31,20,0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay-bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-mobile-overlay.show { display: block; opacity: 1; }

/* Cartes nav (visibles uniquement en mode mobile) */
.nav-welcome,
.nav-card-icon,
.nav-card-sub,
.nav-card-arrow { display: none; }

/* Welcome panel en haut du menu mobile (utilisateur connecté) */
.nav-welcome-greeting { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }
.nav-welcome-name { font-size: 16px; font-weight: 600; color: #fff; margin-top: 2px; }

/* Burger footer dans menu mobile (lien Facebook, déconnexion…) */
.nav-burger-footer { display: none; }

/* ── Responsive nav (mobile) ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-fb { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    right: 0; bottom: 0;
    width: 300px; max-width: 88vw;
    background: var(--vert-club);
    flex-direction: column;
    gap: 0; padding: 0;
    transform: translateX(100%);
    transition: transform var(--t-mid) ease;
    z-index: 96;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
  }
  .nav-links a.active::after { display: none; }
  .nav-welcome { display: block; padding: 20px; background: rgba(0,0,0,0.15); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-burger-footer { display: block; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
}


/* ── 4.2 — MODAL ────────────────────────────────────────────────────────
   Système unifié de modales.

   Convention :
     .modal-overlay (fond + flexbox de centrage) > .modal-box (carte)
   Aliases (compat boutique) :
     .modal-bg ≡ .modal-overlay
     .modal    ≡ .modal-box
   ─────────────────────────────────────────────────────────────────────── */
.modal-overlay,
.modal-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,31,20,0.70);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.show,
.modal-bg.show { display: flex; }

/* Empilement (modale au-dessus d'une autre) */
.modal-overlay.modal-stacked,
.modal-bg.modal-stacked { z-index: var(--z-modal-stack); }

.modal-box,
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: var(--shadow-modal);
  animation: usb-fade-up var(--t-mid) ease both;
}

/* Header / Body / Footer interne aux modales */
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gris-bord-clair);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--vert-club);
  letter-spacing: 1px;
  margin: 0;
}
.modal-body { /* hook libre, pages gèrent leur contenu */ }
.modal-foot {
  display: flex; gap: var(--sp-3); justify-content: flex-end;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--gris-bord-clair);
}
.modal-close {
  background: none; border: none;
  font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--gris);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--gris-bord-clair); color: var(--noir); }

.modal-actions {
  display: flex; gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Responsive : padding réduit en mobile */
@media (max-width: 600px) {
  .modal-overlay,
  .modal-bg { padding: 8px; }
  .modal-box,
  .modal {
    padding: 18px 16px;
    border-radius: var(--radius-card);
    max-height: 94vh;
  }
}


/* ── 4.3 — FORM ─────────────────────────────────────────────────────────
   Champs, labels, groupes. Mutualisé index + admin + boutique checkout.
   ─────────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-row { display: flex; gap: var(--sp-3); }
.form-row .form-group { flex: 1; }

.form-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--gris-fonce);
  margin-bottom: var(--sp-1);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gris-bord);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--noir);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--vert-club);
  box-shadow: 0 0 0 3px rgba(26, 74, 46, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gris); }

.form-textarea { min-height: 80px; resize: vertical; }

.form-checkbox {
  display: flex; align-items: center; gap: var(--sp-2);
}
.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--vert-club);
}

.form-help {
  font-size: 12px; color: var(--gris);
  margin-top: var(--sp-1);
}
.form-error {
  font-size: 12px; color: var(--rouge);
  margin-top: var(--sp-1);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(163, 45, 45, 0.12);
}


/* ── 4.4 — BUTTONS ──────────────────────────────────────────────────────
   3 variantes : primary (vert plein), secondary (gris bordé), danger.
   + variantes utilitaires : .btn-block, .btn-sm, .btn-icon
   ─────────────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
  opacity: 0.55; cursor: not-allowed;
}

.btn-primary {
  background: var(--vert-club);
  color: #fff;
}
.btn-primary:not(:disabled):hover {
  background: var(--vert-clair);
  box-shadow: 0 4px 12px rgba(26, 74, 46, 0.25);
}
.btn-primary:not(:disabled):active { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  color: var(--vert-club);
  border-color: var(--gris-bord);
}
.btn-secondary:not(:disabled):hover {
  background: var(--gris-bg);
  border-color: var(--vert-club);
}

.btn-danger {
  background: var(--rouge);
  color: #fff;
}
.btn-danger:not(:disabled):hover {
  background: #8b2424;
  box-shadow: 0 4px 12px rgba(163, 45, 45, 0.25);
}

/* Variantes utilitaires */
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon {
  background: transparent; border: none;
  padding: 6px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--gris-fonce);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-icon:hover { background: var(--gris-bord-clair); color: var(--noir); }


/* ── 4.5 — TOAST ────────────────────────────────────────────────────────
   Notification temporaire en bas d'écran.
   ─────────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vert-fonce);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-toast);
  transition: transform var(--t-mid) ease, opacity var(--t-mid);
  white-space: nowrap;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Variantes sémantiques */
.toast.toast-error   { background: var(--rouge); }
.toast.toast-warning { background: var(--ambre-fonce); }
.toast.toast-success { background: var(--vert-club); }

/* Stack de plusieurs toasts */
.toast-stack {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: var(--sp-2);
  z-index: var(--z-toast);
  pointer-events: none;
}
.toast-stack .toast {
  position: relative; bottom: auto; left: auto; transform: none;
  pointer-events: auto;
}


/* ── 4.6 — CARD ─────────────────────────────────────────────────────────
   Carte générique Material You : fond blanc, radius 14px, shadow douce.
   ─────────────────────────────────────────────────────────────────────── */
.usb-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gris-bord-clair);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.usb-card.usb-card-hover:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.usb-card-title {
  font-family: var(--font-display);
  font-size: 20px; color: var(--vert-club);
  letter-spacing: 1px;
  margin: 0 0 var(--sp-3) 0;
}
.usb-card-sub {
  font-size: 13px; color: var(--gris);
  margin-bottom: var(--sp-4);
}


/* ── 4.7 — BADGE & PILL ─────────────────────────────────────────────────
   Petites étiquettes colorées pour statuts (validé, en attente, refusé…).
   ─────────────────────────────────────────────────────────────────────── */
.badge,
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-pill);
  background: var(--gris-bord-clair);
  color: var(--gris-fonce);
  white-space: nowrap;
}
.badge-success, .pill-success { background: var(--vert-bg);   color: var(--vert-club); }
.badge-warning, .pill-warning { background: var(--ambre-bg);  color: var(--ambre-fonce); }
.badge-error,   .pill-error   { background: var(--rouge-bg);  color: var(--rouge); }
.badge-info,    .pill-info    { background: var(--bleu-bg);   color: var(--bleu-fonce); }
.badge-violet,  .pill-violet  { background: var(--violet-bg); color: var(--violet-fonce); }


/* ── 4.8 — SKELETON ─────────────────────────────────────────────────────
   Placeholders pulsés pendant le chargement (carte, ligne, photo).
   ─────────────────────────────────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg,
    var(--gris-bord-clair) 0%,
    var(--gris-bord) 50%,
    var(--gris-bord-clair) 100%);
  background-size: 200% 100%;
  animation: usb-skel 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes usb-skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-line  { height: 14px; margin-bottom: 8px; }
.skel-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-card); }
.skel-card  { height: 120px; border-radius: var(--radius-card); }


/* ── 4.9 — LOGIN CARD ───────────────────────────────────────────────────
   Carte de login centrée (admin, et écran "verrouillé" éventuel).
   ─────────────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px 36px;
  width: 100%; max-width: 360px;
  border: 1px solid var(--gris-bord);
  box-shadow: var(--shadow-card);
}
.login-logo { text-align: center; margin-bottom: var(--sp-6); }
.login-ball { display: flex; justify-content: center; line-height: 1; margin-bottom: var(--sp-3); }
.login-title {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 1px;
  color: var(--vert-club);
}
.login-sub { font-size: 13px; color: var(--gris); margin-top: var(--sp-1); }
.login-error {
  background: var(--rouge-bg); color: var(--rouge);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: var(--sp-3);
  border: 1px solid var(--rouge-clair);
}


/* ── 4.10 — DRAWER (panneau latéral coulissant) ─────────────────────────
   Utilisé pour le panier boutique et le drawer notifs app.html.
   ─────────────────────────────────────────────────────────────────────── */
.drawer-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(13,31,20,0.55);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.drawer-bg.show { display: block; opacity: 1; }

.drawer {
  position: fixed; top: 0; bottom: 0; right: 0;
  width: 380px; max-width: 92vw;
  background: #fff;
  z-index: calc(var(--z-modal) + 1);
  transform: translateX(100%);
  transition: transform var(--t-mid) ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--gris-bord-clair);
}
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--gris-bord-clair);
  background: var(--gris-bg);
}


/* ── 4.11 — STATUT PILL (boutique commandes) ────────────────────────────
   Lozenge spécifique boutique pour statut commande.
   ─────────────────────────────────────────────────────────────────────── */
.statut-pill {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 4px 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════════════
   5 — COMPAT
   ─────────────────────────────────────────────────────────────────────────
   Aliases pour le code historique d'index.html qui utilise des variables
   plus courtes. Permet une migration progressive sans tout patcher.
   À retirer progressivement à mesure qu'on nettoie le code des pages.
   ─────────────────────────────────────────────────────────────────────── */
:root {
  --vert: var(--vert-club);   /* index.html : `var(--vert)` partout */
}
