/*
 * Gestion des maillots, Les Pics Verts.
 * Mêmes principes que MonGuideRoller.fr (calme, lisible, rapide), aux couleurs du club :
 * vert du pic pour les actions et les numéros pris, jaune du bec pour les demandes en cours,
 * rouge de la crête réservé aux actions destructrices.
 */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --mgr-ux-accent: #00512f; /* visite guidée et palette (mgr-ux.css) : vert du club */
  color-scheme: light;
  --vert: #00512f;
  --vert-fonce: #003820;
  --vert-clair: #e7f1eb;
  --jaune: #f8b800;
  --jaune-clair: #fff3c7;
  --jaune-texte: #6b4d00;
  --rouge: #c8101e;
  --rouge-clair: #fdeeee;
  --rouge-texte: #8a0d16;
  --rouge-filet: #e6b3b7;
  --texte: #171a1a;
  --texte-2: #5b6461;
  --filet: #e3e7e4;
  --filet-fort: #cfd5d1;
  --fond: #ffffff;
  --fond-discret: #f5f7f5;
  --fond-survol: #ebefec;
  --hachure: #e9ecea;
  --hachure-clair: #eef0ef;
  --sur-vert: #ffffff;
  --rayon: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: 28px; font-stretch: 118%; font-weight: 600; }
h2 { font-size: 22px; margin-top: 56px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; text-wrap: pretty; }

a { color: var(--vert); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 4px; }

code { font-size: 15px; background: var(--fond-discret); padding: 1px 5px; border-radius: 4px; }

.nombre { font-variant-numeric: tabular-nums; }
.discret { color: var(--texte-2); }
.sans-retour { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
[hidden] { display: none !important; }

.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--fond); padding: 8px 12px; border-radius: var(--rayon);
}
.evitement:focus { top: 8px; }

/* --- En-tête : vert du maillot, liseré jaune ----------------------------------------- */

.entete {
  background: var(--vert-fonce);
  color: #fff;
  border-bottom: 4px solid var(--jaune);
  padding-top: env(safe-area-inset-top);
}
.entete__in, .sous-nav__in, .pied__in, .page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.entete__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.marque {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.marque img { width: 66px; height: 40px; object-fit: contain; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__club { font-weight: 600; font-stretch: 118%; font-size: 18px; letter-spacing: -0.01em; }
.marque__outil { font-size: 14px; color: #cfe3d7; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-right: -10px; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 10px 10px; border-radius: var(--rayon);
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--jaune); border-radius: 0; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(255, 255, 255, 0.1); }
}
.pastille {
  background: var(--jaune); color: var(--vert-fonce);
  font-size: 13px; font-weight: 600; line-height: 1;
  padding: 4px 7px; border-radius: var(--rayon); font-variant-numeric: tabular-nums;
}

.sous-nav { background: var(--fond-discret); border-bottom: 1px solid var(--filet); }
.sous-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sous-nav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
.sous-nav nav a {
  color: var(--texte); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 12px 10px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
}
.sous-nav nav a[aria-current] { color: var(--vert); box-shadow: inset 0 -2px 0 var(--vert); }
.compteur {
  background: var(--jaune); color: var(--vert-fonce); font-size: 12px; font-weight: 600;
  border-radius: var(--rayon); padding: 2px 6px; line-height: 1.2; font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .entete__in { padding-bottom: 0; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 0 -10px; }
  .nav a { white-space: nowrap; font-size: 15px; }
}

/* --- Page --------------------------------------------------------------------------- */

.page { flex: 1; padding-top: 40px; padding-bottom: 80px; }
.lecture { max-width: 720px; }
.lecture--etroite { max-width: 480px; }
.chapo { font-size: 18px; color: var(--texte-2); max-width: 65ch; }
.fil { font-size: 15px; margin-bottom: 24px; }
.fil a::before { content: "‹ "; }

.intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.intro__texte { max-width: 640px; }
.intro__texte h1 { font-size: 40px; }
.intro__logo {
  width: 220px; height: auto; flex-shrink: 0; margin-top: -16px;
  /* filet sombre qui fait ressortir le tour blanc du logo sur le fond blanc */
  filter: drop-shadow(0 0 1px rgba(0, 56, 32, 0.9)) drop-shadow(0 0 0.5px rgba(0, 56, 32, 0.9));
}
@media (max-width: 720px) {
  .intro__logo { display: none; }
  .intro__texte h1 { font-size: 32px; }
}

.titre-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.titre-actions h1 { margin: 0; }

/* --- Messages ----------------------------------------------------------------------- */

.message {
  padding: 12px 16px; border-radius: var(--rayon); margin-bottom: 24px;
  border: 1px solid var(--filet); background: var(--fond-discret);
  animation: apparition 220ms var(--ease-out);
}
.message--succes { background: var(--vert-clair); border-color: var(--vert-clair); color: var(--vert-fonce); }
.message--erreur { background: var(--rouge-clair); border-color: var(--rouge-clair); color: var(--rouge-texte); }
.avertissement { color: var(--jaune-texte); background: var(--jaune-clair); padding: 6px 10px; border-radius: var(--rayon); display: inline-block; }
@keyframes apparition { from { opacity: 0; transform: translateY(4px); } }

/* --- Boutons et champs -------------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  background: var(--vert); color: var(--sur-vert);
  border: 1px solid var(--vert); border-radius: var(--rayon);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.bouton:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--vert-fonce); text-decoration: none; }
  .bouton--secondaire:hover { background: var(--fond-discret); }
  .bouton--danger:hover { background: var(--rouge-clair); }
}
.bouton--secondaire { background: var(--fond); color: var(--texte); border-color: var(--filet-fort); }
.bouton--danger { background: var(--fond); color: var(--rouge); border-color: var(--rouge-filet); }
.bouton--petit { min-height: 36px; padding: 0 12px; font-size: 15px; }
.bouton[data-armed] { background: var(--rouge); border-color: var(--rouge); color: var(--sur-vert); }

.lien-bouton {
  background: none; border: 0; padding: 8px 4px; min-height: 40px;
  font: inherit; font-size: 15px; color: var(--vert); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lien-bouton--danger { color: var(--rouge); }
.lien-bouton[data-armed] { font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; }
.actions--serrees { gap: 8px; margin: 0; justify-content: flex-end; }

.formulaire { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.formulaire > p:last-child { margin: 0; }
.formulaire h2 { margin: 0; font-size: 18px; }
.carte { border: 1px solid var(--filet); border-radius: 8px; padding: 24px; background: var(--fond); }
@media (max-width: 520px) { .carte { padding: 20px 16px; } }

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label { font-weight: 500; font-size: 15px; }
.facultatif { font-weight: 400; color: var(--texte-2); }
.facultatif::before { content: "("; }
.facultatif::after { content: ")"; }
.aide { font-size: 14px; color: var(--texte-2); margin: 0; }

input:not([type="checkbox"]), select, textarea {
  font: inherit; font-size: 16px; color: var(--texte);
  min-height: 40px; padding: 7px 12px; width: 100%;
  border: 1px solid var(--filet-fort); border-radius: var(--rayon); background: var(--fond);
}
textarea { min-height: 88px; resize: vertical; }
select { padding-right: 32px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--vert); margin: 0; flex-shrink: 0; }
/* pseudos toujours en majuscules (enregistrés ainsi par le serveur) : on le voit dès la frappe */
input[name="pseudo"], input[name="acheteur"], input[name="flocage"] { text-transform: uppercase; }
input[name="pseudo"]::placeholder, input[name="acheteur"]::placeholder, input[name="flocage"]::placeholder { text-transform: none; }
/* lignes simples séparées par un filet (achats d'un numéro, numéros pas encore achetés) */
.liste-filets { list-style: none; margin: 0 0 16px; padding: 0; }
.liste-filets > li { padding: 10px 0; border-bottom: 1px solid var(--filet); }
.liste-filets > li:first-child { border-top: 1px solid var(--filet); }
.non-achetes .liste-filets > li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.non-achetes__ajouter { margin-left: auto; }
.case-a-cocher { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }

.ligne-formulaire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.ligne-formulaire .champ { flex: 1 1 200px; }
.ligne-formulaire .champ--nombre { flex: 0 0 96px; }

.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Choix catégorie / saison ------------------------------------------------------- */

.selecteurs { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 20px; }
.segments {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--fond-discret); border: 1px solid var(--filet); border-radius: 8px;
  margin-bottom: 16px;
}
.selecteurs .segments { margin-bottom: 0; }
.segments a {
  color: var(--texte); text-decoration: none; font-weight: 500;
  padding: 8px 16px; border-radius: var(--rayon); min-height: 40px; display: inline-flex; align-items: center;
}
.segments a[aria-current] { background: var(--vert); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .segments a:not([aria-current]):hover { background: var(--fond-survol); }
}
.choix-saison { display: flex; align-items: center; gap: 10px; }
.choix-saison label { font-weight: 500; font-size: 15px; }
.choix-saison select { width: auto; font-variant-numeric: tabular-nums; }

/* --- Légende ------------------------------------------------------------------------ */

.legende {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--texte-2);
  font-variant-numeric: tabular-nums;
}
.legende li { display: inline-flex; align-items: center; gap: 8px; }
.temoin { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--filet-fort); }
.temoin--pris { background: var(--vert); border-color: var(--vert); }
/* réservé, maillot pas encore acheté (bureau) : contour vert, fond blanc */
.temoin--non-achete { background: #fff; border: 2px solid var(--vert); }
.temoin--reserve { background: var(--jaune-clair); border-color: var(--jaune); }
.temoin--bloque { background: repeating-linear-gradient(135deg, var(--hachure) 0 3px, var(--fond) 3px 6px); }
.legende__stock svg, .case__stock { width: 16px; height: 16px; fill: currentColor; }

/* --- Grille des numéros : chaque case est un dos de maillot ------------------------- */

.filtres-grille { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-bottom: 16px; }
.champ--compact { flex: 0 1 300px; }

.grille {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px;
}
/* Dix colonnes dès que la place le permet : les dizaines tombent sur une même rangée (0–9, 10–19…). */
@media (min-width: 900px) { .grille { grid-template-columns: repeat(10, 1fr); } }
@media (max-width: 520px) {
  .grille { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .case { min-height: 64px; padding: 6px 2px 4px; }
  .case__n { font-size: 22px; }
  .case__qui { font-size: 12px; margin-top: 4px; }
}
.case {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 76px; padding: 8px 4px 6px;
  border: 1px solid var(--filet-fort); border-radius: 8px;
  background: var(--fond); color: var(--texte); text-decoration: none;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.case:active { transform: scale(0.96); }
.case__n {
  font-size: 28px; line-height: 1; font-weight: 600; font-stretch: 125%;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.case__qui {
  font-size: 13px; line-height: 1.2; margin-top: 6px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-2);
}
.case__stock { position: absolute; top: 5px; right: 5px; width: 14px; height: 14px; opacity: 0.55; }
.case--libre .case__qui { color: var(--vert); }
.case--pris { background: var(--vert); border-color: var(--vert); color: #fff; }
.case--pris .case__qui { color: #d9ebe0; }
.case--pris.case--non-achete { background: #fff; color: var(--vert); border: 2px solid var(--vert); }
.case--pris.case--non-achete .case__qui { color: var(--vert); }
.case--reserve { background: var(--jaune-clair); border-color: var(--jaune); color: var(--jaune-texte); }
.case--reserve .case__qui { color: var(--jaune-texte); }
.case--bloque { background: repeating-linear-gradient(135deg, var(--hachure-clair) 0 4px, var(--fond) 4px 8px); color: var(--texte-2); }
@media (hover: hover) and (pointer: fine) {
  .case--libre:hover { border-color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); }
  .case--pris:hover { background: var(--vert-fonce); }
  .case--pris.case--non-achete:hover { background: #e8f2ec; }
}
.grille.filtre-actif .case:not(.correspond) { opacity: 0.25; }
.grille-vide { color: var(--texte-2); }

/* --- Fiche d'un numéro -------------------------------------------------------------- */

.fiche-numero { margin-bottom: 24px; }
.fiche-numero h1 { font-size: 40px; margin-bottom: 4px; }
.fiche-numero .chapo { margin: 0 0 16px; }
.fiche-numero__maillot { max-width: 480px; }
.fiche-numero__maillot--bloque .maillot-dos { filter: grayscale(1); opacity: 0.55; }
@media (max-width: 560px) { .fiche-numero h1 { font-size: 32px; } }

/* --- Dos du maillot : vrai visuel, nom et numéro écrits par-dessus ------------------- */

.maillot-dos { display: block; width: 100%; height: auto; }
.maillot-dos__nom, .maillot-dos__numero { font-family: var(--police); fill: #fff; }
.maillot-dos__nom { font-size: 34px; font-weight: 800; font-stretch: 100%; letter-spacing: 0.03em; }
.maillot-dos__numero {
  font-size: 172px; font-weight: 800; font-stretch: 100%; letter-spacing: -0.01em;
  stroke: #e00818; stroke-width: 7px; stroke-linejoin: round; paint-order: stroke fill;
}
.maillot-dos__numero--fond { stroke: #fff; stroke-width: 15px; }
.lecture--large { max-width: 1040px; }
.demande-apercu { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.demande-apercu .formulaire { grid-column: 1; grid-row: 1; }
.apercu-maillot { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 24px; }
.apercu-maillot figcaption { margin-top: 8px; }
@media (max-width: 860px) {
  .demande-apercu { grid-template-columns: 1fr; gap: 16px; }
  .demande-apercu .formulaire, .apercu-maillot { grid-column: 1; grid-row: auto; }
  .apercu-maillot { position: static; max-width: 420px; }
}
.demande-maillot { max-width: 440px; margin: 8px 0 32px; }

.etat, .statut { font-weight: 600; }
.etat--libre, .statut--acceptee { color: var(--vert); }
.etat--reserve, .statut--en_attente { color: var(--jaune-texte); }
.etat--pris { color: var(--vert-fonce); }
.etat--bloque, .statut--annulee { color: var(--texte-2); }
.statut--refusee { color: var(--rouge); }

/* --- Listes et tableaux ------------------------------------------------------------- */

.lignes, .definitions { margin: 0 0 24px; padding: 0; }
.lignes > div, .definitions > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--filet);
}
.lignes > div:first-child, .definitions > div:first-child { border-top: 1px solid var(--filet); }
.lignes dt, .definitions dt { color: var(--texte-2); }
.lignes dd, .definitions dd { margin: 0; }
@media (max-width: 520px) { .lignes > div, .definitions > div { grid-template-columns: 120px 1fr; } }

.liste-filets { list-style: none; margin: 0 0 32px; padding: 0; }
.liste-filets > li { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.liste-filets > li:first-child { border-top: 1px solid var(--filet); }
.non-achetes .liste-filets > li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.non-achetes__ajouter { margin-left: auto; }
.liste-filets .ligne-formulaire { margin: 0; }
.ligne-compte { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.tableau-defile { overflow-x: auto; margin: 0 0 32px; -webkit-overflow-scrolling: touch; }
.tableau { width: 100%; border-collapse: collapse; font-size: 16px; }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau th:first-child, .tableau td:first-child { padding-left: 0; }
.tableau thead th { font-size: 14px; font-weight: 500; color: var(--texte-2); border-bottom-color: var(--filet-fort); white-space: nowrap; }
.tableau .nombre { text-align: right; }
.tableau td:last-child form { margin: 0; }

.etiquette {
  display: inline-block; font-size: 13px; font-weight: 500; line-height: 1.4;
  padding: 1px 8px; border-radius: var(--rayon); background: var(--vert-clair); color: var(--vert-fonce);
}

/* --- Demandes (bureau) -------------------------------------------------------------- */

.liste-demandes { list-style: none; margin: 0 0 40px; padding: 0; }
.demande { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--filet); }
.demande:first-child { border-top: 1px solid var(--filet); }
.demande__numero {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--jaune-clair); border: 1px solid var(--jaune); color: var(--jaune-texte);
  font-size: 28px; font-weight: 600; font-stretch: 125%;
}
.demande__corps { flex: 1; min-width: 0; }
.demande__corps h2 { font-size: 20px; margin: 0 0 4px; }
.demande__corps p { margin-bottom: 8px; }
.citation { border-left: 2px solid var(--filet-fort); padding-left: 12px; color: var(--texte-2); }
.demande__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 16px; }
.demande__actions form { margin: 0; }
.refus summary { list-style: none; }
.refus summary::-webkit-details-marker { display: none; }
.refus[open] summary { background: var(--fond-discret); }
.refus .formulaire { margin: 12px 0 0; gap: 12px; min-width: min(360px, 80vw); animation: apparition 200ms var(--ease-out); }
@media (max-width: 520px) {
  .demande { gap: 14px; }
  .demande__numero { width: 56px; height: 56px; font-size: 22px; }
}

.section-repliee { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); margin-bottom: 24px; }
.section-repliee summary {
  cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
}
.section-repliee summary::-webkit-details-marker { display: none; }
.section-repliee summary::after { content: "+"; font-size: 22px; color: var(--texte-2); transition: transform 200ms var(--ease-out); }
.section-repliee[open] summary::after { transform: rotate(45deg); }
.section-repliee .formulaire { padding-bottom: 8px; animation: apparition 200ms var(--ease-out); }

/* --- Étapes, code de suivi ---------------------------------------------------------- */

.etapes { max-width: 720px; }
.etapes ol { padding-left: 22px; margin: 0 0 24px; }
.etapes li { margin-bottom: 8px; padding-left: 4px; }
.etapes li::marker { font-weight: 600; color: var(--vert); font-variant-numeric: tabular-nums; }

.code-suivi { margin: 24px 0 32px; }
.code-suivi p { margin: 0; }
.code-suivi__code {
  font-size: 32px; font-weight: 600; font-stretch: 118%; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; color: var(--vert-fonce); margin: 4px 0 8px !important;
  user-select: all;
}

/* --- Pied --------------------------------------------------------------------------- */

.pied { border-top: 1px solid var(--filet); color: var(--texte-2); font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
.pied__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.pied p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
  .message, .refus .formulaire, .section-repliee .formulaire { animation-name: fondu; }
  @keyframes fondu { from { opacity: 0; } }
  .bouton:active, .case:active { transform: none; }
}

@media print {
  .entete, .sous-nav, .pied, .filtres-grille, .etapes, .selecteurs form { display: none; }
  .case--pris { background: #fff; color: #000; border: 2px solid #000; }
  .case--pris .case__qui { color: #000; }
  .case--pris.case--non-achete { border-style: dashed; }
}

/* Première colonne d'un tableau toujours à gauche, même si c'est une date ou une saison. */
.tableau td:first-child.nombre, .tableau th:first-child.nombre { text-align: left; }
.formulaire input.nombre { max-width: 200px; }

/* Visuel officiel du maillot (accueil, réglages) */
.visuel-officiel { margin: 56px 0 0; max-width: 960px; }
.visuel-officiel img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--fond-discret); }
.visuel-officiel figcaption { margin-top: 10px; font-size: 15px; color: var(--texte-2); }
.visuel-officiel--reglage { margin: 0 0 24px; max-width: 560px; }
.premier-titre { margin-top: 0; }

/* Page « Informations » : mentions légales, données personnelles, cookies. */
.texte-legal { max-width: 720px; }
.texte-legal h2 { margin-top: 40px; }
.texte-legal li { margin-bottom: 8px; }
.texte-legal mark { background: var(--jaune-clair); padding: 0 4px; }
.pied__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; flex-basis: 100%; font-size: 14px; }
.pied__legal a { color: var(--texte-2); }

/* Bandeau des cookies commun (assets/mgr-cookies.css) aux couleurs du club. */
body .mgrc, body .mgrc-dialogue, body .mgrc-bloc { --mgrc-accent: var(--vert); }

/* Tableau des réponses du bureau : coordonnées et message du demandeur */
.cellule-demande { min-width: 220px; max-width: 340px; font-size: 15px; }
.cellule-demande .citation { margin: 6px 0 0; font-size: 14px; }

/* Téléphone : cibles tactiles d'au moins 44 px (boutons, champs, liens-boutons). */
@media (max-width: 780px) {
  .bouton, .bouton--petit, .lien-bouton, .segments a { min-height: 44px; }
  input:not([type="checkbox"]), select, textarea { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
}

/* Menus qui défilent au téléphone (loi de clôture) : le bord s'estompe sur 32 px du côté où il reste
   des entrées (timeline de défilement) ; rien quand tout tient. */
@property --bord-g { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --bord-d { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes bords-defile { from { --bord-g: 0px; --bord-d: 32px; } 12%, 88% { --bord-g: 32px; --bord-d: 32px; } to { --bord-g: 32px; --bord-d: 0px; } }
@supports (animation-timeline: scroll(self inline)) {
  .sous-nav nav, .nav {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--bord-g), #000 calc(100% - var(--bord-d)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--bord-g), #000 calc(100% - var(--bord-d)), transparent 100%);
    animation: bords-defile linear both; animation-timeline: scroll(self inline);
  }
}

/* Zones de toucher (octobre 2026) : 44 px au doigt ; rien ne change à la souris. */
@media (pointer: coarse) {
  .lien-bouton, .sous-nav a, .bouton { min-height: 44px; }
  .sous-nav a { display: inline-flex; align-items: center; }
}

/* --- Achats de maillots : paiements et récapitulatif pour le fabricant ------------------- */
/* L'état s'écrit en toutes lettres ; seul ce qui demande une action (à payer, acompte) est coloré. */
.paiement { font-weight: 600; }
.paiement--a_payer, .paiement--partiel, .a-encaisser { color: var(--jaune-texte); }
.paiement--paye, .paiement--offert, .paiement--club { font-weight: 500; }
.tableau--recap th[scope="row"] { font-weight: 500; text-align: left; }
.tableau--recap tfoot th, .tableau--recap tfoot td { border-top: 2px solid var(--filet-fort); }
.tableau--synthese th[scope="row"], .tableau--validation th[scope="row"] { font-weight: 500; text-align: left; vertical-align: top; }
.tableau--synthese tfoot th, .tableau--synthese tfoot td { border-top: 2px solid var(--filet-fort); }
/* « + pantalon » à côté du joueur : à lire d'un coup d'œil, sans couleur d'alerte */
.mention-pantalon { font-weight: 600; white-space: nowrap; }
/* mêmes colonnes d'une catégorie à l'autre : les tableaux se lisent à la suite */
.tableau--validation { table-layout: fixed; }
.tableau--validation th:nth-child(1) { width: 40%; }
.tableau--validation th:nth-child(2) { width: 22%; }
.tableau--validation th:nth-child(3) { width: 12%; }
.tableau--validation th:nth-child(5) { width: 10%; }
@media (max-width: 600px) { .tableau--validation { table-layout: auto; } }
.tableau--achats td { vertical-align: top; }
.formulaire h2 { font-size: 18px; margin: 28px 0 12px; }
.formulaire h2.premier-titre { margin-top: 0; }
@media print {
  .recap-impression .fil, .ecran-seul { display: none; }
  .recap-impression .tableau { font-size: 12pt; }
}
