/* Parties, cartes de score et statistiques : présentation partagée V2. */
.tb-golf-vues { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.tb-golf-vues[hidden] { display:none; }
.tb-golf-vues button { min-height:48px; padding:12px 18px; border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; color:var(--tb-encre-70); font:inherit; font-size:.9rem; font-weight:600; cursor:pointer; transition:color var(--tb-d1),background var(--tb-d1); }
.tb-golf-vues button:hover { background:var(--tb-vert-pale); color:var(--tb-vert); }
.tb-golf-vues button[aria-pressed="true"] { color:var(--tb-vert); border-bottom-color:var(--tb-orange); background:var(--tb-blanc); }
.tb-golf-filtres { display:grid; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); align-items:end; gap:14px; width:100%; margin:0 0 8px; }
.tb-golf-filtre { display:flex; flex-direction:column; gap:6px; min-width:0; color:var(--tb-encre); }
.tb-golf-filtre__titre { font-size:.78rem; font-weight:600; }
.tb-golf-filtre select,.tb-golf-filtre input { width:100%; min-width:0; min-height:44px; padding:10px 11px; border:1px solid var(--tb-ligne-forte); border-radius:var(--tb-r2); background:var(--tb-blanc); color:var(--tb-encre); font:inherit; font-size:.88rem; }
.tb-golf-reset { justify-self:start; min-height:44px; padding:8px 0; border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; color:var(--tb-vert); cursor:pointer; font:inherit; font-size:.84rem; }
.tb-golf-filtre :focus-visible,.tb-golf-vues button:focus-visible,.tb-golf-reset:focus-visible,.tb-golf-trous summary:focus-visible { outline:3px solid var(--tb-orange,#d96528); outline-offset:3px; }
.tb-golf-liste { display:grid; gap:32px; min-width:0; }
.tb-golf-partie { min-width:0; overflow:hidden; border:1px solid var(--tb-ligne-forte); border-top:3px solid var(--tb-vert); border-radius:var(--tb-r2); background:var(--tb-blanc); container-type:inline-size; }
.tb-golf-partie__entete { padding:24px 28px; }
.tb-golf-partie__bandeau { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.tb-golf-partie__date { font-size:.8rem; font-weight:600; color:var(--tb-encre-70); }
.tb-golf-badges { display:flex; flex-wrap:wrap; gap:6px; }
.tb-golf-badges .tb-badge { font-size:.7rem; padding:4px 8px; min-height:24px; letter-spacing:.02em; }
.tb-golf-partie__manche { margin:0 0 8px; color:var(--tb-orange-texte); text-transform:uppercase; letter-spacing:.1em; font-size:.7rem; font-weight:700; }
.tb-golf-partie__titre { margin:0; color:var(--tb-vert-profond); font-family:var(--tb-font-titre); font-size:clamp(1.25rem,2.6vw,1.8rem); line-height:1.2; overflow-wrap:anywhere; }
.tb-golf-partie__meta { margin:8px 0 0; color:var(--tb-encre-70); font-size:.87rem; line-height:1.5; overflow-wrap:anywhere; }
.tb-golf-partie__reperes { display:flex; gap:24px; margin:20px 0 0; padding-top:16px; border-top:1px solid var(--tb-ligne); }
.tb-golf-partie__reperes>div { min-width:0; }
.tb-golf-partie__reperes dt { text-transform:uppercase; letter-spacing:.08em; font-size:.65rem; font-weight:600; color:var(--tb-encre-70); }
.tb-golf-partie__reperes dd { margin:4px 0 0; font-size:.92rem; font-weight:600; color:var(--tb-vert); font-variant-numeric:tabular-nums; }
.tb-golf-note { display:block; margin:7px 0 0; color:var(--tb-encre-70); font-size:.82rem; line-height:1.55; }
.tb-golf-partie>.tb-golf-note { margin:0; padding:12px 28px; border-top:1px solid var(--tb-ligne); }
.tb-golf-score-table { width:100%; table-layout:fixed; border-collapse:collapse; font-variant-numeric:tabular-nums; text-align:left; }
.tb-golf-score-table thead { background:var(--tb-vert-profond); color:var(--tb-creme); }
.tb-golf-score-table thead th { padding:12px 16px; font-size:.68rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; vertical-align:middle; }
.tb-golf-score-table .tb-golf-score__rang { width:68px; text-align:center; padding-inline:12px; }
.tb-golf-score-table .tb-golf-score__valeur { width:112px; text-align:right; }
.tb-golf-score-table .tb-golf-score__classement { width:120px; text-align:right; padding-right:28px; }
.tb-golf-score>td,.tb-golf-score>th { padding:16px; border-top:1px solid var(--tb-ligne); vertical-align:middle; }
.tb-golf-score:first-child>* { border-top:0; }
.tb-golf-score[data-place="1"] { background:var(--tb-vert-pale); }
.tb-golf-score[data-place="1"] .tb-golf-score__rang { box-shadow:inset 3px 0 var(--tb-vert); }
.tb-golf-score__rang span { font-size:1rem; font-weight:600; color:var(--tb-encre-70); }
.tb-golf-score__identite { min-width:0; font-weight:400; overflow-wrap:anywhere; }
.tb-golf-score__identite>strong { font-size:.95rem; font-weight:600; }
.tb-golf-score__identite .tb-golf-note { margin-top:4px; font-size:.76rem; font-weight:400; }
.tb-golf-score__valeur>strong { color:var(--tb-vert-profond); font-size:1.5rem; line-height:1; font-weight:600; }
.tb-golf-score__valeur .tb-golf-note { margin-top:4px; font-size:.75rem; }
.tb-golf-score__classement>strong { color:var(--tb-encre); font-size:1rem; font-weight:600; }
.tb-golf-score__classement .tb-golf-note { margin-top:4px; font-size:.65rem; }
.tb-golf-score__detail>td { padding:0 28px 0 68px; border-bottom:1px solid var(--tb-ligne); }
.tb-golf-partie__pied { padding:14px 28px; border-top:1px solid var(--tb-ligne); background:var(--tb-ivoire); }
.tb-golf-partie__pied p { margin:0; color:var(--tb-encre-70); font-size:.75rem; line-height:1.6; }
.tb-golf-trous { margin:0; }
.tb-golf-trous summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:12px 0; cursor:pointer; color:var(--tb-vert); font-size:.78rem; font-weight:600; list-style:none; }
.tb-golf-trous summary::-webkit-details-marker { display:none; }
.tb-golf-trous summary::after { content:'+'; font-size:1.2rem; font-weight:400; margin-left:auto; }
.tb-golf-trous[open]>summary::after { content:'−'; }
.tb-golf-trous__couverture { color:var(--tb-encre-70); font-weight:400; font-size:.72rem; }
.tb-golf-trous__segment { padding-bottom:16px; }
.tb-golf-trous__segment h5 { margin:8px 0 12px; font-size:.75rem; font-weight:600; color:var(--tb-encre-70); }
.tb-golf-trous__grille { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); padding:0; margin:0; list-style:none; border-left:1px solid var(--tb-ligne-forte); border-top:1px solid var(--tb-ligne-forte); }
.tb-golf-trou { display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 4px; border-right:1px solid var(--tb-ligne-forte); border-bottom:1px solid var(--tb-ligne-forte); background:var(--tb-ivoire); font-variant-numeric:tabular-nums; }
.tb-golf-trou__numero { font-size:.65rem; font-weight:600; color:var(--tb-encre-70); }
.tb-golf-trou strong { color:var(--tb-vert); font-size:1.2rem; font-weight:600; }
.tb-golf-trou__par { font-size:.65rem; color:var(--tb-encre-70); }
.tb-golf-trous>.tb-golf-note { margin:0 0 16px; }
.tb-golf-table-cadre { max-width:100%; overflow-x:auto; margin:10px 0; border:1px solid var(--tb-ligne); border-radius:var(--tb-r2); }
.tb-golf-table { width:100%; border-collapse:collapse; font-size:.8rem; font-variant-numeric:tabular-nums; }
.tb-golf-table th,.tb-golf-table td { min-width:36px; padding:10px 8px; text-align:center; border-right:1px solid var(--tb-ligne); }
.tb-golf-table thead { background:var(--tb-ivoire-alt); }
.tb-golf-table tr>:first-child { text-align:left; min-width:65px; }
.tb-golf-table tr>:last-child { border-right:0; }
.tb-golf-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:14px 0; }
.tb-golf-stat { min-width:0; padding:15px; background:var(--tb-ivoire-alt); border-radius:var(--tb-r2); }
.tb-golf-stat dt { font-size:.76rem; line-height:1.4; color:var(--tb-encre-70); }
.tb-golf-stat dd { margin:7px 0 0; color:var(--tb-vert); font-family:var(--tb-font-titre); font-size:1.35rem; line-height:1.2; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.tb-golf-comparaison { padding-top:22px; margin-top:20px; border-top:1px solid var(--tb-ligne); }
.tb-golf-comparaison h4 { margin:0; font-family:var(--tb-font-titre); color:var(--tb-vert); font-size:1.05rem; }
.tb-golf-tendance { color:var(--tb-vert); font-size:.9rem; margin:10px 0; }
.tb-golf-evolution { margin:16px 0 0; color:var(--tb-vert); }
.tb-golf-evolution svg { display:block; width:100%; max-height:145px; border-radius:var(--tb-r2); background:var(--tb-ivoire-alt); }
.tb-golf-evolution figcaption { text-align:center; }
.tb-golf-vide { margin:20px 0; padding:20px; border:1px dashed var(--tb-ligne-forte); border-radius:var(--tb-r2); color:var(--tb-encre-70); font-size:.9rem; line-height:1.6; }
.tb-golf-partie--compacte .tb-golf-partie__entete { padding:18px; }
.tb-golf-partie--compacte .tb-golf-partie__titre { font-size:1.15rem; }
.tb-golf-partie--compacte>.tb-golf-note { padding:0 18px 18px; }
.tb-golf-carte-note { margin:0 20px 16px; color:var(--tb-encre-70); font-size:.8rem; }
.tb-golf-carte-performance { padding:20px 24px; border-top:1px solid var(--tb-ligne); border-bottom:1px solid var(--tb-ligne); background:var(--tb-ivoire-alt); }
.tb-golf-carte-performance__titre { margin:0; color:var(--tb-vert); font-size:.85rem; font-weight:600; }
.tb-golf-moyenne-trou { margin:4px 0 0; color:var(--tb-vert); font-family:var(--tb-font-titre); font-size:clamp(2.1rem,3.5vw,2.8rem); line-height:1.15; font-variant-numeric:tabular-nums; }
.tb-golf-carte-performance__absence { margin:3px 0 0; color:var(--tb-encre-70); font-size:.88rem; }
.tb-golf-carte-performance__couverture { margin:10px 0 0; color:var(--tb-encre); font-size:.82rem; font-weight:600; }
.tb-golf-carte-performance__perimetre { margin:4px 0 0; color:var(--tb-encre-70); font-size:.72rem; line-height:1.45; }
.tb-golf-stat--principale { background:var(--tb-vert); }
.tb-golf-stat--principale dt,.tb-golf-stat--principale dd { color:var(--tb-blanc); }
.tb-golf-stat--principale dd { font-size:1.65rem; }
.tb-golf-score-manquant { margin:15px 0 0; padding:14px 16px; border-left:3px solid var(--tb-vert); background:var(--tb-ivoire-alt); color:var(--tb-vert); font-size:.88rem; line-height:1.5; }
body[data-golf-v2="oui"] .tb-filtres { position:relative; top:auto; }
body[data-golf-v2="oui"] .tb-filtres__inner { display:block; }
.tb-golf-alerte { color:#833a18; font-weight:600; }
.tb-analytics-page { margin-block:48px 72px; }
.tb-analytics-acces { margin-top:20px; }
.tb-analytics-raccourcis { display:flex; flex-wrap:wrap; gap:8px 18px; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--tb-ligne); }
.tb-analytics-raccourci { min-height:44px; padding:8px 0; color:var(--tb-vert); text-decoration:underline; text-underline-offset:4px; font:inherit; font-size:.88rem; font-weight:600; }
.tb-analytics-raccourci:focus-visible { outline:3px solid var(--tb-vert); outline-offset:3px; }
.tb-analytics-comparateur { padding-top:32px; border-top:1px solid var(--tb-ligne-forte); }
.tb-analytics-comparateur>.tb-golf-note { max-width:70ch; margin-bottom:24px; }
.tb-analytics-filtres { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tb-analytics-comparaison-cartes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:20px 0; }
.tb-analytics-comparaison-joueur { min-width:0; padding:20px 0; border-top:3px solid currentColor; }
.tb-analytics-comparaison-joueur h3 { margin:0 0 15px; font-size:1.4rem; overflow-wrap:anywhere; }
.tb-analytics-mesures { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; color:var(--tb-encre); }
.tb-analytics-mesures dt { font-size:.8rem; color:var(--tb-encre-70); }
.tb-analytics-mesures dd { margin:5px 0 0; font-size:1.35rem; font-weight:600; font-variant-numeric:tabular-nums; }
.tb-analytics-ecart,.tb-analytics-total { color:var(--tb-vert); font-weight:600; font-size:1.05rem; }
.tb-analytics-chart { margin:24px 0; padding:0; min-width:0; }
.tb-analytics-chart__titre { margin:0 0 12px; color:var(--tb-encre); font-weight:600; font-size:1rem; text-align:left; }
.tb-analytics-chart svg { display:block; width:100%; max-width:720px; height:auto; max-height:none; overflow:visible; background:var(--tb-blanc); border:1px solid var(--tb-ligne); border-radius:4px; }
.tb-analytics-axe { fill:var(--tb-encre-70); font-family:var(--tb-font-texte, sans-serif); font-size:14px; }
.tb-analytics-grille { stroke:var(--tb-ligne); stroke-width:1; }
.tb-analytics-serie-0 { color:var(--tb-vert); }
.tb-analytics-serie-1 { color:#355d7a; }
.tb-analytics-ligne { stroke:currentColor; stroke-width:2.5; }
.tb-analytics-ligne.tb-analytics-serie-1 { stroke-dasharray:7 5; }
.tb-analytics-cible { fill:transparent; cursor:pointer; }
.tb-analytics-point-visible { fill:currentColor; stroke:var(--tb-blanc); stroke-width:1.5; pointer-events:none; }
.tb-analytics-point.est-selectionne .tb-analytics-point-visible { r:6; stroke:var(--tb-encre); stroke-width:2; }
.tb-analytics-valeur { fill:currentColor; font-size:15px; font-weight:600; pointer-events:none; }
.tb-analytics-lecture { min-height:3.3em; padding:12px 0; margin:0; color:var(--tb-encre); font-size:.95rem; line-height:1.6; overflow-wrap:anywhere; }
.tb-analytics-commandes { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:10px; align-items:end; margin-bottom:12px; }
.tb-analytics-commandes button { min-height:44px; padding:8px; border:1px solid var(--tb-ligne-forte); background:var(--tb-blanc); border-radius:4px; color:var(--tb-vert); font-size:1.2rem; cursor:pointer; }
.tb-analytics-commandes button:disabled { opacity:.45; cursor:default; }
.tb-analytics-observation { min-width:0; display:flex; flex-direction:column; gap:4px; font-size:.78rem; color:var(--tb-encre-70); }
.tb-analytics-observation select { width:100%; min-width:0; min-height:44px; padding:8px; background:var(--tb-blanc); border:1px solid var(--tb-ligne-forte); border-radius:4px; font:inherit; font-size:16px; color:var(--tb-encre); }
.tb-analytics-legende { display:flex; flex-wrap:wrap; gap:12px 24px; list-style:none; margin:12px 0 0; padding:0; font-size:.9rem; }
.tb-analytics-legende li::before { content:''; display:inline-block; width:24px; margin-right:8px; border-top:3px solid currentColor; vertical-align:middle; }
.tb-analytics-legende .tb-analytics-serie-1::before { border-top-style:dashed; }
.tb-analytics-donnees,.tb-analytics-trous { border-top:1px solid var(--tb-ligne); margin-top:18px; }
.tb-analytics-donnees summary,.tb-analytics-trous summary { min-height:44px; padding:12px 0; color:var(--tb-vert); font-weight:600; cursor:pointer; font-size:.9rem; }
.tb-analytics-table th,.tb-analytics-table td { padding:12px; font-size:.85rem; text-align:left; }
.tb-analytics-table td:last-child { white-space:nowrap; text-align:right; }
.tb-analytics-grille-trous { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; gap:12px; margin:16px 0; }
.tb-analytics-trou { min-width:0; padding:14px; border:1px solid var(--tb-ligne); background:var(--tb-blanc); border-radius:4px; }
.tb-analytics-trou h5 { font-size:.85rem; margin:0 0 8px; color:var(--tb-encre-70); }
.tb-analytics-trou strong { display:block; color:var(--tb-vert); font-size:1.2rem; margin-bottom:8px; font-variant-numeric:tabular-nums; }
.tb-analytics-trou span { display:block; color:var(--tb-encre-70); font-size:.78rem; line-height:1.5; }
.tb-analytics-distribution { color:var(--tb-encre); font-size:.9rem; line-height:1.7; }
.tb-analytics-chart :focus-visible,.tb-analytics-trous :focus-visible { outline:3px solid var(--tb-vert); outline-offset:3px; }
@media(max-width:600px) {
  .tb-golf-filtre select,.tb-golf-filtre input { font-size:16px; }
  .tb-analytics-filtres { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tb-analytics-filtres>.tb-golf-filtre:nth-child(3) { grid-column:1/-1; }
  .tb-analytics-comparaison-cartes { gap:14px; }
  .tb-analytics-mesures { grid-template-columns:1fr; gap:14px; }
  .tb-analytics-mesures dd { font-size:1.2rem; }
  .tb-analytics-grille-trous { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .tb-analytics-commandes { gap:6px; }
  .tb-analytics-chart svg { width:100%; }
  .tb-golf-filtres { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .tb-golf-stats { gap:8px; }
  .tb-golf-stat { padding:12px 9px; }
  .tb-golf-stat dd { font-size:1.08rem; }
}
/* Répond à la largeur de la carte, y compris dans le tiroir d'un joueur. */
@container (max-width:600px) {
  .tb-golf-partie__entete { padding:20px 16px; }
  .tb-golf-partie__bandeau { gap:8px; margin-bottom:14px; }
  .tb-golf-partie__reperes { gap:20px; margin-top:16px; padding-top:12px; }
  .tb-golf-score-table thead th { padding:12px 8px; font-size:.7rem; letter-spacing:0; }
  .tb-golf-score-table .tb-golf-score__rang { width:40px; padding-inline:6px; }
  .tb-golf-score-table .tb-golf-score__valeur { width:64px; }
  .tb-golf-score-table .tb-golf-score__classement { width:70px; padding-right:16px; }
  .tb-golf-score>td,.tb-golf-score>th { padding:14px 8px; }
  .tb-golf-score__identite>strong { font-size:.88rem; }
  .tb-golf-score__identite .tb-golf-note { font-size:.7rem; }
  .tb-golf-score__rang span { font-size:.85rem; }
  .tb-golf-score__valeur>strong { font-size:1.3rem; }
  .tb-golf-score__detail>td { padding-inline:16px; }
  .tb-golf-partie__pied { padding:12px 16px; }
  .tb-golf-partie>.tb-golf-note { padding:12px 16px; font-size:.75rem; }
  .tb-golf-trous__grille { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .tb-golf-trou { display:grid; grid-template-columns:1fr auto; gap:5px 12px; padding:10px 12px; }
  .tb-golf-trou strong { grid-column:2; grid-row:1 / 3; }
  .tb-golf-trou__par { grid-column:1; }
}
@container (max-width:330px) {
  .tb-golf-score-table .tb-golf-score__rang { width:40px; }
  .tb-golf-score-table .tb-golf-score__valeur { width:50px; }
  .tb-golf-score-table .tb-golf-score__classement { width:56px; padding-right:10px; }
  .tb-golf-score-table thead th { font-size:.7rem; letter-spacing:0; }
  .tb-golf-score__identite>strong { font-size:.82rem; }
  .tb-golf-trou { padding:10px 8px; gap:4px 8px; }
}
@media(max-width:360px) {
  .tb-golf-stats { grid-template-columns:1fr; }
  .tb-golf-stat { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .tb-golf-stat dd { margin:0; flex-shrink:0; }
  .tb-golf-vues button { padding:10px 12px; font-size:.85rem; }
}
