/**
 * ABS Mondial Export — styles de l'espace membre maison (lot 3).
 * Chargé uniquement sur les pages contenant [amt_account] / [amt_protect].
 * Réutilise la charte du plugin (variables --amt-*), avec repli si
 * amt-style.css n'est pas chargé sur la page.
 */

:root {
	--amt-navy: #0B1F3A;
	--amt-navy-2: #061525;
	--amt-black: #0B0B0D;
	--amt-gold: #C9A227;
	--amt-gold-light: #E2C766;
	--amt-white: #FFFFFF;
	--amt-gray-bg: #F3F4F6;
	--amt-gray-text: #4B5563;
	--amt-border: #E5E7EB;
	--amt-radius: 12px;
	--amt-font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.amt-member-box {
	max-width: 480px;
	margin: 0 auto;
	padding: 28px;
	font-family: var(--amt-font);
}

/* Onglets Connexion / Créer un compte / Mot de passe oublié */
.amt-member-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 18px;
}

.amt-member-tab {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--amt-border);
	border-radius: 999px;
	background: var(--amt-white);
	color: var(--amt-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.amt-member-tab:hover {
	border-color: var(--amt-gold);
	color: var(--amt-black);
}

.amt-member-tab.is-active {
	background: var(--amt-navy);
	border-color: var(--amt-navy);
	color: var(--amt-white);
}

/* Deux espaces publics : Espace client | Espace franchisé (lot 7) */
.amt-member-tabs-space {
	margin-bottom: 10px;
}

.amt-member-tabs-space .amt-member-tab {
	padding: 11px 22px;
	font-size: 15px;
}

.amt-member-tabs-sub .amt-member-tab {
	font-size: 13px;
	padding: 7px 14px;
}

/* Messages d'état */
.amt-member-notice {
	max-width: 480px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: var(--amt-radius);
	font-family: var(--amt-font);
	font-size: 14px;
	line-height: 1.5;
}

.amt-member-notice.is-ok {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #065F46;
}

.amt-member-notice.is-err {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
}

/* Panneau connecté */
.amt-member-hello {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--amt-navy);
}

.amt-member-meta {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--amt-gray-text);
}

.amt-member-intro {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--amt-gray-text);
}

/* Bloc protégé non connecté / mauvais rôle */
.amt-member-locked {
	text-align: center;
}

.amt-member-locked p {
	margin: 0 0 14px;
	font-family: var(--amt-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--amt-navy);
}

.amt-member-locked p:last-child {
	margin-bottom: 0;
}

/* Honeypot : invisible de l'oeil et du clavier, visible des lecteurs d'écran */
.amt-member-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.amt-member-link {
	font-size: 14px;
	color: var(--amt-navy);
	text-decoration: underline;
}

.amt-member-link:hover {
	color: var(--amt-gold);
}

/* ---- Tableau de bord franchisé (lot 4) ---- */
.amt-franchise-dash {
	max-width: 720px;
	padding-top: 8px;
}

.amt-franchise-dash .amt-member-hello {
	margin-bottom: 14px;
}

.amt-dash-preview-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: var(--amt-radius);
	background: #FEF9E7;
	border: 1px solid #F6E3A8;
	color: #7A5A00;
	font-size: 13px;
	line-height: 1.5;
}

.amt-dash-section {
	margin: 18px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--amt-border);
	border-radius: var(--amt-radius);
	background: var(--amt-white);
}

.amt-dash-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: var(--amt-navy);
}

.amt-dash-subtitle {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--amt-navy);
}

.amt-dash-label {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--amt-gray-text);
}

.amt-dash-code {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	color: var(--amt-navy);
}

.amt-dash-code code {
	padding: 6px 14px;
	border-radius: 8px;
	background: var(--amt-navy);
	color: var(--amt-white);
	font-size: 24px;
	letter-spacing: .08em;
}

.amt-dash-copy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 10px;
}

.amt-dash-link-input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--amt-border);
	border-radius: 8px;
	background: var(--amt-gray-bg);
	color: var(--amt-navy);
	font-family: var(--amt-font);
	font-size: 13px;
}

.amt-dash-note {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--amt-gray-text);
}

.amt-dash-section > p:first-child {
	margin-top: 0;
}

.amt-dash-count {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--amt-navy);
}

.amt-dash-table-wrap {
	overflow-x: auto;
}

.amt-dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.amt-dash-table th,
.amt-dash-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--amt-border);
	text-align: left;
	vertical-align: top;
}

.amt-dash-table th {
	font-weight: 700;
	color: var(--amt-navy);
	white-space: nowrap;
}

.amt-dash-table tr:last-child td {
	border-bottom: 0;
}

.amt-dash-table a {
	color: var(--amt-navy);
}

.amt-dash-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.amt-dash-badge.is-client {
	background: #D7F0DD;
	color: #0A6B2D;
}

.amt-dash-badge.is-new {
	background: #FDECC8;
	color: #8A5A00;
}

/* Espace client (lot 7) */
.amt-client-id {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--amt-black);
}

.amt-client-cta {
	margin: 14px 0 0;
}

@media (max-width: 560px) {
	.amt-member-box {
		padding: 20px;
	}

	.amt-member-tabs {
		gap: 6px;
	}

	.amt-member-tab {
		padding: 8px 12px;
		font-size: 13px;
	}

	.amt-dash-section {
		padding: 14px;
	}

	.amt-dash-copy {
		flex-direction: column;
	}

	.amt-dash-link-input {
		flex-basis: auto;
	}
}

/* ------------------------------------------------------------------ *
 * KYC — candidature franchisé (lot 5)
 * ------------------------------------------------------------------ */

.amt-kyc-box .amt-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.amt-kyc-box .amt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.amt-kyc-box input[type="file"].amt-input {
	padding: 8px 10px;
	background: var(--amt-gray-bg);
	border: 1px dashed var(--amt-border);
	cursor: pointer;
}

.amt-kyc-box .amt-kyc-contract {
	border: 1px solid var(--amt-border);
	border-radius: var(--amt-radius);
	padding: 10px 14px;
	background: var(--amt-white);
}

.amt-kyc-box .amt-kyc-contract summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--amt-navy);
}

.amt-kyc-box .amt-kyc-contract-list {
	margin: 10px 0 2px;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--amt-gray-text);
	font-size: 13px;
}

.amt-kyc-box .amt-kyc-accept {
	flex-direction: row !important;
	align-items: flex-start;
	gap: 10px !important;
	font-size: 13px;
}

.amt-kyc-box .amt-kyc-accept input {
	margin-top: 2px;
}

/* ------------------------------------------------------------------ *
 * Pilotage commercial du franchisé (lot 6)
 * ------------------------------------------------------------------ */

.amt-franchise-dash .amt-dash-section-wide {
	width: 100%;
	max-width: none;
	padding: 18px 0 0;
}

.amt-franch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin: 12px 0 0;
}

.amt-franch-card {
	background: var(--amt-white);
	border: 1px solid var(--amt-border);
	border-radius: var(--amt-radius);
	padding: 16px;
}

.amt-franch-card-wide {
	grid-column: 1 / -1;
	margin-top: 16px;
}

.amt-franch-card h4 {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--amt-navy);
}

.amt-franch-form,
.amt-deal-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
}

.amt-franch-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.amt-franch-field-row .amt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.amt-franch-field-row .amt-input {
	width: 100%;
}

.amt-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.amt-gauge {
	background: var(--amt-gray-bg);
	border-radius: 999px;
	height: 10px;
	margin: 8px 0 14px;
	overflow: hidden;
}

.amt-gauge-bar {
	background: var(--amt-gold);
	background: linear-gradient(90deg, var(--amt-gold), var(--amt-gold-light));
	height: 100%;
	border-radius: 999px;
	transition: width .3s ease;
	min-width: 2%;
}

.amt-deal-row {
	border-top: 1px solid var(--amt-border);
	padding: 14px 0;
}

.amt-deal-row:first-of-type {
	border-top: 0;
}

.amt-deal-head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.amt-deal-name {
	font-weight: 700;
	color: var(--amt-navy);
}

.amt-deal-notes {
	background: var(--amt-gray-bg);
	border-radius: 8px;
	padding: 8px 10px;
	margin-top: 8px;
	font-size: 13px;
}

.amt-deal-amount {
	margin: 8px 0 0;
	font-weight: 600;
	color: var(--amt-navy);
	font-size: 13px;
}

.amt-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.amt-badge-prospection {
	background: #EFF6FF;
	color: #1D4ED8;
}

.amt-badge-devis {
	background: #F5F3FF;
	color: #6D28D9;
}

.amt-badge-relance {
	background: #FEFCE8;
	color: #A16207;
}

.amt-badge-negociation {
	background: #FFF7ED;
	color: #C2410C;
}

.amt-badge-gagne {
	background: #ECFDF5;
	color: #047857;
}

.amt-badge-perdu {
	background: #FEF2F2;
	color: #B91C1C;
}

.amt-coach-log {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 340px;
	overflow: auto;
	padding: 12px;
	background: var(--amt-gray-bg);
	border-radius: var(--amt-radius);
	margin-top: 10px;
}

.amt-coach-msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.amt-coach-msg.is-user {
	align-self: flex-end;
	background: var(--amt-navy);
	color: var(--amt-white);
}

.amt-coach-msg.is-ia {
	align-self: flex-start;
	background: var(--amt-white);
	border: 1px solid var(--amt-border);
	color: var(--amt-black);
}

.amt-coach-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

.amt-coach-form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.amt-coach-form .amt-input {
	flex: 1;
}

.amt-coach-note {
	margin-top: 10px;
}

.amt-dash-section .amt-member-notice {
	max-width: none;
}

@media (max-width: 560px) {
	.amt-franch-field-row {
		grid-template-columns: 1fr;
	}

	.amt-coach-form {
		flex-direction: column;
	}
}

/* ------------------------------------------------------------------ *
 * Lot 7 : KYC — type de pièce, capture live, code anti-rejeu
 * ------------------------------------------------------------------ */

.amt-kyc-doctype {
	border: 0;
	padding: 0;
	margin: 16px 0 8px;
}

.amt-kyc-doctype legend {
	font-weight: 600;
	margin-bottom: 6px;
}

.amt-kyc-doctype label {
	display: block;
	margin: 4px 0;
}

.amt-kyc-capture {
	margin: 14px 0;
	padding: 14px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	border-radius: 10px;
	background: rgba(201, 162, 39, 0.05);
}

.amt-kyc-stage {
	position: relative;
	margin: 10px 0;
	max-width: 520px;
}

.amt-kyc-video {
	display: block;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #0B0B0D;
	border-radius: 8px;
}

.amt-kyc-targets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 6px;
}

.amt-kyc-target.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.amt-kyc-hint {
	margin: 6px 0;
	font-size: 14px;
	color: #374151;
}

.amt-kyc-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.amt-kyc-thumb {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 13px;
	background: #E5E7EB;
	color: #374151;
}

.amt-kyc-thumb.is-done {
	background: #D1FAE5;
	color: #065F46;
	font-weight: 600;
}

.amt-kyc-challenge {
	margin: 16px 0;
	padding: 14px;
	border: 1px dashed rgba(201, 162, 39, 0.6);
	border-radius: 10px;
}

.amt-kyc-code {
	display: inline-block;
	margin: 8px 0;
	padding: 8px 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #0B0B0D;
	background: #fff;
	border: 2px solid #C9A227;
	border-radius: 8px;
}

.amt-badge-level {
	background: #111827;
	color: #C9A227;
	font-weight: 700;
	text-transform: none;
}

@media (max-width: 560px) {
	.amt-kyc-video {
		aspect-ratio: 3 / 4;
	}

	.amt-kyc-code {
		font-size: 24px;
	}
}
