/* Coque de l'application (espace club et super administration) */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { background: var(--green-900); color: #CFE3D8; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 40; }
.sidebar-brand { height: var(--topbar); display: flex; align-items: center; gap: .65rem; padding: 0 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.sidebar-brand img { width: 38px; height: 38px; border-radius: 9px; background: #fff; padding: 2px; }
.sidebar-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.sidebar-brand strong em { font-style: normal; color: var(--orange-600); }
.sidebar-nav { padding: .75rem .6rem 1rem; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(207,227,216,.55); padding: .9rem .7rem .35rem; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: #CFE3D8; text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; }
.nav-link .icon { width: 19px; height: 19px; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.is-active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.nav-link.is-active::before { content: ""; position: absolute; left: -.6rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange-600); }
.nav-link .soon { margin-left: auto; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,121,0,.16); color: var(--orange-400); padding: .1rem .4rem; border-radius: 5px; font-weight: 700; }
.nav-link .count { margin-left: auto; background: var(--orange-600); color: #fff; font-size: .7rem; padding: 0 .4rem; border-radius: 99px; font-weight: 700; min-width: 20px; text-align: center; }
.sidebar-foot { padding: .8rem 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: rgba(207,227,216,.7); }
.sidebar-foot strong { color: #fff; font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar); background: #fff; border-bottom: 1px solid var(--grey-200); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 30; }
.topbar-club { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.topbar-club img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; border: 1px solid var(--grey-200); background: #fff; }
.topbar-club .club-name { font: 750 .98rem var(--font-head); color: var(--green-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.topbar-club .season { font-size: .74rem; color: var(--text-2); }
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.topbar-search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; }
.topbar-search input { width: 100%; height: 40px; border: 1px solid var(--grey-200); background: var(--grey-50); border-radius: 10px; padding: 0 .8rem 0 2.3rem; font: .9rem var(--font-body); }
.topbar-search input:focus { outline: none; border-color: var(--green-700); background: #fff; box-shadow: 0 0 0 3px rgba(8,127,70,.12); }
.topbar-actions { display: flex; align-items: center; gap: .25rem; }
.bell-count { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--orange-600); color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .25rem .4rem; border-radius: 10px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--grey-50); }
.user-menu .who { line-height: 1.15; text-align: left; }
.user-menu .who strong { display: block; font-size: .86rem; }
.user-menu .who span { font-size: .74rem; color: var(--text-2); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 250px; background: #fff; border: 1px solid var(--grey-200); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; padding: .55rem .65rem; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 .88rem var(--font-body); background: none; border: 0; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--grey-50); }
.menu-pop .sep { height: 1px; background: var(--grey-200); margin: .35rem 0; }
.menu-pop .label { padding: .4rem .65rem .2rem; font-size: .72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }

.content { padding: 1.5rem 1.5rem 3rem; max-width: 1360px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--text-2); font-size: .92rem; }
.breadcrumb { font-size: .82rem; color: var(--text-2); margin-bottom: .35rem; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.banner { display: flex; gap: .75rem; align-items: center; padding: .6rem 1.25rem; font-size: .88rem; flex-wrap: wrap; }
.banner-warning { background: var(--yellow-50); color: var(--yellow-text); border-bottom: 1px solid #F5E2A1; }
.banner-danger { background: var(--red-50); color: #912018; border-bottom: 1px solid #F5C2BC; }
.banner-info { background: var(--orange-50); color: #8A3D00; border-bottom: 1px solid #FFD3A8; }
.banner form { margin: 0; }
.banner .btn { min-height: 30px; }

.menu-toggle { display: none; }
.scrim { display: none; }
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(6,61,42,.4); z-index: 35; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 .75rem; }
  .content { padding: 1rem .9rem 6rem; }
  .user-menu .who { display: none; }
}
@media (max-width: 680px) {
  .topbar-search { display: none; }
  .topbar-club .club-name { max-width: 150px; }
  .topbar-actions { margin-left: auto; }
  .page-head .btn-label-long { display: none; }
}
.mobile-search { display: none; margin-bottom: 1rem; }
@media (max-width: 680px) { .mobile-search { display: block; } }

/* Barre d'action mobile (ajout rapide) */
.fab { display: none; }
@media (max-width: 680px) {
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: 18px; z-index: 20; width: 56px; height: 56px; border-radius: 18px; background: var(--orange-600); color: #fff; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(255,121,0,.35); }
  .fab .icon { width: 26px; height: 26px; }
}

/* Fiche joueur */
.profile-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; padding: 1.25rem; }
.profile-head .who h1 { margin: 0 0 .2rem; font-size: 1.5rem; }
.profile-head .meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.profile-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.jersey { font: 800 1.1rem var(--font-head); color: var(--orange-600); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } }
.filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--grey-200); align-items: end; }
.filters .input, .filters .select { min-height: 40px; font-size: .88rem; }
@media (max-width: 1100px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: span 2; } }
.seg { display: inline-flex; background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: .35rem .75rem; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.seg a.is-active { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.admin-tag { background: var(--orange-600); color: #fff; font-size: .65rem; padding: .1rem .4rem; border-radius: 5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

@media print {
  .sidebar, .topbar, .banner, .fab, .page-head .row, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Logo FootManager : versions claire / sombre (2026-10-27) */
.sidebar-brand img { background: none; padding: 0; border-radius: 0; object-fit: contain; }
