@font-face{font-family:'Outfit';font-weight:400;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-weight:400;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-weight:500;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-weight:500;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-weight:600;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-weight:600;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-weight:700;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-weight:700;font-style:normal;font-display:swap;src:url('vendor/fonts/outfit-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Thème « tapis de jeu » : feutre vert, or, crème — plus de couleur. */
:root, [data-bs-theme=light] {
  --tblr-font-sans-serif: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tblr-body-font-family: var(--tblr-font-sans-serif);
  --tblr-body-bg: #f8f5ee;
  --tblr-primary: #b8902a;
  --tblr-primary-rgb: 184,144,42;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-darken: #9a7721;
  --tblr-primary-lt: rgba(184,144,42,.14);
  --tblr-link-color: #0f5a43;
  --tblr-link-color-rgb: 15,90,67;
  --tblr-link-hover-color: #0a3d2d;
  --felt: #0f3d2e;
  --felt-2: #14513d;
}
body { font-family: var(--tblr-font-sans-serif); }
h1,h2,h3,h4,h5,.page-title,.card-title { font-weight: 600; letter-spacing: -.01em; }

/* Barre de navigation foncée */
.navbar { background: var(--felt); border-bottom: 3px solid var(--tblr-primary);
  --tblr-navbar-color: rgba(255,255,255,.82); --tblr-navbar-hover-color:#f1d27a; --tblr-navbar-active-color:#f1d27a; }
.navbar .navbar-brand, .navbar .nav-link { color: rgba(255,255,255,.88); }
.navbar .navbar-brand { font-weight: 700; letter-spacing: .02em; }
.navbar .navbar-brand i { color: #f1d27a; }
.navbar .nav-link:hover { color: #f1d27a; }
.navbar .btn-outline-secondary { color: #fff; border-color: rgba(255,255,255,.45); }
.navbar .btn-outline-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Cartes plus douces */
.card { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,61,46,.10), 0 4px 14px rgba(15,61,46,.05); }
.card-header { background: transparent; }
.table thead th { color: #6b6a63; font-weight: 600; text-transform: none; font-size: .85rem; }

/* Cartes de module (accueil) */
.module { text-align: center; transition: transform .15s, box-shadow .15s; }
.module:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15,61,46,.16); }
.module .ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display:flex; align-items:center; justify-content:center; font-size: 2rem; }
.ico-green  { background:#dcefe6; color:#0f5a43; }
.ico-gold   { background:#f5ead0; color:#9a7721; }
.ico-blue   { background:#dbe9f7; color:#1d5f9e; }
.ico-red    { background:#f8dcdc; color:#b3292d; }
.module .actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:auto; }
.module .btn { padding-left:1.4rem; padding-right:1.4rem; }

/* Tableau de pointage : bandeau de couleur selon le rang */
.score-card { border-top: 5px solid #cfcbbd; }
.score-card.lead { border-top-color: #2f9e6b; background: #f1faf5; }
.score-card.last { border-top-color: #d9534f; }
.score-card.win  { border-top-color: #e0a919; background: #fff8e1; }

.badge.bg-green-lt { background:#dcefe6!important; color:#0f5a43!important; }
.badge.bg-yellow-lt { background:#f9ecc4!important; color:#8a6a00!important; }
.badge.bg-blue-lt { background:#dbe9f7!important; color:#1d5f9e!important; }
.badge.bg-purple-lt { background:#e8e0f3!important; color:#5b3d99!important; }
.avatar.bg-purple-lt { background:#e8e0f3!important; color:#5b3d99!important; }

/* Page Usagers : pastilles, filtres, tableau */
.pill { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; border:1px solid; font-size:.9rem; background:#fff; }
.pill .dot, .badge .dot { width:8px; height:8px; border-radius:50%; background:currentColor; display:inline-block; }
.badge .dot { margin-right:6px; }
.pill-green { border-color:#2f9e6b; background:#e6f5ed; color:#0f5a43; }
.pill-gold  { border-color:#d3a531; background:#fbf1d6; color:#7a5d0a; }
.fpill { border:1px solid #d9d4c4; background:#fff; border-radius:999px; padding:7px 16px; font-size:.9rem; color:#2b2a26; min-height:40px; }
.fpill:hover { border-color:#b8902a; }
.fpill.on { background:var(--felt); border-color:var(--felt); color:#fff; }
.fpill .cnt { display:inline-block; margin-left:6px; min-width:1.6em; padding:0 .45em; border-radius:999px; background:#0f3d2e; color:#fff; font-size:.78rem; font-weight:600; }
.fpill.on .cnt { background:#f1d27a; color:#3b2e05; }
.table-users thead th { position:sticky; top:0; z-index:1; background:#f3eedf; color:#5b5a52; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; }
.table-users tbody tr:hover { background:#fbf8f0; }
.badge.st { font-weight:500; padding:.45em .8em; border-radius:999px; }
.st-on { background:#dcefe6; color:#0f5a43; } .st-off { background:#ececec; color:#6b6a63; }
.st-lock { background:#f8dcdc; color:#a3262a; } .st-temp { background:#f9ecc4; color:#8a6a00; } .st-ok { background:#dbe9f7; color:#1d5f9e; }
.badge.role-admin { background:#e8e0f3; color:#5b3d99; } .badge.role-createur { background:#f5ead0; color:#7a5d0a; } .badge.role-joueur { background:#e7eef2; color:#3b5566; }
.page-tabs .nav-link.active { color: var(--felt); border-bottom: 3px solid var(--tblr-primary); font-weight:600; }

/* Neuf Équipe + utilitaires (remplacent les styles en ligne) */
.is-hidden { display: none !important; }
.select-narrow { max-width: 260px; }
.timer-big { font-size: 1.8rem; }
.ico-purple { background:#e8e0f3; color:#5b3d99; }
.team-a { --team: #7b57c7; --team-bg: #ece6f8; } .team-b { --team: #2a7bc4; --team-bg: #dcebf8; }
.badge.team-a, .badge.team-b { background: var(--team-bg); color: var(--team); font-weight: 600; }
.team-dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:6px; vertical-align:-1px; background: var(--team); }
.score-card.team-a { border-top-color: var(--team); background: #faf8fd; }
.score-card.team-b { border-top-color: var(--team); background: #f6faff; }
.score-card.team-a.win, .score-card.team-b.win { border-top-color:#e0a919; background:#fff8e1; }
.dealer-now { outline: 2px solid var(--tblr-primary); }
.badge.st-en_cours { background:#dcefe6; color:#0f5a43; } .badge.st-pause { background:#f9ecc4; color:#8a6a00; } .badge.st-termine { background:#dbe9f7; color:#1d5f9e; }
.orow { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--tblr-border-color); border-radius:8px; background:#fff; }
.orow.conflict { border-color:#d9534f; background:#fdeeee; }
.orow .btn { min-width:44px; }
.ord-n { min-width: 34px; }

/* Fenêtre « Démarrer une partie » */
.gt { width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:92px; padding:12px;
      border:2px solid var(--tblr-border-color); border-radius:14px; background:#fff; color:#2b2a26; font-weight:600; transition:all .15s; }
.gt i { font-size:1.8rem; color:var(--felt); }
.gt small { font-weight:400; color:#8a8980; }
.gt:hover:not(:disabled) { border-color:var(--tblr-primary); }
.gt.on { border-color:var(--tblr-primary); background:var(--tblr-primary-lt); }
.gt:disabled { opacity:.5; cursor:not-allowed; }
.team-opt { padding:10px 14px 10px 2.4rem; background:#f3eedf; border-radius:10px; margin-bottom:12px; }
#pw-shown { user-select: all; }

/* Cartes de module alignées : même hauteur pour chaque zone (titre, symboles, texte, boutons) */
.module .mod-sub { height: 2.2rem; font-size: 1.4rem; line-height: 2.2rem; }
.module p { min-height: 3.2em; }
.module .actions { min-height: 44px; align-items: center; }

.suggest-list { max-height: 170px; overflow-y: auto; }

/* ───── Menu de gauche ───── */
:root { --sb-w: 250px; --sb-w-min: 74px; }
html.sb-collapsed { --sb-w: var(--sb-w-min); }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sb-w); background: var(--felt); color: rgba(255,255,255,.88);
  display: flex; flex-direction: column; z-index: 1030; overflow-x: hidden; overflow-y: auto; transition: width .2s ease, transform .2s ease;
  border-right: 3px solid var(--tblr-primary); }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 12px 10px 18px; min-height: 64px; }
.sb-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; letter-spacing: .02em; white-space: nowrap; text-decoration: none; }
.sb-brand i { color: #f1d27a; font-size: 1.7rem; }
.sb-brand:hover, .sb-brand:focus, .sb-brand:active { color: #f1d27a; text-decoration: none; }
.sb-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: rgba(255,255,255,.8); border-radius: 10px; font-size: 1.4rem; flex: 0 0 44px; }
.sb-toggle:hover { background: rgba(255,255,255,.12); color: #f1d27a; }
.sb-start { margin: 6px 14px 12px; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 0; }
.sb-start i { font-size: 1.3rem; }
.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.sb-link { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 14px; border-radius: 10px; color: rgba(255,255,255,.82);
  text-decoration: none; white-space: nowrap; background: transparent; border: 0; width: 100%; text-align: left; font: inherit; border-left: 4px solid transparent; }
.sb-link i { font-size: 1.35rem; flex: 0 0 24px; text-align: center; }
.sb-link:hover { background: rgba(255,255,255,.1); color: #f1d27a; }
.sb-link.active { background: rgba(255,255,255,.14); color: #f1d27a; border-left-color: #f1d27a; font-weight: 600; }
.sb-sep { margin: 14px 14px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); white-space: nowrap; min-height: 18px; }
.sb-foot { padding: 10px 10px 14px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 2px; }
.sb-label { overflow: hidden; text-overflow: ellipsis; }
.app-main { margin-left: var(--sb-w); transition: margin-left .2s ease; }
.topbar, .sb-backdrop { display: none; }
html.sb-collapsed .sb-label { display: none; }
html.sb-collapsed .sb-head { padding: 14px 0 10px; flex-direction: column; gap: 6px; }
html.sb-collapsed .sb-brand { justify-content: center; }
html.sb-collapsed .sb-start { margin: 6px 14px 12px; }
html.sb-collapsed .sb-link { justify-content: center; padding: 0; gap: 0; }
html.sb-collapsed .sb-sep { border-top: 1px solid rgba(255,255,255,.18); margin: 10px 14px; min-height: 0; }
@media (max-width: 767.98px) {
  .sidebar { transform: translateX(-100%); width: 270px; }
  html.sb-open .sidebar { transform: none; }
  html.sb-collapsed .sb-label { display: inline; }
  html.sb-collapsed .sb-head { padding: 14px 12px 10px 18px; flex-direction: row; }
  html.sb-collapsed .sb-link { justify-content: flex-start; padding: 0 14px; gap: 14px; }
  html.sb-collapsed .sb-sep { border: 0; margin: 14px 14px 4px; min-height: 18px; }
  .app-main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 8px; background: var(--felt); padding: 4px 10px; border-bottom: 3px solid var(--tblr-primary); }
  .topbar .sb-brand { font-size: 1.05rem; }
  html.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1020; }
}

/* ───── Mode plein écran des parties : le menu devient un tiroir (bouton en haut) ───── */
body.focus .sidebar { transform: translateX(-100%); width: 270px; }
html.sb-open body.focus .sidebar { transform: none; }
body.focus .app-main { margin-left: 0; }
body.focus .topbar { display: flex; align-items: center; gap: 8px; background: var(--felt); padding: 2px 10px; border-bottom: 3px solid var(--tblr-primary); }
html.sb-open body.focus .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1020; }
html.sb-collapsed body.focus .sb-label { display: inline; }
html.sb-collapsed body.focus .sb-head { padding: 14px 12px 10px 18px; flex-direction: row; }
html.sb-collapsed body.focus .sb-link { justify-content: flex-start; padding: 0 14px; gap: 14px; }
html.sb-collapsed body.focus .sb-sep { border: 0; margin: 14px 14px 4px; min-height: 18px; }
body.focus .container-xl { padding-top: .75rem !important; padding-bottom: .75rem !important; }

/* ───── Page sécurité ───── */
.sec-head { border-left: 4px solid var(--tblr-primary); padding-left: 14px; }
.sec-list { padding-left: 1.1rem; margin: 0; }
.sec-list li { margin-bottom: .55rem; line-height: 1.5; }
.sb-caret { margin-left: auto; font-size: 1rem !important; flex: 0 0 auto !important; }
.sb-menu { min-width: 250px; }
.sb-menu .dropdown-item { min-height: 44px; display: flex; align-items: center; }

/* ───── Historique de partie ───── */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; font-weight: 600; }
.chart-legend .dotc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.chart svg { max-height: 360px; }
#histo .view-btn { min-height: 44px; }
#histo .view-btn.active { background: var(--felt); color: #fff; border-color: var(--felt); }
.histo-sum .sc { font-weight: 700; font-size: 1.15rem; margin-right: 6px; }
.chip { display: inline-block; min-width: 2.1em; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.chip-up { background: #e3f5ec; color: #1f7a52; }
.chip-down { background: #fde8e7; color: #b23b37; }
.chip-0 { background: #eeeadf; color: #7a7565; }
.histo-sum td.cell-low { background: #f1faf5; }
.chart-toggle { min-height: 40px; }
.histo-compact th, .histo-compact td { padding: 5px 4px !important; font-size: .82rem; }
.histo-compact tr.sub th { font-size: .66rem; letter-spacing: 0; }
.histo-det .grp { border-left: 2px solid #e6e1d3; background: #faf7ee; }
.histo-det .grp-l { border-left: 2px solid #e6e1d3; }
.histo-det tr.sub th { font-size: .72rem; color: #8a8574; }
.pause-row td { background: #fff8e1; color: #7a5b00; font-size: .9rem; }
.histo-det .lev { white-space: nowrap; }
.histo-det .lev-n { display: inline-block; min-width: 1.4em; text-align: center; }
.histo-det .lev-i { display: inline-block; width: 1.9em; text-align: left; color: #8e44ad; font-size: 1.35rem; line-height: 1; vertical-align: -3px; }
.histo-det .lev-n { min-width: 1.9em; }
.legend-i { font-size: 1.3rem; vertical-align: -3px; }

/* ───── Liste des parties ───── */
.plist tbody tr.prow { cursor: pointer; }
.plist tbody tr.prow:hover { background: #fbf8ef; }
.plist th.sortable { cursor: pointer; user-select: none; white-space: nowrap; min-height: 44px; }
.plist th.sortable::after { content: "\2195"; margin-left: 6px; opacity: .3; font-size: .85em; }
.plist th.sortable.asc::after { content: "\2191"; opacity: 1; color: var(--tblr-primary); }
.plist th.sortable.desc::after { content: "\2193"; opacity: 1; color: var(--tblr-primary); }
.plist td { padding-top: .8rem; padding-bottom: .8rem; }
.seq-pill { display: inline-block; min-width: 2.4em; text-align: center; padding: 2px 8px; border-radius: 8px; background: #eeeadf; font-weight: 700; }
.gtile { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; font-size: 1.7rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.gtile-neuf { background: linear-gradient(135deg, #0f3d2e, #1f7a52); color: #f1d27a; }
.gtile-team { background: linear-gradient(135deg, #3a2f7d, #5b6fd6); color: #fff; }
.ppill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eeeadf; font-size: .85rem; white-space: nowrap; }
.ppill-win { background: #fff1c2; color: #7a5b00; font-weight: 600; }
.pager-btn { width: 46px; height: 46px; font-size: 1.3rem; }

/* Logo du jeu Neuf */
.logo-neuf { object-fit: contain; border-radius: 22%; vertical-align: middle; flex: 0 0 auto; }
.logo-46 { width: 46px; height: 46px; } .logo-44 { width: 44px; height: 44px; margin-bottom: 4px; }
.logo-40 { width: 40px; height: 40px; } .logo-32 { width: 32px; height: 32px; }

/* ───── Fond vert « tapis », cartes crème ───── */
body { background: radial-gradient(ellipse at 30% 0%, #17604a 0%, #0d3427 55%, #092419 100%) fixed; }
.page-wrapper { color: #efe9d6; }
.page-wrapper h1, .page-wrapper h2, .page-wrapper h3, .page-wrapper h4, .page-wrapper h5, .page-wrapper h6 { color: inherit; }
.page-title { color: #f1d27a !important; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.page-wrapper .text-secondary { color: rgba(239,233,214,.72) !important; }
.card, .modal-content, .alert, .dropdown-menu, .table-responsive { color: #2b2a26; }
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .modal-content h5, .alert h3, .alert h4 { color: #1d1c19; }
.card .text-secondary, .modal-content .text-secondary, .alert .text-secondary, .dropdown-menu .text-secondary { color: #6b6a62 !important; }
.card, .modal-content { border: 0; box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.card .card, .modal-content .card { box-shadow: none; border: 1px solid #e6e1d3; }
.nav-pills .nav-link { color: #efe9d6; min-height: 44px; display: flex; align-items: center; border-radius: 10px; }
.nav-pills .nav-link:hover { background: rgba(255,255,255,.1); color: #f1d27a; }
.nav-pills .nav-link.active { background: #f1d27a; color: #3b2e05; font-weight: 600; }
.page-tabs { border-bottom-color: rgba(255,255,255,.2); }
.page-tabs .nav-link { color: rgba(239,233,214,.8); }
.page-tabs .nav-link:hover { color: #f1d27a; }
.page-tabs .nav-link.active { color: #f1d27a; background: transparent; border-bottom: 3px solid #f1d27a; }
.sec-head p { color: rgba(239,233,214,.8); }
.form-hint { color: inherit; opacity: .8; }
.card .form-hint { color: #6b6a62; opacity: 1; }
.winner { display: inline-flex; align-items: center; font-weight: 700; color: #7a5b00; background: #fff1c2; border-radius: 999px; padding: 3px 12px; }
.winner i { color: #d19a0b; }
.btn-eye { width: 46px; height: 46px; font-size: 1.4rem; color: var(--felt); border-radius: 12px; }
.btn-eye:hover { background: var(--felt); color: #f1d27a; }

/* ───── Boutons de filtre (contrôle segmenté) ───── */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid rgba(241,210,122,.35);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.seg-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; color: #efe9d6; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.seg-item i { font-size: 1.25rem; }
.seg-logo { width: 26px; height: 26px; border-radius: 22%; }
.seg-item:hover { background: rgba(255,255,255,.12); color: #f1d27a; }
.seg-item.active { background: linear-gradient(180deg, #f6dc8c, #e2b84d); color: #3b2e05; box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.55); }
.seg-n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(241,210,122,.18); color: #f1d27a; font-size: .8rem; font-weight: 700; border: 1px solid rgba(241,210,122,.45); }
.seg-item.active .seg-n { background: #fff; color: #7a5b00; border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.seg-item { gap: 10px; padding: 0 14px 0 16px; }
.lieu-filter { min-width: 260px; max-width: 360px; }
.lieu-filter .form-select { min-height: 44px; padding-left: 2.4rem; }

/* ───── Statistiques ───── */
.stats-filtres .form-select { min-height: 44px; width: auto; min-width: 180px; max-width: 320px; }
.podium { transition: transform .15s; text-decoration: none; border-top: 5px solid #cfcbbd; }
.podium:hover { transform: translateY(-2px); }
.podium-1 { border-top-color: #e0a919; background: #fff8e1; }
.podium-2 { border-top-color: #9aa3ad; }
.podium-3 { border-top-color: #b97a45; }
.medal { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; flex: 0 0 54px; color: #fff; }
.medal-1 { background: linear-gradient(135deg, #f1c84b, #cf9a12); }
.medal-2 { background: linear-gradient(135deg, #b6bdc6, #8b95a1); }
.medal-3 { background: linear-gradient(135deg, #d3955e, #a96a36); }
.rang-n { font-size: 2.2rem; font-weight: 700; opacity: .18; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: #eeeadf; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #2f9e6b, #62c795); border-radius: 999px; }
.bar span.bar-faible { background: #c9c5b6; }
.avatar-xl { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #0f3d2e, #1f7a52); color: #f1d27a; font-weight: 700; font-size: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.kpi-v { font-size: 2rem; font-weight: 700; line-height: 1.2; color: var(--felt); }
.mbar { height: 14px; border-radius: 999px; background: #e3ddc9; overflow: hidden; min-width: 8px; }
.mbar span { display: block; height: 100%; background: #e0a919; }
a.podium, a.podium:hover { color: #2b2a26; }
a.podium .fs-3 { color: #1d1c19; }
a.podium .text-secondary { color: #6b6a62 !important; }
.rang-n { color: #2b2a26; }

/* ───── Tuiles KPI ───── */
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.ktile { background: #fffdf8; border-radius: 16px; padding: 14px 16px 12px; color: #2b2a26; box-shadow: 0 6px 18px rgba(0,0,0,.26);
  border-top: 4px solid var(--kc); position: relative; overflow: hidden; }
.ktile-top { display: flex; align-items: center; gap: 12px; }
.ktile-ico { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px;
  background: var(--kb); color: var(--kc); font-size: 1.6rem; }
.ktile-ico img { width: 34px; height: 34px; border-radius: 22%; }
.ktile-v { font-size: 1.85rem; font-weight: 700; line-height: 1; color: var(--kc); white-space: nowrap; min-width: 0; }
.ktile-l { margin-top: 10px; font-weight: 600; font-size: .92rem; }
.ktile-s { font-size: .75rem; color: #8a8574; margin-top: 1px; }
.k-green  { --kc: #12805c; --kb: #dff4ea; }
.k-gold   { --kc: #b8830a; --kb: #fbefc9; }
.k-blue   { --kc: #2b6fd6; --kb: #e0ebfb; }
.k-purple { --kc: #7c3aad; --kb: #efe3f8; }
.k-teal   { --kc: #0f8f9d; --kb: #dcf3f5; }
.k-orange { --kc: #d9631a; --kb: #fde8d8; }
.k-red    { --kc: #c0364f; --kb: #fbe1e6; }

.row-moi td { background: #fff6dc; }
.medal-sm { width: 34px; height: 34px; font-size: 1.15rem; flex: 0 0 34px; }
.vpj { display: inline-block; min-width: 3.2em; padding: 2px 10px; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 600; text-align: center; }
.vpj-neuf { background: #0f3d2e; }
.vpj-equipe { background: #3a2f7d; }

/* ───── Choix des joueurs (Neuf / Beigne) ───── */
.pcard { width:150px; height:140px; flex:0 0 150px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; padding:10px; border-radius:16px; border:3px solid var(--tblr-border-color); background:var(--tblr-bg-surface-secondary);
  text-align:center; cursor:pointer; user-select:none; font-weight:700; font-size:1.05rem; transition:all .15s; }
.pcard.sel { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.pcard .num { font-size:.78rem; min-height:1.1em; }
.pcard .sub { font-size:.82rem; opacity:.7; font-weight:500; }
.orow { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--tblr-border-color); border-radius:8px; }
.orow .btn { min-width:44px; min-height:44px; }
.ord-n { min-width: 34px; }
/* tuile du Beigne (pas encore de logo) */
.gtile-beigne { background: linear-gradient(135deg, #b4541a, #e89a3c); color: #fff; }
.gtile-sm { width: 34px; height: 34px; flex: 0 0 34px; font-size: 1.2rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }

/* ───── Le Beigne ───── */
.bscores { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.bscore { background: #fffdf8; color: #2b2a26; border-radius: 16px; padding: 10px 12px 12px; text-align: center; border-top: 5px solid #cfcbbd;
  box-shadow: 0 6px 18px rgba(0,0,0,.26); }
.bscore.lead { border-top-color: #2f9e6b; background: #f1faf5; }
.bscore.win { border-top-color: #e0a919; background: #fff8e1; }
.bs-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.brank { font-weight: 700; color: #8a8574; }
.bscore.win .brank { color: #cf9a12; font-size: 1.3rem; }
.bs-name { font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.bs-score { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--felt); }
.binfo { background: #eeeadf; border-radius: 999px; padding: 4px 14px; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.binfo-cards { background: #fff1c2; color: #7a5b00; font-size: 1.05rem; }
.binfo-cards b { font-size: 1.3rem; }
.brows { display: flex; flex-direction: column; gap: 8px; }
.brow { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e6e1d3; border-radius: 12px; background: #fcfaf4; }
.brow-head { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.brow-name { font-weight: 700; font-size: 1.05rem; }
.brow-score { color: #8a8574; font-size: .85rem; }
.brow-prev { margin-left: auto; font-weight: 700; font-size: .9rem; }
.brow-prev.ok { color: #1f7a52; }
.brow-prev.ko { color: #b23b37; }
.bpad { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.bbtn { flex: 1 1 0; min-width: 0; height: 48px; padding: 0; border: 2px solid #d9d4c4; border-radius: 14px; background: #fff; color: #2b2a26;
  font-size: 1.5rem; font-weight: 700; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .08s; }
.bbtn:active { transform: scale(.94); }
.bbtn.active { background: var(--felt); border-color: var(--felt); color: #f1d27a; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.bbtn.active.auto { background: #3a7d62; border-style: dashed; }
.bbtn:disabled { opacity: .3; }
.bbar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(9,36,25,0), rgba(9,36,25,.92) 35%); }
.bbar-msg { color: #efe9d6; font-weight: 600; font-size: 1.05rem; }
.bbar-msg.ok { color: #f1d27a; }
.bbar .btn-lg { min-height: 50px; min-width: 220px; }
.brows .chip { font-size: .75rem; padding: 1px 8px; }
.bscores { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.bscores { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.bscore { padding: 3px 6px 5px; border-top-width: 4px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.24); }
.bs-top { min-height: 20px; font-size: .8rem; }
.bs-top .badge { font-size: .65rem; padding: 1px 5px; }
.bs-name { font-size: .9rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-score { font-size: 1.5rem; line-height: 1.05; }
.bscore .chip { font-size: .7rem; padding: 0 7px; }
@media (max-width: 640px) { .brow { grid-template-columns: 1fr; } }
.btrumps-wrap { padding: 6px 10px 8px; border: 1px dashed #d9c27a; border-radius: 12px; background: #fff8e1; }
.btrumps { display: flex; gap: 6px; }
.ttbtn { flex: 1 1 0; min-width: 0; height: 48px; border: 2px solid #d9d4c4; border-radius: 12px; background: #fff; color: #2b2a26; font-weight: 700;
  font-size: .95rem; white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ttbtn:active { transform: scale(.96); }
.ttbtn.active { background: var(--felt); border-color: var(--felt); color: #f1d27a; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.ttbtn.active .text-red { color: #ff8a80 !important; }
@media (max-width: 640px) { .ttbtn { font-size: .75rem; } }
.early-card { border-left: 6px solid #e0a919; }
.cercle-beigne { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; height: 2em; border: 2px solid #c0364f; border-radius: 50%; color: #b23b37; font-weight: 700; }
tr.hors-jeu td { opacity: .5; }
.seg-ico { width: 26px; height: 26px; border-radius: 22%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #b4541a, #e89a3c); color: #fff; font-size: 1rem; }
.vpj-beigne { background: #b4541a; }

/* ───── Marqueur (ordre de saisie) ───── */
.seq-input { width: 84px; min-height: 44px; }
.mq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.88); }
.mq-label { font-weight: 700; color: #6b6656; margin-right: 4px; }
.mq-btn { min-height: 44px; padding: 0 14px; border: 2px solid #d9d4c4; border-radius: 12px; background: #fff; color: #2b2a26; font-weight: 600; touch-action: manipulation; }
.mq-btn.active { background: var(--felt); border-color: var(--felt); color: #f1d27a; }
.suit { font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", Arial, sans-serif; font-style: normal; line-height: 1; display: inline-block; }

.back-btn { min-height: 44px; display: inline-flex; align-items: center; background: rgba(255,255,255,.9); font-weight: 600; }

.legacy-id { font-size: .8rem; } .legacy-id code { color: #6b7aa6; background: transparent; padding: 0; }
.badge-imp { font-size: .62rem; margin-top: 2px; }

.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sheet-thumb { display: flex; align-items: center; justify-content: center; height: 150px; border: 1px solid #dfe3ea; border-radius: 8px; overflow: hidden; background: #f6f7fa; font-size: 3rem; color: #c0504d; }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-item .btn { min-height: 44px; min-width: 44px; margin-top: 4px; }
.sheet-file { max-width: 100%; min-height: 44px; }
.sheet-url { flex: 1 1 280px; min-height: 44px; }

.sheet-sum { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.sheet-sum::-webkit-details-marker { display: none; }
.sheet-box[open] .sheet-sum { border-bottom: 1px solid #e6e8ee; }
.sheet-box[open] .sheet-open { display: none; }
.sheet-box:not([open]) .sheet-sum { border-bottom: 0; }
.grp-parties summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.grp-parties a { min-height: 36px; display: flex; align-items: center; }

/* Statistiques : blocs « mêmes adversaires » — texte plus grand, plus de couleur */
.grp .card-header { background: linear-gradient(90deg, #e9f4ee, #f7f1de); border-bottom: 2px solid #d7b84a; }
.grp .card-header .fw-bold { font-size: 1.25rem; color: #14452f; }
.grp .card-header .small { font-size: .95rem; }
.grp .vpj { font-size: .95rem; padding: 5px 12px; }
.grp .table td { font-size: 1.1rem; padding-top: 14px; padding-bottom: 14px; }
.grp .table td a { font-size: 1.15rem; }
.grp-r1 { background: #fdf5d8; } .grp-r2 { background: #eef1f5; } .grp-r3 { background: #f8ece1; }
.grp-pct { min-width: 190px; } .grp-pct b { font-size: 1.15rem; color: #1b6fb8; min-width: 3.4em; }
.grp-r1 .grp-pct .bar span { background: linear-gradient(90deg, #d7a417, #f1c84b); }
.grp-r2 .grp-pct .bar span { background: linear-gradient(90deg, #8b95a1, #b6bdc6); }
.grp-r3 .grp-pct .bar span { background: linear-gradient(90deg, #a96a36, #d3955e); }
.grp-v { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #14452f; color: #fff; font-weight: 700; font-size: 1rem; }
.grp-r0 .grp-v { background: #6b7a72; }
.grp-parties summary { font-size: 1rem; color: #14452f; font-weight: 600; }
.grp-parties a { font-size: 1rem; }

/* Statistiques : classements généraux — même style que les blocs « mêmes adversaires » */
.clas-gen thead th { background: linear-gradient(90deg, #e9f4ee, #f7f1de); color: #14452f; font-size: .85rem; border-bottom: 2px solid #d7b84a; }
.clas-gen td { font-size: 1.1rem; padding-top: 14px; padding-bottom: 14px; }
.clas-gen td a { font-size: 1.15rem; color: #14452f !important; }
.clas-gen .clas-pct { font-weight: 700; font-size: 1.1rem; color: #1b6fb8; }
.clas-gen .clas-pct.text-secondary { color: #8a8f98 !important; }
.clas-gen .bar { height: 12px; }
.clas-gen .chip-up { font-size: 1rem; padding: 3px 12px; background: #d6f0e2; color: #14693f; font-weight: 700; }
.clas-gen tr.grp-r1 .bar span { background: linear-gradient(90deg, #d7a417, #f1c84b); }
.clas-gen tr.grp-r2 .bar span { background: linear-gradient(90deg, #8b95a1, #b6bdc6); }
.clas-gen tr.grp-r3 .bar span { background: linear-gradient(90deg, #a96a36, #d3955e); }
.clas-gen tr.grp-r1 { background: #fdf5d8; } .clas-gen tr.grp-r2 { background: #eef1f5; } .clas-gen tr.grp-r3 { background: #f8ece1; }
.clas-gen .seq-pill { font-size: 1rem; }
.ev-input { max-width: 380px; min-height: 44px; }
.ev-input + .btn, .list-group-item .btn { min-height: 44px; }
.vpj-cinq { background: #1d6b44; }

/* ───────── 500 (2 joueurs) — pensé pour l'iPad ───────── */
.g5-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g5-score { background: #fff; border-radius: 14px; padding: 12px 16px; border: 3px solid transparent; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.g5-score.lead { border-color: #d7b84a; } .g5-score.win { border-color: #2f9e6b; background: #eefaf3; }
.g5-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.g5-name { font-weight: 700; font-size: 1.15rem; }
.g5-pts { font-size: 3rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: #14452f; }
.g5-bar { height: 10px; border-radius: 999px; background: #eeeadf; overflow: hidden; margin: 6px 0 4px; }
.g5-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d7a417, #f1c84b); border-radius: 999px; }
.g5-rest { font-size: .9rem; color: #6b7280; }
.g5-b { min-height: 52px; min-width: 52px; border-radius: 12px; border: 2px solid #d5d9e0; background: #fff; color: #374151; font-weight: 800; font-size: 1.15rem; padding: 6px 10px; cursor: pointer; touch-action: manipulation; }
.g5-b:disabled { opacity: .3; cursor: not-allowed; }
.g5-line { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.g5-line .g5-b { flex: 1 1 0; }
.g5-lvl.on { background: #14452f; border-color: #14452f; color: #fff; }
.g5-suit { font-size: 1.6rem; line-height: 1; color: var(--c); }
.g5-suit.on { background: var(--c); border-color: var(--c); color: #fff; }
.g5-tog { font-size: .98rem; width: 100%; }
.g5-tog.wide { flex: 1; }
.g5-tog.on { background: #eef1f5; border-color: #6b7280; color: #111827; }
.g5-step { margin-bottom: 16px; padding-top: 10px; border-top: 1px dashed #d9dde4; }
.g5-top + .g5-step { border-top: 0; padding-top: 0; }
.g5-step:first-child { border-top: 0; padding-top: 0; }
.g5-sl { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; margin-bottom: 8px; }
.g5-sl span { font-weight: 500; text-transform: none; letter-spacing: 0; color: #8a8f98; }
.g5-top { margin-bottom: 14px; }
.g5-empty { text-align: center; padding: 28px 10px; color: #6b7280; background: #f6f7fa; border-radius: 12px; margin-bottom: 14px; }
.g5-sum { margin: 14px 0 10px; padding: 12px 14px; border-radius: 12px; background: #eefaf3; border: 1px solid #b8e6cc; font-size: 1.05rem; color: #0e6b45; }
.g5-confirm { width: 100%; background: #14452f; border-color: #14452f; color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.g5-curtain { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #fdf5d8; border: 2px solid #d7b84a; margin-bottom: 16px; }
.g5-curtain .g5-b { width: auto; min-width: 180px; }
.g5-cl { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: #8a6d12; }
.g5-cn { font-size: 1.3rem; font-weight: 800; color: #14452f; }
.g5-cc { font-size: 1.15rem; font-weight: 700; }
.g5-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.g5-n { min-height: 58px; font-size: 1.35rem; }
.g5-n.ok { border-color: #9ad5b6; }
.g5-n.on { background: #14452f; border-color: #14452f; color: #fff; }
.g5-hint { margin-top: 10px; font-size: 1.05rem; font-weight: 700; }
.g5-ok { color: #14693f; } .g5-ko { color: #c0392b; }
.g5-win { margin-top: 8px; padding: 8px 12px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 10px; color: #856404; }
.g5-jrow { margin-bottom: 10px; }
.g5-jl { font-weight: 800; font-size: .95rem; }
.g5-jl.bl { color: #8a6d12; } .g5-jl.bo { color: #4357c4; }
.g5-jk.bl.on { background: #fbf1d0; border-color: #b4975a; color: #7a5f12; }
.g5-jk.bo.on { background: #e4e9ff; border-color: #5c7cfa; color: #2f43a8; }
.g5-jk { font-size: .95rem; }
.g5-remain { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #d9dde4; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; color: #4b5563; }
.g5-c { font-weight: 800; font-size: 1.1rem; }
.g5-jb { color: #8a6d12; } .g5-jh { color: #4357c4; }
@media (max-width: 600px) { .g5-pts { font-size: 2.3rem; } .g5-grid { grid-template-columns: repeat(6, 1fr); } }

/* Note de partie : bouton + fenêtre flottante */
.note-btn { position: relative; min-width: 52px; min-height: 44px; font-size: 1.3rem; }
.note-btn .note-dot { display: none; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #e0a919; border: 2px solid #fff; }
.note-btn.has-note .note-dot { display: block; }
.note-btn.has-note { border-color: #e0a919; }
/* Minuteurs : durée de la partie et de la manche */
.timer-lbl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(239,233,214,.8); }
.timer-round { color: #7be0b0; }
/* Tuiles de score : nom lisible, tuile plus compacte (tous les jeux) */
.score-card .card-body { padding: .5rem .75rem; }
.score-card .card-body > .text-secondary:first-child { color: #2b2a26 !important; font-weight: 700; font-size: 1.02rem; }
.score-card .display-5, .score-card .display-4 { font-size: 2.1rem; line-height: 1.1; }
.g5-score { padding: 8px 14px; }
.g5-name { color: #2b2a26; font-size: 1.05rem; }
.g5-pts { font-size: 2.2rem; }
.g5-bar { height: 8px; margin: 4px 0 2px; }
.g5-rest { font-size: .85rem; }

/* 500 : levées avec − / + (compact) */
.g5-stepper { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.g5-sb { width: 72px; height: 64px; font-size: 2rem; flex: 0 0 72px; }
.g5-sb.plus { background: #14452f; border-color: #14452f; color: #fff; }
.g5-tv { flex: 1; text-align: center; }
.g5-big { font-size: 2.8rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.g5-big.ok { color: #14693f; } .g5-big.ko { color: #c0392b; }
.g5-req { margin-top: 4px; font-size: .9rem; color: #4b5563; }
.g5-jt th, .g5-jt td { font-size: 1.05rem; }

/* Fenêtre de victoire + feux d'artifice */
.feux { position: fixed; inset: 0; z-index: 1060; pointer-events: none; }
.vic-content { text-align: center; padding: 26px 22px 18px; border-radius: 22px; color: #2b2a26; }
.vic-trophy { font-size: 4.2rem; line-height: 1; animation: vic-pop .7s ease-out both; }
@keyframes vic-pop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.15) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.vic-titre { font-size: 2rem; font-weight: 800; margin: 8px 0 2px; color: #14452f; }
.vic-sous { color: #6b6a62; font-size: 1.1rem; margin-bottom: 16px; }
.vic-cl { text-align: left; margin: 0 4px 12px; }
.vic-clt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #4b5563; margin-bottom: 6px; }
.vic-clt span { font-weight: 500; text-transform: none; }
.vic-table { width: 100%; font-size: 1.05rem; }
.vic-table th { font-size: .8rem; color: #6b6a62; text-align: center; padding: 4px 6px; }
.vic-table td { text-align: center; padding: 7px 6px; border-top: 1px solid #eee; font-variant-numeric: tabular-nums; }
.vic-table td:first-child { font-weight: 600; }
.vic-saved { color: #1b8f8f; font-size: .95rem; margin-bottom: 14px; }
.vic-btns { display: flex; flex-direction: column; gap: 8px; }
.vic-btns .btn { min-height: 52px; }
@media (prefers-reduced-motion: reduce) { .vic-trophy { animation: none; } }

.sb-logo { height: 62px; width: auto; flex: none; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.sb-head .sb-brand { gap: 10px; font-size: 1.05rem; line-height: 1.15; white-space: normal; }
.topbar .sb-logo { height: 46px; }
html.sb-collapsed .sb-logo { height: 52px; }

/* ───── Page de connexion : tapis de jeu, carte crème ornée, or ───── */
body.login-page { background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 5px),
  radial-gradient(ellipse at 50% 42%, #1d7455 0%, #12503a 38%, #0a301f 75%, #061c12 100%) fixed; }
body.login-page .page-wrapper, body.login-page .page { background: transparent; }
.login-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.login-deco svg { position: absolute; }
.login-deco .glow { left: 50%; top: 52%; width: 760px; height: 560px; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(241,210,122,.30) 0%, rgba(241,210,122,.10) 45%, transparent 70%); }
.login-deco .bigcard { opacity: .5; }
.login-deco .bc1 { right: -30px; top: -40px; width: 300px; transform: rotate(22deg); }
.login-deco .bc2 { left: -40px; bottom: -50px; width: 300px; transform: rotate(-18deg); }
.login-deco .sp { width: 26px; fill: #f1d27a; }
.login-wrap { position: relative; z-index: 1; max-width: 460px; margin: 3vh auto 0; padding: 0 12px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 1.4rem; }
.login-brand img { height: 78px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.login-brand h1 { margin: 0; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 700; color: #fbf6e6; letter-spacing: .01em; line-height: 1.05; }
.login-brand h1 span { color: #d9ad4a; }
.login-card { position: relative; background: linear-gradient(180deg, #fbf8ee, #f3eddc); border: 2px solid #d3ad57; border-radius: 22px;
  padding: 2.2rem 2.2rem 2rem; box-shadow: 0 0 0 5px rgba(241,210,122,.12), 0 18px 44px rgba(0,0,0,.5), 0 0 60px rgba(241,210,122,.25); }
.login-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,162,75,.65); border-radius: 15px; pointer-events: none; }
.login-card .corner { position: absolute; width: 34px; height: 34px; }
.login-card .c-tl { left: 10px; top: 10px; } .login-card .c-tr { right: 10px; top: 10px; transform: scaleX(-1); }
.login-card .c-bl { left: 10px; bottom: 10px; transform: scaleY(-1); } .login-card .c-br { right: 10px; bottom: 10px; transform: scale(-1,-1); }
.login-card h2 { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 700; color: #0f3d2e; text-align: center; margin: 0; }
.login-card .orn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: .35rem 0 1.4rem; color: #c9a24b; }
.login-card .orn::before, .login-card .orn::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, #c9a24b); }
.login-card .orn::after { transform: scaleX(-1); }
.login-card .orn i { width: 7px; height: 7px; background: #c9a24b; transform: rotate(45deg); }
.login-card .form-label { font-weight: 700; color: #0f3d2e; }
.login-card .input-icon-addon { color: #6b6a5c; }
.login-card .form-control { background: #efebde; border: 2px solid #d9bd78; border-radius: 10px; min-height: 48px; color: #1f2a24; box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
.login-card .form-control:focus { border-color: #c9a24b; box-shadow: 0 0 0 3px rgba(201,162,75,.3); background: #f6f2e6; }
.login-card .btn-primary { min-height: 50px; border: 0; border-radius: 10px; font-weight: 700; font-size: 1.05rem; color: #fff;
  background: linear-gradient(180deg, #d9b14f 0%, #b8892a 55%, #a57820 100%); box-shadow: 0 3px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.45); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.login-card .btn-primary:hover { filter: brightness(1.07); }
@media (max-width: 520px) { .login-brand h1 { font-size: 1.7rem; } .login-brand img { height: 60px; } .login-card { padding: 1.8rem 1.4rem; } }
