/* ==========================================================================
   Gestion des tirs (/tirs, décision D60) : tableau de tous les tirs d'un
   événement + panneau du tir choisi. Complète app.css (mêmes règles : boutons
   d'au moins 48 px, 56 px visés ; animations sur transform / opacity seulement).
   Sur ordinateur : tableau + panneau à droite. Quand la place manque (téléphone) :
   liste de cartes, et le panneau prend tout l'écran.
   ========================================================================== */

/* (le cadre des pages donne sa largeur au contenu par ses marges, d'après --large : 1200 px ; ici 1400) */
.contenu.contenu-large { --large: 1400px; max-width: none; }

/* ---------- Haut de la page ---------- */
/* Peu de place (téléphone) : titre + heure, puis l'événement, puis les compteurs.
   Beaucoup de place ([data-largeur="large"], posé par la page) : tout sur une ligne. */
.g-tete {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; margin-bottom: 12px;
  grid-template-areas: "titre etat" "sous sous" "compteurs compteurs";
}
.g-tete h1 { grid-area: titre; margin: 0; font-size: clamp(1.7rem, 6.4vw, 2.5rem); }
.g-tete-sous { grid-area: sous; margin: 0; overflow-wrap: anywhere; }
.g-tete-etat { grid-area: etat; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
.g-direct {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 2px 12px; border-radius: 999px;
  font-family: var(--police-titre); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em;
  background: var(--surface-2); color: var(--texte-doux); white-space: nowrap;
}
.g-direct::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.g-direct.est-direct { background: #e8f3e3; color: var(--vert-fonce); }
.g-direct.est-coupe { background: #fbe9e6; color: var(--rouge); }
.g-horloge { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.g-horloge .horloge { font-size: 1.55rem; font-weight: 800; }
.g-horloge small { color: var(--texte-doux); font-size: .8rem; white-space: nowrap; }

.g-compteurs { grid-area: compteurs; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.g-compteur {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  background: var(--surface); border-radius: var(--rayon); padding: 6px 8px 7px 10px; box-shadow: var(--ombre);
  border-left: 5px solid var(--bordure);
}
.g-compteur .valeur { font-family: var(--police-titre); font-weight: 800; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.g-compteur .legende { color: var(--texte-doux); font-weight: 600; font-size: .82rem; line-height: 1.12; overflow-wrap: anywhere; }
.g-compteur-a-venir { border-left-color: var(--jaune); }
.g-compteur-tires { border-left-color: var(--vert-fonce); }
.g-compteur-pas-partis { border-left-color: var(--rouge); }
.g-compteur-annules { border-left-color: #6a675e; }

.g-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.g-choix-evenement { flex: 1 1 100%; min-width: 0; display: flex; align-items: center; gap: 10px; }
.g-choix-evenement > span { flex: none; font-weight: 600; color: var(--texte-doux); }
.g-choix-evenement select { flex: 1 1 auto; min-width: 0; min-height: var(--bouton-petit); padding: 8px 14px; font-size: 1.08rem; text-overflow: ellipsis; }
.g-barre > .btn { flex: 1 1 100%; text-align: center; }
.g-filtres.segments { margin: 0; display: flex; flex: 1 1 100%; }
.g-filtres.segments button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; }
.g-nombre {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: rgba(17, 17, 17, .1); font-size: .95rem; font-variant-numeric: tabular-nums;
}
.segments button[aria-pressed="true"] .g-nombre { background: rgba(251, 225, 34, .22); }
.g-aide-liste { display: none; margin: 0 0 4px; font-size: .98rem; }

@media (min-width: 640px) {
  .g-tete-etat { flex-direction: row; align-items: center; gap: 14px; }
  .g-direct { min-height: 36px; padding: 4px 14px; font-size: 1.05rem; }
  .g-horloge .horloge { font-size: 1.9rem; }
  .g-compteur { flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 14px; border-left-width: 6px; }
  .g-compteur .legende { font-size: 1rem; }
  .g-choix-evenement { flex: 1 1 320px; max-width: 520px; }
  .g-barre > .btn { flex: 0 1 auto; }
  .g-filtres.segments { flex: 0 1 auto; display: inline-flex; margin-left: auto; }
  .g-filtres.segments button { padding: 0 16px; }
  .g-aide-liste { display: block; }
}
@media (min-width: 900px) { .contenu.contenu-large { padding-top: 20px; } }
/* Grand écran : titre, compteurs, « En direct » et heure sur une seule ligne. */
/* Les compteurs gardent leur largeur ; c'est le nom de l'événement (s'il est long) qui passe à la ligne. */
.g-page[data-largeur="large"] .g-tete {
  grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 24px;
  grid-template-areas: "titre compteurs etat" "sous compteurs etat";
}
.g-page[data-largeur="large"] .g-compteurs { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.g-page[data-largeur="large"] .g-compteur { flex: none; padding: 7px 14px 7px 12px; }
.g-page[data-largeur="large"] .g-compteur .legende { white-space: nowrap; }

/* ---------- Tableau + panneau ---------- */
.g-corps { display: block; }
.g-liste { min-width: 0; }
.g-liste .vide { background: var(--surface); border-radius: var(--rayon); }

.g-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.g-table thead th {
  position: sticky; top: var(--g-haut, 0px); z-index: 2; background: var(--fond);
  text-align: left; vertical-align: bottom; padding: 6px 10px;
  font-family: var(--police-titre); font-weight: 700; font-size: .98rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--texte-doux); white-space: nowrap;
}
.g-tir { cursor: pointer; }
.g-tir > td { background: var(--surface); padding: 5px 10px; vertical-align: middle; }
.g-tir > td:first-child { border-left: 6px solid transparent; border-radius: var(--rayon) 0 0 var(--rayon); }
.g-tir > td:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; text-align: right; }
.g-tir:hover > td { background: #fffdf0; }
.g-tir.est-courant > td { box-shadow: inset 0 2px 0 var(--jaune), inset 0 -2px 0 var(--jaune); }
.g-tir.est-courant > td:first-child { border-left-color: var(--jaune); }
.g-tir.est-courant > td:last-child { box-shadow: inset 0 2px 0 var(--jaune), inset 0 -2px 0 var(--jaune), inset -2px 0 0 var(--jaune); }
.g-tir.est-ouvert > td { background: #fffbe0; }
.g-tir.est-ouvert > td:first-child { border-left-color: var(--noir); }
.g-jour > th {
  text-align: left; padding: 14px 10px 2px; font-family: var(--police-titre); font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; color: var(--texte-doux);
}
.g-jour > th::first-letter { text-transform: uppercase; }

.g-heure { font-family: var(--police-titre); font-weight: 800; font-size: 1.55rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.g-heure-reelle { font-family: var(--police-titre); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.g-petit { display: block; color: var(--texte-doux); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.g-retard { display: block; color: var(--rouge); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.g-retard:empty { display: none; }
.g-nom { font-weight: 700; font-size: 1.08rem; overflow-wrap: anywhere; }
.g-c-nom .pastille { margin-left: 8px; vertical-align: middle; }
.g-c-etat .pastille { white-space: nowrap; }
.g-c-charge .charge-info { white-space: nowrap; font-weight: 500; }
.g-c-charge .charge-a-choisir, .g-p-infos .charge-a-choisir { font-size: .95rem; }
.g-note-texte {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  max-width: 260px; color: var(--texte-doux); font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere;
}
.g-etiquette { display: none; }
.g-ouvrir { gap: 4px; padding: 0 10px 0 14px; }
.g-ouvrir svg { width: 20px; height: 20px; }

/* Appréciation du tir */
.g-appr {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--police-titre); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em;
}
.g-appr-bon { background: #e8f3e3; color: var(--vert-fonce); }
.g-appr-moyen { background: #fff1c2; color: #6b5300; }
.g-appr-faible { background: #fbe9e6; color: #8a1c12; }

/* Moins de place (panneau ouvert) : la note, puis l'appréciation, se lisent dans le panneau. */
.g-liste[data-largeur="moyen"] .g-c-note,
.g-liste[data-largeur="serre"] .g-c-note,
.g-liste[data-largeur="serre"] .g-c-appreciation { display: none; }
.g-liste[data-largeur="moyen"] .g-ouvrir-texte,
.g-liste[data-largeur="serre"] .g-ouvrir-texte,
.g-liste[data-largeur="cartes"] .g-ouvrir-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-liste[data-largeur="moyen"] .g-ouvrir,
.g-liste[data-largeur="serre"] .g-ouvrir,
.g-liste[data-largeur="cartes"] .g-ouvrir { min-width: var(--bouton-petit); padding: 0; }
.g-liste[data-largeur="moyen"] .g-tir > td, .g-liste[data-largeur="serre"] .g-tir > td { padding-left: 8px; padding-right: 8px; }
.g-liste[data-largeur="moyen"] .g-table thead th, .g-liste[data-largeur="serre"] .g-table thead th { padding-left: 8px; padding-right: 8px; white-space: normal; }

/* La ligne qui vient de changer (ici ou ailleurs) se signale un court instant. */
/* (lot 9a) Un fondu seulement : plus de glissement de côté. */
@keyframes g-signal { 0% { opacity: .15; } 55% { opacity: 1; } 100% { opacity: 1; } }
.g-tir.g-change > td { animation: g-signal 520ms var(--sortie) both; }

/* ---------- Liste de cartes (téléphone, ou très peu de place) ---------- */
.g-liste[data-largeur="cartes"] .g-table,
.g-liste[data-largeur="cartes"] .g-table tbody { display: block; }
.g-liste[data-largeur="cartes"] .g-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g-liste[data-largeur="cartes"] .g-tir {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start;
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  border-left: 6px solid transparent; padding: 12px 12px 12px 10px; margin-bottom: 8px;
}
.g-liste[data-largeur="cartes"] .g-tir > td { display: block; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; min-width: 0; }
.g-liste[data-largeur="cartes"] .g-tir.est-courant { border-left-color: var(--jaune); box-shadow: 0 0 0 2px var(--jaune), var(--ombre); }
.g-liste[data-largeur="cartes"] .g-tir.est-ouvert { background: #fffbe0; border-left-color: var(--noir); }
.g-liste[data-largeur="cartes"] .g-tir.g-change { animation: g-signal 520ms var(--sortie) both; }
.g-liste[data-largeur="cartes"] .g-tir.g-change > td { animation: none; }
/* (lot 8a) L'ordre change (tir décalé, filtre, tir marqué ailleurs) : les lignes GLISSENT vers leur nouvelle place
   au lieu de sauter. L'écart (--gx, --gy) et la classe sont posés par public/js/glisse.js, puis retirés. */
@keyframes g-glisse-ligne { from { transform: translate3d(var(--gx, 0), var(--gy, 0), 0); } to { transform: none; } }
.g-tir.g-glisse > td { animation: g-glisse-ligne 260ms var(--sortie) both; }
.g-liste[data-largeur="cartes"] .g-tir.g-glisse { animation: g-glisse-ligne 260ms var(--sortie) both; }
.g-liste[data-largeur="cartes"] .g-tir.g-glisse > td { animation: none; }
.g-liste[data-largeur="cartes"] .g-c-prevue { grid-column: 1; grid-row: 1 / span 3; }
.g-liste[data-largeur="cartes"] .g-c-prevue .g-heure { font-size: 1.7rem; }
.g-liste[data-largeur="cartes"] .g-c-prevue .g-petit { font-size: .8rem; }
.g-liste[data-largeur="cartes"] .g-retard { white-space: normal; font-size: .85rem; line-height: 1.15; }
.g-liste[data-largeur="cartes"] .g-c-nom { grid-column: 2; grid-row: 1; }
.g-liste[data-largeur="cartes"] .g-c-nom .pastille { margin: 4px 0 0; display: flex; width: fit-content; }
.g-liste[data-largeur="cartes"] .g-tir > td.g-c-etat { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.g-liste[data-largeur="cartes"] .g-c-etat .g-petit { white-space: normal; max-width: 130px; }
.g-liste[data-largeur="cartes"] .g-c-tireur { grid-column: 2; grid-row: 2; color: var(--texte-doux); }
.g-liste[data-largeur="cartes"] .g-c-charge { grid-column: 2; grid-row: 3; color: var(--texte-doux); }
.g-liste[data-largeur="cartes"] .g-c-ouvrir { grid-column: 3; grid-row: 2 / span 2; align-self: end; justify-self: end; }
.g-liste[data-largeur="cartes"] .g-tir > td.g-c-reelle,
.g-liste[data-largeur="cartes"] .g-tir > td.g-c-appreciation,
.g-liste[data-largeur="cartes"] .g-tir > td.g-c-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; }
.g-liste[data-largeur="cartes"] .g-tir > td.est-vide { display: none; }
.g-liste[data-largeur="cartes"] .g-c-reelle .g-etiquette,
.g-liste[data-largeur="cartes"] .g-c-appreciation .g-etiquette,
.g-liste[data-largeur="cartes"] .g-c-note .g-etiquette { display: inline; font-weight: 600; color: var(--texte-doux); font-size: .95rem; }
.g-liste[data-largeur="cartes"] .g-etiquette::after { content: ' :'; }
.g-liste[data-largeur="cartes"] .g-c-reelle .g-petit { display: inline; }
.g-liste[data-largeur="cartes"] .g-note-texte { max-width: none; flex: 1 1 100%; }
.g-liste[data-largeur="cartes"] .g-nom { hyphens: auto; overflow-wrap: break-word; }
/* Très petit téléphone : l'état passe sous le nom (le nom garde toute la largeur). */
@media (max-width: 359px) {
  .g-liste[data-largeur="cartes"] .g-tir { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .g-liste[data-largeur="cartes"] .g-c-prevue .g-heure { font-size: 1.5rem; }
  .g-liste[data-largeur="cartes"] .g-c-prevue { grid-row: 1 / span 4; }
  .g-liste[data-largeur="cartes"] .g-c-nom { grid-column: 2 / -1; }
  .g-liste[data-largeur="cartes"] .g-tir > td.g-c-etat { grid-column: 2 / -1; grid-row: 2; justify-self: start; text-align: left; margin: 2px 0; }
  .g-liste[data-largeur="cartes"] .g-c-tireur { grid-row: 3; }
  .g-liste[data-largeur="cartes"] .g-c-charge { grid-row: 4; }
  .g-liste[data-largeur="cartes"] .g-c-ouvrir { grid-row: 3 / span 2; }
}
.g-liste[data-largeur="cartes"] .g-jour, .g-liste[data-largeur="cartes"] .g-jour > th { display: block; }
.g-liste[data-largeur="cartes"] .g-jour > th { padding: 12px 2px 6px; }

/* ---------- Panneau d'un tir ---------- */
.g-panneau {
  --g-marge: 18px;
  background: var(--surface); border-radius: var(--rayon-grand); box-shadow: var(--ombre-forte);
  padding: 0 var(--g-marge) 20px; min-width: 0; overflow-wrap: anywhere;
}
.g-panneau:focus { outline: none; }
/* (lot 9a) Le panneau apparaît en fondu (plus de glissement), la même durée que partout. */
@keyframes g-glisse { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 900px) {
  .g-corps.avec-panneau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 16px; align-items: start; }
  /* La hauteur (--g-panneau-h) est posée par la page : le panneau finit toujours au bas de l'écran. */
  .g-panneau {
    position: sticky; top: calc(var(--g-haut, 0px) + 12px);
    max-height: var(--g-panneau-h, calc(100dvh - var(--g-haut, 0px) - 24px)); overflow-y: auto; overscroll-behavior: contain;
    animation: g-glisse var(--fondu) var(--courbe) both;
  }
}
@media (max-width: 899px) {
  /* Téléphone : le panneau prend tout l'écran, par-dessus le menu. */
  .g-panneau {
    --g-marge: 16px;
    position: fixed; inset: 0; z-index: 60; border-radius: 0; box-shadow: none;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    animation: apparait var(--fondu) var(--courbe) both;
  }
  html.g-panneau-ouvert, html.g-panneau-ouvert body { overflow: hidden; }
  /* Le contenu défile dans <main>, qui a son propre plan (transition entre les pages) : tant que le panneau est
     ouvert, on le lui retire, sinon l'en-tête et la barre du bas passeraient PAR-DESSUS le panneau plein écran. */
  html.g-panneau-ouvert body > main { view-transition-name: none; overflow: hidden; }
}

/* L'en-tête du panneau reste en haut ; il couvre toute la largeur (rien ne dépasse sur ses côtés quand on défile). */
.g-p-tete {
  position: sticky; top: 0; z-index: 3; background: var(--surface);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 0 calc(var(--g-marge) * -1); padding: 16px var(--g-marge) 10px; box-shadow: 0 1px 0 var(--bordure);
}
/* Ce qu'on fait venir à l'écran (message, question) s'arrête SOUS cet en-tête. */
.g-alerte, .g-confirmer, .g-bloc-corriger form { scroll-margin-top: 112px; scroll-margin-bottom: 12px; }
.g-p-titres { min-width: 0; }
.g-p-sur { margin: 0 0 2px; color: var(--texte-doux); font-size: 1rem; }
.g-p-sur strong { color: var(--texte); font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.g-p-sur .g-petit { display: inline; }
.g-p-tete h2 { margin: 0; font-size: 1.75rem; }
/* Le titre reçoit le clavier à l'ouverture (lecteurs d'écran) : ce n'est pas un bouton, pas de cadre. */
.g-p-tete h2:focus, .g-p-tete h2:focus-visible { outline: none; }
.g-p-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 6px; }
.g-p-heure { font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.g-p-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0 0 12px; }
.g-alerte { margin: 12px 0; }
.g-alerte a { font-weight: 700; }

.g-bloc { border-top: 1px solid var(--bordure); padding: 16px 0 6px; }
.g-bloc > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.g-bloc .etiquette { margin: 0 0 8px; }
.g-aide { color: var(--texte-doux); font-size: .95rem; margin: 8px 0 10px; }
.g-hors-bloc { border-top: 1px solid var(--bordure); padding-top: 14px; }
.g-avis { background: #fffbe0; border-left: 6px solid var(--jaune); border-radius: var(--rayon); padding: 10px 12px; margin: 0 0 10px; font-weight: 500; }
.g-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-gros { min-height: 76px; font-size: 1.45rem; line-height: 1.05; padding: 6px 10px; text-align: center; }
.g-suite { display: grid; gap: 10px; margin: 14px 0 6px; }

/* Boutons « à choisir » : cause, appréciation. */
.g-choix-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.g-choix { --btn-fond: var(--surface-2); }
.g-choix.est-choisi { --btn-fond: var(--noir); --btn-texte: var(--jaune); }
.g-choix.est-choisi::before { content: '✔'; font-family: var(--police); font-size: 1rem; }
.g-appreciations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-appr-btn { padding: 0 8px; border-radius: var(--rayon); }
.g-appr-btn.g-appr-bon, .g-appr-btn.g-appr-moyen, .g-appr-btn.g-appr-faible { background: var(--btn-fond); color: var(--btn-texte); }
.g-appr-btn.g-appr-bon.est-choisi { --btn-fond: var(--vert-fonce); --btn-texte: var(--blanc); }
.g-appr-btn.g-appr-moyen.est-choisi { --btn-fond: var(--jaune); --btn-texte: var(--noir); }
.g-appr-btn.g-appr-faible.est-choisi { --btn-fond: var(--rouge); --btn-texte: var(--blanc); }
.g-e-appreciation { margin-top: 18px !important; }

/* Décaler */
.g-case { margin: 0 0 10px; min-height: var(--bouton-petit); }
.g-decaler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g-btn-decaler { flex-direction: column; gap: 0; min-height: 64px; padding: 4px 2px; line-height: 1.1; }
.g-btn-decaler small { font-family: var(--police); font-weight: 500; font-size: .78rem; text-transform: none; letter-spacing: 0; min-height: 1em; }
@media (max-width: 380px) { .g-decaler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-form-ligne { margin-top: 14px; }
.g-form-ligne > label { display: block; font-weight: 600; margin-bottom: 6px; }
.g-form-champs { display: flex; flex-wrap: wrap; gap: 8px; }
.g-form-champs input { flex: 0 0 132px; }
.g-form-champs .btn { flex: 1 1 150px; min-height: var(--bouton); }
.g-panneau input[type="time"] {
  width: 100%; min-height: var(--bouton); padding: 6px 12px;
  font-family: var(--police-titre); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums;
  color: var(--texte); background: var(--surface);
  border: 2px solid var(--bordure); border-radius: var(--rayon);
  -webkit-appearance: none; appearance: none;
}
.g-panneau input[type="time"]:focus { outline: none; border-color: var(--noir); box-shadow: 0 0 0 4px rgba(251, 225, 34, .55); }

/* Question posée sur place (2ᵉ bouton) */
.g-confirmer { background: #fffbe0; border: 2px solid var(--jaune); border-radius: var(--rayon); padding: 12px; }
.g-confirmer > p { margin: 0 0 10px; font-weight: 600; }
.g-confirmer-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-confirmer-boutons .btn { padding: 0 8px; font-size: 1.15rem; line-height: 1.05; text-align: center; }

/* Corriger (responsable) : replié tant qu'on n'en a pas besoin */
.g-bloc-corriger form { margin-top: 12px; }
.g-bloc-corriger fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.g-etats { display: grid; gap: 8px; }
.g-etat-choix { min-height: var(--bouton-petit); flex-wrap: wrap; }
.g-etat-choix input { accent-color: var(--noir); flex: none; }
.g-champ-heure input { max-width: 170px; }

/* Note */
.g-champ-note { margin-bottom: 10px; }
.g-champ-note textarea { min-height: 96px; }

/* Historique */
.g-historique { list-style: none; margin: 0; padding: 0; }
.g-historique > li { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--surface-2); }
.g-historique > li:first-child { border-top: 0; padding-top: 0; }
.g-h-texte b { font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.g-h-texte small { display: block; color: var(--texte-doux); font-size: .9rem; }
.g-historique > li.est-annulee .g-h-texte > span { text-decoration: line-through; color: var(--texte-doux); }
.g-historique .btn { justify-self: start; }

/* Une action est en route : rien d'autre ne part. */
.g-panneau.g-occupe .btn:not(:disabled), .g-panneau.g-occupe input, .g-panneau.g-occupe textarea, .g-panneau.g-occupe .fermer { pointer-events: none; opacity: .55; }

/* (lot 9a) Ordinateur (900 px et plus) : la colonne du panneau est TOUJOURS là. Sans tir ouvert, elle
   montre une phrase d'aide ; ouvrir un tir y met le panneau, sans rétrécir ni décaler le tableau. */
.g-panneau-place { display: none; }
@media (min-width: 900px) {
  .g-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 16px; align-items: start; }
  .g-panneau-place:not([hidden]) {
    display: block; position: sticky; top: calc(var(--g-haut, 0px) + 12px); margin-top: 6px;
    padding: 18px; border: 2px dashed var(--bordure); border-radius: var(--rayon-grand); color: var(--texte-doux);
  }
  .g-corps.avec-panneau .g-panneau-place { display: none; }
  .g-aide-liste { display: none; }
}
/* (lot 9a) Les blocs gris s'effacent et la page des tirs apparaît d'un seul fondu, à sa place. */
/* (« backwards » : une fois le fondu fini, plus rien ne retient le panneau plein écran sous l'en-tête) */
.g-page:not([hidden]) { animation: apparait var(--fondu) var(--courbe) backwards; }
