/* Fidélité Core — styles front-end de base.
   Volontairement sobres : à adapter au thème du site. */

.fc-dashboard-enseigne, .fc-inscription-client, .fc-espace-client {
	max-width: 720px;
	margin: 0 auto;
}

.fc-dashboard-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.fc-dashboard-stats {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.fc-stat-card {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 16px 24px;
	text-align: center;
}

.fc-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
}

.fc-stat-label {
	display: block;
	font-size: 13px;
	color: #666;
}

.fc-dashboard-section {
	margin-bottom: 32px;
}

.fc-table {
	width: 100%;
	border-collapse: collapse;
}

.fc-table th, .fc-table td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}

.fc-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	background: #eee;
	color: #666;
}

.fc-badge-actif { background: #d4edda; color: #155724; }
.fc-badge-inactif { background: #f8d7da; color: #721c24; }

.fc-input-readonly {
	width: 100%;
	padding: 8px;
	font-family: monospace;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fc-btn-primary {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
}

.fc-btn-primary:hover { background: #135e96; }

.fc-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.fc-message.fc-message-success { background: #d4edda; color: #155724; }
.fc-message.fc-message-error { background: #f8d7da; color: #721c24; }

.fc-code-manuel {
	background: #191714;
	color: #ffffff;
	border-radius: 8px;
	padding: 14px 16px;
	text-align: center;
	margin: 12px 0;
}

.fc-code-manuel-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #cfcac2;
	margin-bottom: 6px;
}

.fc-code-manuel-value {
	display: block;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 0.12em;
	font-family: monospace;
}

.fc-attribuer-point {
	background: #fff4ec;
	border: 1px solid #ffd9bd;
	border-radius: 8px;
	padding: 16px;
}

.fc-form-code-manuel {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.fc-input-code-manuel {
	flex: 1 1 200px;
	padding: 10px 12px;
	font-family: monospace;
	font-size: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fc-qr-client {
	text-align: center;
	margin: 12px 0;
}

.fc-qr-client-image {
	max-width: 160px;
	width: 100%;
	height: auto;
	background: #ffffff;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 8px;
}

.fc-qr-client-label {
	display: block;
	font-size: 12px;
	color: #777;
	margin-top: 6px;
}

.fc-btn-charcoal {
	background: #2a2723;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
}

.fc-btn-charcoal:hover { background: #171512; }

.fc-btn-secondary {
	background: transparent;
	color: #2a2723;
	border: 1px solid #2a2723;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 8px;
}

.fc-scan-section {
	background: #f0f4f8;
	border: 1px solid #d7e2ec;
	border-radius: 8px;
	padding: 16px;
}

#fc-qr-reader video {
	width: 100% !important;
	border-radius: 6px;
}

.fc-tabs-nav {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #eee;
	margin-bottom: 24px;
	overflow-x: auto;
}

.fc-tab-btn {
	background: none;
	border: none;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #777;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
}

.fc-tab-btn:hover {
	color: #2271b1;
}

.fc-tab-btn.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.fc-tab-panel {
	display: none;
}

.fc-tab-panel.is-active {
	display: block;
}

.fc-pagination {
	display: flex;
	gap: 6px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.fc-pagination-link {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #2271b1;
	font-size: 14px;
}

.fc-pagination-link.is-active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.fc-stats-total {
	text-align: center;
	padding: 10px 0;
}

.fc-stats-total-value {
	display: block;
	font-size: 42px;
	font-weight: 800;
	color: #b3261e;
	line-height: 1.1;
}

.fc-stats-total-label {
	display: block;
	font-size: 14px;
	color: #777;
	margin-top: 4px;
}

.fc-stats-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.fc-stats-toggle {
	display: inline-flex;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.fc-stats-toggle-btn {
	background: #fff;
	border: none;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	border-right: 1px solid #ddd;
}

.fc-stats-toggle-btn:last-child {
	border-right: none;
}

.fc-stats-toggle-btn.is-active {
	background: #b3261e;
	color: #fff;
}

.fc-chart-wrap {
	position: relative;
	height: 280px;
	max-width: 100%;
}

.fc-radio-label {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	margin-right: 24px;
}

.fc-regle-bloc {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 16px;
	margin: 14px 0;
}

.fc-regle-phrase {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.fc-input-inline {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
	text-align: center;
}

.fc-form-push label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.fc-dashboard-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #eee;
}

.fc-logo-preview {
	margin-bottom: 16px;
}

.fc-logo-preview img {
	max-width: 140px;
	max-height: 140px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #eee;
	padding: 8px;
	background: #fff;
}

.fc-form-reglages label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.fc-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.fc-reglages-a-venir {
	background: #f7f7f7;
	color: #777;
}

.fc-input-full {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

textarea.fc-input-full {
	resize: vertical;
}

.fc-push-echecs {
	color: #b3261e;
	font-size: 12px;
}

.fc-card-wrap {
	margin-bottom: 24px;
	text-align: center;
}

.fc-loyalty-card {
	width: 440px;
	max-width: 100%;
	min-height: 260px;
	margin: 0 auto;
	border-radius: 16px;
	background: linear-gradient(135deg, #ff8a5c 0%, #e8562f 45%, #b3261e 100%);
	color: #ffffff;
	padding: 24px 26px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 8px 24px rgba(179, 38, 30, 0.28);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fc-loyalty-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fc-loyalty-card-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	flex-shrink: 0;
}

.fc-loyalty-card-top-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fc-loyalty-card-enseigne {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fc-loyalty-card-tagline {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.85;
	font-weight: 600;
}

.fc-loyalty-card-body {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.fc-loyalty-card-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fc-loyalty-card-name {
	font-size: 14px;
	opacity: 0.85;
	margin-bottom: 6px;
}

.fc-loyalty-card-code-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
}

.fc-loyalty-card-code {
	font-size: 22px;
	font-weight: 700;
	font-family: monospace;
	letter-spacing: 0.1em;
}

.fc-loyalty-card-qr {
	background: #ffffff;
	border-radius: 8px;
	padding: 6px;
	flex: 0 0 auto;
}

.fc-loyalty-card-qr img {
	display: block;
	width: 140px;
	height: 140px;
}

.fc-card-download-btn {
	margin-top: 14px;
}

.fc-carte-client {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.fc-carte-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fc-logo-mini { width: 32px; height: 32px; object-fit: contain; }

.fc-solde {
	font-size: 22px;
	font-weight: 700;
	margin: 10px 0;
}

.fc-historique {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	font-size: 13px;
	color: #555;
}
