/* =====================================================================
   BOUTONS ACIER DU CLUB150KG (octobre 2026) - version 2 du 29/10/2026 (bouton 1 VS 1)
   Remplacent les anciennes images BoutonsIndex/Keyboard/*.png
   Les boutons sont dessines en CSS : aucune image a charger.
   - Taille normale : 88 px  (classe ba-rang)
   - Taille blog    : 80 px  (classe ba-rang ba-80)
   - Taille tableau : 65 px  (classe ba-rang ba-65)
   Bouton enfonce = souris dessus, touche au doigt, clavier (Tab),
   ou page en cours (classe ba-actif ajoutee par boutons_acier.php).
   ===================================================================== */

@font-face {
	font-family: 'Barlow Condensed Club';
	src: url(fonts/barlow-condensed-latin-800-normal.woff2) format('woff2');
	font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Barlow Condensed Club';
	src: url(fonts/barlow-condensed-latin-700-normal.woff2) format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Rangee de boutons ---------- */
.ba-rang {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
	gap: 6px; padding: 2px 0 8px 0; margin: 0;
	font-size: 10px;          /* 1em = 10px -> bouton de 88 px */
	line-height: 1;
}
.ba-rang.ba-80 { font-size: 9.1px; }   /* 80 px */
.ba-rang.ba-65 { font-size: 7.4px; }   /* 65 px */
.ba-seul { display: inline-block; font-size: 10px; line-height: 1; padding-bottom: 6px; }
.ba-seul.ba-65 { font-size: 7.4px; }
.ba-seul.ba-80 { font-size: 9.1px; }

/* ---------- La plaque d'acier ---------- */
a.ba {
	position: relative; top: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	box-sizing: border-box; width: 8.8em; height: 8.8em; padding: 0.7em 0.4em 0.65em;
	border: 1px solid #848C96; border-radius: 1em;
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0, rgba(255,255,255,0.10) 1px, rgba(0,0,0,0.035) 1px, rgba(0,0,0,0.035) 3px),
		linear-gradient(180deg, #F6F7F9 0%, #D3D8DE 48%, #B3BAC3 100%);
	box-shadow:
		inset 0 2px 0 rgba(255,255,255,0.95), inset 0 -2px 0 rgba(0,0,0,0.14),
		0 1px 0 #9CA4AE, 0 2px 0 #8C949E, 0 3px 0 #7E8690, 0 4px 0 #6E767F,
		0 7px 9px rgba(10,14,20,0.30);
	color: #22262B; text-decoration: none; text-align: center;
	font: 800 1em/1 'Barlow Condensed Club', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: top 0.07s ease-out, box-shadow 0.07s ease-out;
}
/* Enfonce : souris, doigt, clavier, page en cours */
a.ba:hover, a.ba:focus, a.ba:active, a.ba.ba-actif {
	top: 4px;
	border-color: #15181C;
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, rgba(0,0,0,0.06) 1px, rgba(0,0,0,0.06) 3px),
		linear-gradient(180deg, #2A2F36 0%, #343A42 55%, #3E454E 100%);
	box-shadow: inset 0 4px 9px rgba(0,0,0,0.6), inset 0 -1px 0 rgba(255,255,255,0.09), 0 1px 0 #4A515A, 0 3px 5px rgba(10,14,20,0.25);
	color: #F2F3F5;
}
a.ba:focus { outline: none; }
a.ba:focus-visible { outline: 3px solid #F5C518; outline-offset: 3px; }

/* ---------- Textes ---------- */
.ba-t {   /* titre du haut : SQUAT, BENCH, FCSAD... */
	display: block; font-size: 1.8em; font-weight: 800; letter-spacing: 0.04em; line-height: 1;
	text-shadow: 0 1px 0 rgba(255,255,255,0.8); white-space: nowrap;
}
.ba-b {   /* mot du bas : MAXI, COMPETS, FFF... */
	display: block; font-size: 1.4em; font-weight: 800; letter-spacing: 0.08em; line-height: 1;
	text-shadow: 0 1px 0 rgba(255,255,255,0.8); white-space: nowrap;
}
.ba-n {   /* grand nombre : 13-15 */
	display: block; font-size: 2.3em; font-weight: 800; letter-spacing: 0.01em; line-height: 1;
	text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.ba-pastille {   /* pastille jaune REPS */
	display: block; padding: 0.25em 0.8em; border-radius: 1em;
	background: linear-gradient(180deg, #FFD84A 0%, #F2BE12 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 0 #A57E05;
	color: #1C1F24; font-size: 1.25em; font-weight: 800; letter-spacing: 0.08em; line-height: 1;
}
.ba-panneau {   /* panneau bleu ATHLETES / COMPET */
	display: flex; align-items: center; justify-content: center;
	box-sizing: border-box; width: 7.6em; height: 3.9em; border-radius: 0.4em; border: 1px solid #0C1A2C;
	background:
		repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0, rgba(255,255,255,0.09) 1px, transparent 1px, transparent 0.55em),
		repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 1.6em),
		linear-gradient(180deg, #2A4F7E 0%, #152B47 100%);
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.5);
	color: #FFFFFF; font-size: 1em; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
	text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.ba-panneau span { font-size: 1.85em; }
a.ba:hover .ba-t, a.ba:focus .ba-t, a.ba:active .ba-t, a.ba.ba-actif .ba-t,
a.ba:hover .ba-b, a.ba:focus .ba-b, a.ba:active .ba-b, a.ba.ba-actif .ba-b,
a.ba:hover .ba-n, a.ba:focus .ba-n, a.ba:active .ba-n, a.ba.ba-actif .ba-n {
	text-shadow: 0 -1px 0 rgba(0,0,0,0.7);
}

/* Mot du bas plus long (FACE-A-FACE du bouton 1 VS 1) : un peu plus petit pour tenir dans le bouton */
.ba-bas-petit .ba-b { font-size: 1.15em; letter-spacing: 0.03em; }

/* ---------- Icones ---------- */
.ba-i {
	flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
	color: #2B3037;   /* couleur des traits des icones */
}
.ba-i svg { display: block; width: 4.5em; height: 4.5em; }
.ba-grand .ba-i svg { width: 6.2em; height: 6.2em; }   /* bouton sans texte du bas (Accueil) */
.ba-moyen .ba-i svg { width: 5.2em; height: 5.2em; }   /* Blog, Stats, 13-15 */
a.ba:hover .ba-i, a.ba:focus .ba-i, a.ba:active .ba-i, a.ba.ba-actif .ba-i { color: #E3E6EA; }
/* Medaille d'or "1" qui remplace l'icone quand le bouton est enfonce */
.ba-i .ba-alt { display: none; }
a.ba.ba-medaille:hover .ba-i .ba-ico, a.ba.ba-medaille:focus .ba-i .ba-ico,
a.ba.ba-medaille:active .ba-i .ba-ico, a.ba.ba-medaille.ba-actif .ba-i .ba-ico { display: none; }
a.ba.ba-medaille:hover .ba-i .ba-alt, a.ba.ba-medaille:focus .ba-i .ba-alt,
a.ba.ba-medaille:active .ba-i .ba-alt, a.ba.ba-medaille.ba-actif .ba-i .ba-alt { display: block; }

/* ---------- Petit format (tableau, 65 px) : seulement le titre et l'icone ---------- */
.ba-65 .ba-b { display: none; }
.ba-65 .ba-t { font-size: 2em; }
.ba-65 .ba-i svg { width: 4.6em; height: 4.6em; }

/* Les anciennes regles generales du site (a { font... } / a:active { top:1px }) ne s'appliquent pas ici */
a.ba:active { position: relative; }
