/* ═══ PARAMÈTRES › APPARENCE, EN PLUS COMPACT (13.10.2026) — js/206 ═══════════════════════════════════
   « Ambiance et Mode se chevauchent… compacte la page… les clubs de foot n'ont pas besoin de prendre
   autant de place. » Une carte Thème en tête (ambiances en petites vignettes, clubs en pastilles,
   accents en ronds), puis les autres réglages sur deux colonnes quand l'écran le permet. */
.apc-page { columns: 2 460px; column-gap: 16px; }
.apc-page > * { break-inside: avoid; margin: 0 0 16px !important; }
.apc-page > .apc-theme { column-span: all; }
.apc-page .apx-section { padding: 14px 16px; }
.apc-page .apx-section .dbx-carte-tete { margin-bottom: 8px; }
.apc-page .apx-cartes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.apc-page .apx-carte { padding: 8px 10px; }
.apc-page .apx-carte small { font-size: 11px; line-height: 1.3; }
.apc-page .apx-note { font-size: 11.5px; margin-top: 8px; }

.apc-ligne { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--border); }
.apc-ligne:first-of-type { border-top: 0; padding-top: 0; }
.apc-libelle { font-size: 12px; font-weight: 600; color: var(--text-muted); padding-top: 6px; }
.apc-ambiances { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.apc-groupe small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.apc-vignettes { display: flex; flex-wrap: wrap; gap: 6px; }

.apc-amb { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 86px; padding: 4px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.apc-amb-apercu { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 38px; padding: 0 7px; border-radius: 7px; overflow: hidden; }
.apc-amb-apercu i { display: block; height: 4px; border-radius: 2px; }
.apc-amb-apercu .apc-amb-mini { position: absolute; right: 6px; bottom: 6px; width: 16px; height: 12px; border-radius: 3px; }
.apc-amb-nom { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
/* Les onglets des Paramètres (js/163) défilent dans leur cadre sur téléphone au lieu d'être coupés. */
.prm-feuilles { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }

.apc-clubs { display: flex; flex-wrap: wrap; gap: 6px; }
.apc-club { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; min-height: 30px; }
.apc-club-ecusson { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.apc-club-ecusson img { width: 20px; height: 20px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; }

.apc-accents { display: flex; flex-wrap: wrap; gap: 6px; }
.apc-accent { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; min-height: 30px; }
.apc-accent i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.apc-amb.actif, .apc-club.actif, .apc-accent.actif { border-color: var(--accent, #00CFFF); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #00CFFF) 35%, transparent); }
.apc-amb:focus-visible, .apc-club:focus-visible, .apc-accent:focus-visible { outline: 2px solid var(--accent, #00CFFF); outline-offset: 2px; }

@media (max-width: 640px) {
  .apc-ligne { grid-template-columns: 1fr; gap: 4px; }
  .apc-libelle { padding-top: 0; }
  .apc-amb { width: calc(25% - 5px); min-width: 72px; }
}
