/*================================
  =   NORTON SPORT CLUB GENEVE   =
  ================================
	
	Créé le : 28.07.2025
	Mis à jour le : 31.10.2025
	Par : Rui Dos Santos

=================================*/

/* Reset & base */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: #f4f6f8;
	color: #333;
}

a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

/* Layout */
.page_nsc {
	display: flex;
	min-height: 100vh;
}

/* Main content */
main.content {
	flex-grow: 1;
	padding: 0.5rem 1rem;
	max-width: 1700px; /* Par exemple */
}

/* KPI cards */
.kpi-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.2rem;
	margin-bottom: 1.1rem;
}

.card {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
	text-align: center;
}

.card h3 {
	margin: 0;
	font-size: 2rem;
	color: #2980b9;
}

.card p {
	margin: 0.25rem 0 0;
	font-weight: 600;
	color: #555;
}

/* Section graphs + lists */
.section {
	background: white;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
	margin-bottom: 2rem;
}

.section h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #2c3e50;
}

/* Grid layouts */
.one-column {
	display: grid;
	grid-template-columns: 1fr;
}

.two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.two-columns-1-bigger {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}

/* Table */
table {
	width: 100%;
	border-collapse: collapse;
}

/* Style pour pas de hover */
table tr.no-hover:hover {
	background: transparent;
}

table th, table td {
	/* padding: 0.3rem 0.5rem; */
	padding: 4px 8px; /* moins d’espace que par défaut */
	text-align: left;
}

table thead {
	font-size: 0.9rem;
	position: sticky;
	top: 0;
	color: white;
	background: #2980b9;
}

table tbody tr:hover {
	background: #f0f8ff;
}

/* Supprime les flèches dans Chrome, Safari, Edge et Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Supprime les flèches dans Firefox */
input[type=number] {
	-moz-appearance: textfield;
}

/* Table wrappers */
.table-wrapper,
.table-wrapper-short {
	overflow-y: auto;
	border: 1px solid #ddd;
	margin-top: 1rem;
}

.table-wrapper { max-height: 400px; }
.table-wrapper-short { max-height: 200px; }

/* Texte du THEAD plus petit */
.thead-texte-petit {
	font-size: 0.9rem;
}

/* Espace interlignes */
.espace_interlignes {
	padding-top: 20px;
}

/* Headings */
.texte-entete,
.texte-entete-infos {
	font-weight: bold;
	font-size: 1.3rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	margin-bottom: 1rem;
	border-bottom: 2px solid #2980b9;
}

.texte-entete-infos {
	text-align: center;
}

/* espace pour l'affichage d'infos au membre */
.aff-msg-info-membre {
	/* display: inline-block; /* <-- clé pour adapter la taille au texte */
	max-width: 100%; /* évite de dépasser la largeur du container */
    margin-bottom: 0.5rem;
    border: 1px solid #3498db;
    background-color: #fff9c4;
    padding: 8px 10px;
    border-radius: 5px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.aff-msg-info-membre p {
	margin: 0; /* supprime la marge par défaut */
    line-height: 1.4; /* ajustable selon besoin */
}

/* Boutons */
.bouton-3d {
	min-width: 150px;
	display: inline-block; /* <-- clé pour adapter la taille au texte */
    margin: 3px 3px 15px 3px;
    background-color: #2980B9;
    color: white;
    padding: 7px 9px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 3px 4px #2076B0;
    transition: all 0.2s ease;
    user-select: none;
}

.bouton-3d:hover {
    background-color: #57A8E6;
    color: #000;
}

.bouton-3d:active {
    box-shadow: 0 2px #2076B0;
    transform: translateY(3px);
}

.bouton-3d:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
	.two-columns {
		grid-template-columns: 1fr;
	}
}