/* Niveau d'affichage (src/affichage.php) : la ligne « Affichage : Simple · Normal · Complet » et le tableau d'un membre.
   Les pages de sujets ont leurs règles dans interets.css. */

/* ---------- Ligne de choix (bas de page) ---------- */
.aff-choix { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; margin: 0; font-size: 13px; color: var(--texte-doux); }
.aff-choix-nom { margin-right: 4px; }
.aff-choix-btn {
  border: 0; background: none; padding: 4px 4px; font: inherit; color: var(--texte-doux); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--bord); text-underline-offset: 3px;
}
.aff-choix-btn:hover { color: var(--accent); text-decoration-color: currentColor; }
.aff-choix-btn[aria-pressed="true"] { color: var(--texte); font-weight: 700; text-decoration: none; cursor: default; }
.aff-choix-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media print { .aff-choix { display: none; } }

/* ---------- Tableau d'un membre ---------- */
.aff-pied { margin: 36px 0 8px; text-align: center; }
.aff-pied-lien { margin: 10px 0 0; font-size: 12px; }
.aff-pied-lien a { color: inherit; opacity: .75; }

/* Simple : ses boîtes et ses liens (avec leur « i », qui informe et ne modifie rien). Les outils d'édition n'apparaissent
   qu'avec « Modifier mes boîtes » (menu). */
body.aff-simple .entete .recherche,
body.aff-simple .incontournables,
body.aff-simple .tabbar { display: none !important; }
body.aff-simple:not(.aff-edition) .box-outils,
body.aff-simple:not(.aff-edition) .lien-outils,
body.aff-simple:not(.aff-edition) .box-poignee,
body.aff-simple:not(.aff-edition) .box-ajout,
body.aff-simple:not(.aff-edition) .js-page-ajout,
body.aff-simple.une-page:not(.aff-edition) .onglet.js-page { display: none !important; }
body.aff-simple.aff-edition .box-outils,
body.aff-simple.aff-edition .lien-outils { display: inline-flex; }
body.aff-simple.aff-edition .box-poignee { opacity: .5; }
body.aff-simple.aff-edition .box-ajout { opacity: .75; }
body.aff-simple.aff-edition #app { padding-bottom: 90px; }
.aff-edition-barre {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45;
  padding: 8px; border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.aff-edition-barre[hidden] { display: none; }
.aff-edition-barre .bouton { min-height: 42px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) {
  body.aff-simple #app { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  body.aff-simple.aff-edition #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.aff-simple .menu-liste { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body.aff-simple .entete-droite { order: 4; }
  body.aff-simple .menu-bouton { font-size: 22px; padding: 6px 10px; }
}

/* Complet : tous les outils visibles d'emblée, sans attendre le survol. */
body.aff-complet .box-outils,
body.aff-complet .lien-outils { display: inline-flex; }
body.aff-complet .lien-outils { opacity: .5; }
body.aff-complet .lien:hover .lien-outils, body.aff-complet .lien:focus-within .lien-outils { opacity: 1; }
body.aff-complet .box-poignee { opacity: .5; }
body.aff-complet .box-ajout { opacity: .6; }

/* ---------- Page du compte ---------- */
.aff-compte-intro { margin: 0 0 12px; color: var(--texte-doux); font-size: 14px; line-height: 1.5; }
.compte-carte label.aff-compte-choix { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--texte); font-size: 14px; cursor: pointer; }
.aff-compte-choix input { margin: 3px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.aff-compte-choix span { display: flex; flex-direction: column; gap: 2px; }
.aff-compte-choix small { color: var(--texte-doux); font-size: 13px; }
