/* (2026-11-13) Simplification visuelle — lots A et B. Affichage seulement ; retirer le lien dans layout.php pour revenir en arrière. */
@media screen {
  body { font-size: 17px; line-height: 1.6; }
  .muted, .sous { color: #4A4750; }
  .btn { font-size: 1rem; min-height: 44px; padding: 10px 18px; }
  .btn.small { font-size: .92rem; min-height: 38px; padding: 7px 14px; }
  input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], input[type=tel], select, textarea { font-size: 1rem; }
  input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], input[type=tel], select { min-height: 42px; }
  label { font-size: .98rem; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #243B6B; outline-offset: 2px; }
  .wd-intro { margin: 10px 0 14px; padding: 11px 16px; background: #FFF8E1; border: 1.5px solid #E8D48A; border-radius: 10px; color: #3B3320; font-size: 1.02rem; font-weight: 500; }
  .wd-next-wrap { margin: 28px 0 6px; text-align: center; }
  .wd-next { font-size: 1.12rem; min-height: 54px; padding: 14px 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(36,59,107,.25); white-space: normal; }
  .wd-help { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: #243B6B; color: #fff; border-radius: 999px; font-weight: 700; font-size: 1.02rem; text-decoration: none; box-shadow: 0 3px 12px rgba(0,0,0,.3); }
  .wd-help:hover { background: #1A2C50; color: #fff; }
}
@media print { .wd-intro, .wd-next-wrap, .wd-help { display: none !important; } }

@media screen {
  .wd-grand body { font-size: 20px; }
  .wd-grand .btn { font-size: 1.1rem; min-height: 50px; }
  .wd-grand .btn.small { font-size: 1rem; min-height: 44px; }
  .wd-grand .wd-intro { font-size: 1.15rem; }
  .wd-grand input[type=text], .wd-grand input[type=email], .wd-grand input[type=date], .wd-grand input[type=number], .wd-grand input[type=password], .wd-grand input[type=tel], .wd-grand select, .wd-grand textarea { font-size: 1.1rem; }
  .wd-aplus { position: fixed; left: 16px; bottom: 74px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #243B6B; background: #fff; color: #243B6B; font-weight: 800; font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.25); }
  .wd-aplus:hover { background: #E8ECF5; }
  .wd-tour { position: fixed; inset: 0; z-index: 2000; background: rgba(20,22,30,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .wd-tour-card { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; padding: 26px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
  .wd-tour-n { font-size: .9rem; color: #6B6760; font-weight: 700; }
  .wd-tour-t { font-family: var(--font-display, Georgia, serif); font-size: 1.7rem; font-weight: 700; margin: 4px 0 10px; color: #16161A; }
  .wd-tour-b { font-size: 1.12rem; line-height: 1.6; margin: 0 0 20px; color: #2A2830; }
  .wd-tour-row { display: flex; justify-content: space-between; gap: 12px; }
}
@media print { .wd-aplus, .wd-tour { display: none !important; } }

/* (2026-11-13) Lot C+ — tableau de bord, onglets et tableaux plus lisibles. Affichage seulement. */
@media screen {
  .pil-list .pil-row { grid-template-columns: 230px 1fr auto; padding: 16px 20px; border-left-width: 8px; }
  .pil-list .pil-row:has(.pil-st.done) { border-left-color: #2E9E5B; }
  .pil-list .pil-row:has(.pil-st.cours) { border-left-color: #E08A00; }
  .pil-list .pil-row:has(.pil-st.faire) { border-left-color: #C62828; }
  .pil-list .pil-row:has(.pil-st.venir) { border-left-color: #B9B2A4; }
  .pil-list .pil-name { font-size: 1.4rem; }
  .pil-list .pil-name .pil-num { width: 42px; height: 42px; border-radius: 50%; background: #C62828; color: #fff; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; }
  .pil-list .pil-st { font-size: .98rem; padding: 4px 13px; font-weight: 800; }
  .pil-list .pil-mid .l1 { font-size: 1.06rem; }
  .pil-list .pil-tabs a { font-size: 1rem; padding: 7px 14px; }
  .pil-path .pil-pas { font-size: 1.02rem; padding: 9px 15px; }
  .pil-next .btn { font-size: 1.12rem; padding: 13px 28px; }
  .etp-tabs a { font-size: 1.02rem; padding: 9px 15px; }
  .etp-tabs a.on { box-shadow: 0 2px 6px rgba(36,59,107,.3); }
  main table tbody tr:nth-child(even) { background: #FAF8F3; }
  main table tbody tr:hover { background: #EEF2FA; }
  h1 { letter-spacing: -.01em; }
}


/* (2026-11-29) Lot D — confort de lecture. Affichage seulement, aucun contenu retiré.
   Marche arrière : supprimer ce bloc jusqu'à la fin du fichier.
   Chaque règle répond à une mesure prise sur une page en service, pas à une impression. */
@media screen {

  /* 1. Largeur de lecture. Mesuré le 29 nov. sur la facture : 114 caractères par ligne
     dans une zone de 1040 px (58ch donne environ 75 caractères). Au-delà de 75, l'œil perd le début de la ligne
     suivante en revenant à la marge. Les tableaux et le tableau de bord ne sont pas visés. */
  main p,
  main .card > ul,
  main .card > ol { max-width: 58ch; }

  /* Sauf là où une largeur bornée gênerait : les cellules de tableau, les barres de
     boutons, et tout ce qui est centré, qui resterait sinon collé à gauche de sa boîte. */
  main table p,
  main .actions p,
  main .wd-next-wrap p,
  main .tcenter p,
  main [style*="text-align:center"] p,
  main [style*="text-align: center"] p { max-width: none; }

  /* 2. Le petit texte explicatif en prose mesurait 13,6 px, trop petit pour un lecteur
     de cinquante ans et plus. Les mentions à l'intérieur des tableaux gardent leur taille,
     pour ne pas gonfler les longues listes. */
  main p.muted { font-size: .95rem; }

  /* 3. Chiffres à largeur fixe, pour que les colonnes de nombres s'alignent d'elles-mêmes,
     et un nom de club très long ne déforme plus sa colonne. */
  main table td,
  main table th { font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
}
