/**
 * AMTC UI (Dashboard + Auth)
 * Scope: ajoute la classe `.amtc-ui` sur les wrappers du plugin.
 */

/* ==============================
   Tokens (design system léger)
   ============================== */
.amtc-ui {
	/* Couleurs */
	--amtc-bg: #0b1220;
	--amtc-surface: #F7F5F2;
	--amtc-surface-2: #F7F5F2;
	--amtc-text: #333333;
	--amtc-muted: #64748b;
	--amtc-border: #e6eaf2;
	/* Marque (couleur principale) */
	--amtc-primary: #C89307;
	--amtc-primary-600: #A27A10;
	--amtc-primary-ink: #000000;
	--amtc-primary-soft: rgba(200, 147, 7, 0.18);
	--amtc-success: #16a34a;
	--amtc-danger: #dc2626;

	/* Layout */
	--amtc-radius: 12px;
	--amtc-radius-sm: 10px;
	--amtc-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 1px rgba(16, 24, 40, 0.04);
	--amtc-shadow-md: 0 10px 24px rgba(16, 24, 40, 0.12);

	color: var(--amtc-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
	font-weight: 400;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

.amtc-ui *,
.amtc-ui *::before,
.amtc-ui *::after {
	box-sizing: border-box;
}

.amtc-ui :where(a) {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	font-weight: 500;
}

.amtc-ui :where(h1) {
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.02em;
	font-weight: 600;
	text-transform: uppercase;
}

.amtc-ui :where(h2) {
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.02em;
	font-weight: 500;
}

.amtc-ui :where(h3, h4) {
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.02em;
	font-weight: 400;
}

.amtc-ui :where(p) {
	margin: 0;
	font-weight: 400;
}

/* ==============================
   Layout helpers
   ============================== */
.amtc-container {
	max-width: 1100px;
	margin-inline: auto;
	padding: clamp(12px, 2vw, 20px);
}

.amtc-stack {
	display: grid;
	gap: 12px;
}

/* ==============================
   Utilities
   ============================== */
.amtc-u-hidden {
	display: none !important;
}

/* ==============================
   Wizard (faire-demande)
   ============================== */
.amtc-step {
	display: none;
}

.amtc-step.is-active {
	display: block;
}

.amtc-wizardHeader {
	margin-bottom: 12px;
}

.amtc-wizardHeader.amtc-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.amtc-steps {
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	position: relative;
}

.amtc-steps__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 4px 2px;
	color: rgba(15, 23, 42, 0.55);
	font-weight: 900;
	min-width: 0;
	text-align: center;
	position: relative;
	z-index: 1;
}

.amtc-steps__dot {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(51, 51, 51, 0.10);
	background: #F7F5F2;
	color: rgba(51, 51, 51, 0.55);
	font-size: 12px;
	box-shadow: 0 8px 18px rgba(16, 24, 40, 0.10);
}

.amtc-steps__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.amtc-steps::before {
	content: "";
	position: absolute;
	left: 6%;
	right: 6%;
	top: 19px; /* aligne au centre du dot (30px) */
	height: 2px;
	background: rgba(15, 23, 42, 0.08);
	border-radius: 2px;
	z-index: 0;
}

.amtc-steps__item.is-active {
	color: #333333;
}

.amtc-steps__item.is-active .amtc-steps__dot {
	border-color: rgba(200, 147, 7, 0.55);
	background: rgba(200, 147, 7, 0.35);
	color: #333333;
}

.amtc-steps__item.is-done {
	color: rgba(15, 23, 42, 0.70);
}

.amtc-steps__item.is-done .amtc-steps__dot {
	border-color: rgba(22, 163, 74, 0.35);
	background: rgba(22, 163, 74, 0.12);
	color: #166534;
}

.amtc-wizardNav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* "Retour" à gauche, CTA à droite */
.amtc-wizardNav [data-amtc-prev] {
	margin-right: auto;
}

/* Bloc champs (étape 1) */
.amtc-fieldsCard {
	margin-top: 12px;
}

/* Après succès : verrouiller le wizard */
.amtc-demandeWizard.is-submitted [data-amtc-prev],
.amtc-demandeWizard.is-submitted [data-amtc-next] {
	display: none !important;
}

.amtc-demandeWizard.is-submitted #amtc-demande-submit {
	display: none !important;
}

/* Masquer le submit ACF (on utilise le bouton final du wizard) */
.amtc-demandeWizard .acf-form-submit {
	display: none !important;
}

/* Les champs ACF date/heure sont remplis par le calendrier : on les masque dans l'étape 1 */
.amtc-demandeWizard .acf-field[data-name="date_rdv"],
.amtc-demandeWizard .acf-field[data-name="heure_rdv"] {
	display: none;
}

/* Récap validation (étape 3) */
.amtc-recap {
	border: 1px solid var(--amtc-border);
	border-radius: var(--amtc-radius);
	background: var(--amtc-surface-2);
	padding: 12px;
	margin: 10px 0 12px 0;
}

.amtc-recap__title {
	font-weight: 800;
	color: #333333;
	margin-bottom: 8px;
}

.amtc-recap__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amtc-recap__item {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
}

.amtc-recap__k {
	color: var(--amtc-muted);
	font-weight: 700;
}

.amtc-recap__v {
	color: #333333;
	font-weight: 700;
}

/* Bloc succès premium */
.amtc-success {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-radius: var(--amtc-radius);
	border: 1px solid rgba(22, 163, 74, 0.22);
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.10) 0%, rgba(200, 147, 7, 0.10) 100%);
}

.amtc-success__title {
	font-weight: 900;
	font-size: 16px;
	letter-spacing: -0.02em;
	color: #064e3b;
}

.amtc-success__subtitle {
	color: #0f172a;
	font-weight: 700;
	font-size: 13px;
}

.amtc-secret {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(200, 147, 7, 0.35);
	background: rgba(200, 147, 7, 0.18);
}

.amtc-secret__label {
	font-weight: 900;
	color: #333333;
	font-size: 13px;
}

.amtc-secret__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-weight: 900;
	letter-spacing: 0.08em;
	padding: 8px 10px;
	border-radius: 10px;
	background: #000000;
	color: #fff;
	white-space: nowrap;
}

/* CTA validation */
.amtc-demandeWizard #amtc-demande-submit {
	width: 100%;
	justify-content: center;
}

@media (max-width: 640px) {
	.amtc-steps { gap: 14px; }
	.amtc-steps::before { display: none; }
}

.amtc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.amtc-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.amtc-card {
	background: var(--amtc-surface);
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: var(--amtc-radius);
	box-shadow: var(--amtc-shadow-sm);
	padding: 18px;
}

/* ==============================
   Buttons
   ============================== */
.amtc-btn {
	appearance: none;
	border: 1px solid var(--amtc-border);
	background: var(--amtc-surface);
	color: var(--amtc-text);
	border-radius: 10px;
	padding: 10px 12px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.1;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, transform 80ms ease, box-shadow 160ms ease;
}

.amtc-btn:hover {
	background: var(--amtc-surface-2);
	border-color: #d6dbea;
}

.amtc-btn:disabled,
.amtc-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.amtc-btn:active {
	transform: translateY(1px);
}

.amtc-btn:focus-visible {
	outline: 3px solid var(--amtc-primary-soft);
	outline-offset: 2px;
}

.amtc-btn--primary {
	background: var(--amtc-primary);
	border-color: var(--amtc-primary);
	color: #ffffff;
}

.amtc-btn--primary:hover {
	background: var(--amtc-primary-600);
	border-color: var(--amtc-primary-600);
}

.amtc-btn--ghost {
	background: transparent;
}

/* Effet shimmer pour les boutons principaux */
.amtc-btn--shimmer {
	position: relative;
	overflow: hidden;
}

.amtc-btn--shimmer::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.6s ease;
}

.amtc-btn--shimmer:hover::before {
	left: 100%;
}

/* Effet shimmer sur les boutons ACF dans l'interface AMTC */
.amtc-ui .acf-form button,
.amtc-ui .acf-form input[type="submit"] {
	position: relative;
	overflow: hidden;
}

.amtc-ui .acf-form button::before,
.amtc-ui .acf-form input[type="submit"]::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.6s ease;
}

.amtc-ui .acf-form button:hover::before,
.amtc-ui .acf-form input[type="submit"]:hover::before {
	left: 100%;
}

/* Support WP .button sans re-styler le site */
.amtc-ui :where(.button).amtc-btn {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ==============================
   Forms (login / lostpass / retrieve)
   ============================== */
.amtc-form {
	display: grid;
	gap: 12px;
}

.amtc-field {
	display: grid;
	gap: 6px;
}

.amtc-label {
	font-size: 13px;
	font-weight: 400;
	color: var(--amtc-text);
}

/* Styles inputs sans IDs */
.amtc-ui :where(input, select, textarea) {
	font: inherit;
}

.amtc-ui :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--amtc-border);
	border-radius: 10px;
	background: white;
	color: var(--amtc-text);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

/* Faire-demande : inputs text plus hauts (wizard ACF) */
.amtc-demandeWizard .acf-form :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select) {
	min-height: 44px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.amtc-ui :where(textarea) {
	min-height: 96px;
	resize: vertical;
}

.amtc-ui :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
	outline: none;
	border-color: rgba(200, 147, 7, 0.8);
	box-shadow: 0 0 0 3px var(--amtc-primary-soft);
}

.amtc-help {
	font-size: 12px;
	color: var(--amtc-muted);
}

.amtc-alert {
	border-radius: 10px;
	border: 1px solid var(--amtc-border);
	background: var(--amtc-surface-2);
	padding: 10px 12px;
	font-size: 13px;
	color: var(--amtc-text);
}

.amtc-alert--success {
	border-color: rgba(22, 163, 74, 0.25);
	background: rgba(22, 163, 74, 0.08);
}

.amtc-alert--danger {
	border-color: rgba(220, 38, 38, 0.25);
	background: rgba(220, 38, 38, 0.08);
}

/* ==============================
   Retrieve result (retrouver-demande)
   ============================== */
.amtc-resultWrap {
	margin-top: 12px;
}

.amtc-result {
	display: grid;
	gap: 12px;
	padding: 14px;
	border-radius: var(--amtc-radius);
	border: 1px solid rgba(51, 51, 51, 0.08);
	background: #F7F5F2;
}

.amtc-result--success {
	border-color: rgba(22, 163, 74, 0.18);
	background: rgba(22, 163, 74, 0.05);
}

.amtc-result--empty {
	border-color: rgba(220, 38, 38, 0.18);
	background: rgba(220, 38, 38, 0.04);
}

.amtc-result__header {
	display: grid;
	gap: 4px;
}

.amtc-result__title {
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(15, 23, 42, 0.78);
}

.amtc-result__subtitle {
	font-size: 14px;
	font-weight: 900;
	color: #333333;
}

.amtc-kv {
	margin: 0;
	display: grid;
	gap: 10px;
}

.amtc-kv__row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 10px;
	align-items: baseline;
	padding-top: 10px;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.amtc-kv__row:first-child {
	padding-top: 0;
	border-top: 0;
}

.amtc-kv__row dt {
	margin: 0;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(15, 23, 42, 0.62);
}

.amtc-kv__row dd {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	color: #333333;
}

.amtc-result__actions {
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	.amtc-kv__row {
		grid-template-columns: 1fr;
	}
}

/* ==============================
   Dashboard: tabs + sections
   ============================== */
.amtc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid var(--amtc-border);
	padding-bottom: 8px;
	margin-bottom: 14px;
}

/* Dashboard: typo + identité */
.amtc-dashboard :where(h2) {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 500;
}

.amtc-dashboard :where(h3) {
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: #333333;
}

.amtc-dashboard :where(h4) {
	font-size: 13px;
	color: #333333;
}

/* Dashboard: labels / textes */
.amtc-dashboard :where(p, span, td, th) {
	font-size: 13px;
	font-weight: 400;
}

.amtc-dashboard :where(small) {
	font-size: 12px;
	color: rgba(15, 23, 42, 0.62);
}

.amtc-dashboard .acf-form :where(.acf-label label) {
	font-size: 12px;
	font-weight: 400;
	color: rgba(15, 23, 42, 0.70);
	letter-spacing: 0.01em;
}

.amtc-dashboard .acf-form :where(.description) {
	font-size: 12px;
	color: rgba(15, 23, 42, 0.55);
}

/* Dashboard: boutons WP (ajout de couleur + cohérence) */
.amtc-dashboard :where(.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	gap: 8px;
	border-radius: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(51, 51, 51, 0.12);
	background: rgba(51, 51, 51, 0.04);
	color: #333333;
	font-weight: 800;
	font-size: 12px;
	line-height: 1.1;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 80ms ease, box-shadow 160ms ease;
}

.amtc-dashboard :where(.button):hover {
	background: rgba(200, 147, 7, 0.14);
	border-color: rgba(200, 147, 7, 0.28);
}

.amtc-dashboard :where(.button):active {
	transform: translateY(1px);
}

.amtc-dashboard :where(.button):focus-visible {
	outline: 3px solid var(--amtc-primary-soft);
	outline-offset: 2px;
}

.amtc-dashboard :where(.button-primary) {
	background: rgba(200, 147, 7, 0.70);
	border-color: rgba(200, 147, 7, 0.60);
	color: #ffffff;
	box-shadow: 0 10px 18px rgba(16, 24, 40, 0.10);
}

.amtc-dashboard :where(.button-primary):hover {
	background: rgba(200, 147, 7, 0.90);
	border-color: rgba(200, 147, 7, 0.75);
}

.amtc-dashboard :where(.button-small) {
	padding: 8px 10px;
	border-radius: 10px;
}

/* Informations profil: 2 sections distinctes */
.amtc-dashboard #tab-profil .profil-form-section,
.amtc-dashboard #tab-profil .profil-outlook-section {
	padding: 16px;
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: var(--amtc-radius);
	background: #F7F5F2;
}

.amtc-dashboard #tab-profil .profil-outlook-section {
	margin-top: 14px;
}

.amtc-dashboard #tab-profil .profil-account-section {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: var(--amtc-radius);
	background: #F7F5F2;
}

/* Mon compte (dashboard client) */
.amtc-dashboard .amtc-accountGrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 12px;
}

@media (min-width: 900px) {
	.amtc-dashboard .amtc-accountGrid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.amtc-dashboard .amtc-accountCard .amtc-btn {
	width: 100%;
}

/* Espacement vertical global des blocs du dashboard */
.amtc-dashboard .dashboard-section {
	display: grid;
	gap: 16px;
}

.amtc-dashboard .synthese-item {
	margin-bottom: 0;
}

.amtc-dashboard .amtc-cardTitle {
	margin: 0 0 12px 0;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: rgba(15, 23, 42, 0.78);
	text-transform: uppercase;
}

.amtc-dashboard #tab-demandes .dashboard-section,
.amtc-dashboard #tab-synthese .dashboard-section,
.amtc-dashboard #tab-profil .dashboard-section {
	gap: 16px;
}

/* Dashboard-section header */
.amtc-dashboard .amtc-sectionHeader {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.amtc-dashboard .amtc-sectionTitle {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #333333;
}

/* KPI “Synthèse” */
.amtc-dashboard .synthese-stat {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.amtc-dashboard .stat-number {
	font-size: clamp(34px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #333333;
}

.amtc-dashboard .rdv-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.amtc-dashboard .stat-today {
	font-size: 12px;
	font-weight: 800;
	color: rgba(51, 51, 51, 0.62);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(200, 147, 7, 0.18);
	border: 1px solid rgba(200, 147, 7, 0.26);
}

.amtc-dashboard .stat-today.is-empty {
	background: rgba(51, 51, 51, 0.04);
	border-color: rgba(51, 51, 51, 0.10);
	opacity: 0.65;
}

.amtc-dashboard .stat-label {
	font-size: 13px;
	color: var(--amtc-muted);
	font-weight: 700;
}

.amtc-dashboard .stat-week {
	font-size: 12px;
	font-weight: 800;
	color: rgba(51, 51, 51, 0.62);
	margin-left: 10px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(200, 147, 7, 0.14);
	border: 1px solid rgba(200, 147, 7, 0.22);
}

.amtc-dashboard .stat-week.is-empty {
	background: rgba(51, 51, 51, 0.04);
	border-color: rgba(51, 51, 51, 0.10);
	opacity: 0.65;
}

.amtc-dashboard .stat-next-week {
	font-size: 12px;
	font-weight: 800;
	color: rgba(51, 51, 51, 0.62);
	margin-left: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(200, 147, 7, 0.10);
	border: 1px solid rgba(200, 147, 7, 0.18);
}

.amtc-dashboard .stat-next-week.is-empty {
	background: rgba(51, 51, 51, 0.04);
	border-color: rgba(51, 51, 51, 0.10);
	opacity: 0.65;
}

.amtc-dashboard .stat-month {
	font-size: 12px;
	font-weight: 800;
	color: rgba(51, 51, 51, 0.62);
	margin-left: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(200, 147, 7, 0.10);
	border: 1px solid rgba(200, 147, 7, 0.18);
}

.amtc-dashboard .stat-month.is-empty {
	background: rgba(51, 51, 51, 0.04);
	border-color: rgba(51, 51, 51, 0.10);
	opacity: 0.65;
}

.amtc-dashboard .stat-last-month {
	font-size: 12px;
	font-weight: 800;
	color: rgba(51, 51, 51, 0.62);
	margin-left: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(200, 147, 7, 0.10);
	border: 1px solid rgba(200, 147, 7, 0.18);
}

.amtc-dashboard .stat-last-month.is-empty {
	background: rgba(51, 51, 51, 0.04);
	border-color: rgba(51, 51, 51, 0.10);
	opacity: 0.65;
}

/* Outlook status */
.amtc-dashboard .outlook-status {
	border-radius: var(--amtc-radius-sm);
	border: 1px solid var(--amtc-border);
	background: linear-gradient(180deg, #F7F5F2 0%, #fbfcff 100%);
	padding: 14px;
}

.amtc-dashboard .outlook-status.connected {
	border-color: rgba(22, 163, 74, 0.25);
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.10) 0%, #F7F5F2 65%);
}

.amtc-dashboard .outlook-status.disconnected {
	border-color: rgba(220, 38, 38, 0.25);
	background: linear-gradient(180deg, rgba(220, 38, 38, 0.08) 0%, #F7F5F2 65%);
}

.amtc-dashboard .outlook-status.connected .status-indicator {
	color: #16a34a;
}

.amtc-dashboard .outlook-status.disconnected .status-indicator {
	color: #dc2626;
}

.amtc-dashboard .status-message {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 700;
}

.amtc-dashboard .status-indicator {
	font-size: 10px;
}

/* Tables dashboard: titres plus nets */
.amtc-dashboard .amtc-table thead th {
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: none;
}

.amtc-dashboard .amtc-table tbody td {
	font-size: 13px;
}

/* Tabs: rendu premium */
.amtc-tabs {
	background: rgba(200, 147, 7, 0.08);
	border: 1px solid rgba(230, 234, 242, 0.9);
	border-radius: var(--amtc-radius);
	padding: 8px;
}

.amtc-tabs__tab.is-active {
	box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

/* Contenus d'onglets (compat avec les classes existantes du plugin) */
.amtc-ui .dashboard-tab-content {
	display: none;
}

.amtc-ui .dashboard-tab-content.active {
	display: block;
}

.amtc-tabs__tab {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	color: var(--amtc-muted);
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.amtc-tabs__tab:hover {
	background: var(--amtc-surface-2);
	color: var(--amtc-text);
}

.amtc-tabs__tab.is-active {
	background: rgba(200, 147, 7, 0.16);
	border-color: rgba(200, 147, 7, 0.22);
	color: #333333;
}

.amtc-status {
	border-left: 4px solid var(--amtc-border);
	padding-left: 12px;
}

.amtc-status--success {
	border-left-color: var(--amtc-success);
}

.amtc-status--danger {
	border-left-color: var(--amtc-danger);
}

/* ==============================
   Tables (responsive)
   ============================== */
.amtc-tableWrap {
	overflow-x: auto;
	border: 1px solid var(--amtc-border);
	border-radius: var(--amtc-radius);
	background: var(--amtc-surface);
	box-shadow: var(--amtc-shadow-sm);
}

.amtc-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px; /* confort desktop, scroll sur mobile */
}

.amtc-table :where(th, td) {
	padding: 12px 14px;
	border-bottom: 1px solid var(--amtc-border);
	vertical-align: top;
	text-align: left;
	font-size: 13px;
	font-weight: 400;
}

.amtc-table thead th {
	color: var(--amtc-muted);
	font-weight: 400;
	background: var(--amtc-surface-2);
}

.amtc-table tbody tr:hover {
	background: rgba(200, 147, 7, 0.08);
}

/* ==============================
   Pagination
   ============================== */
.amtc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	padding-top: 14px;
}

.amtc-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid var(--amtc-border);
	background: var(--amtc-surface);
	color: var(--amtc-text);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.amtc-page:hover {
	background: var(--amtc-surface-2);
}

.amtc-page.is-current {
	background: rgba(200, 147, 7, 0.18);
	border-color: rgba(200, 147, 7, 0.35);
	color: #333333;
}

.amtc-page.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==============================
   Motion / accessibility
   ============================== */
@media (prefers-reduced-motion: reduce) {
	.amtc-ui * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ==============================
   Modal (profil client)
   ============================== */
.amtc-modal {
	position: fixed;
	inset: 0;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 9999;
}

.amtc-modal__content {
	max-width: 760px;
	margin: 10vh auto 0 auto;
	background: var(--amtc-surface);
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: var(--amtc-radius);
	box-shadow: var(--amtc-shadow-md);
	padding: 18px;
	position: relative;
}

.amtc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	cursor: pointer;
	color: var(--amtc-muted);
	border: 1px solid var(--amtc-border);
	background: var(--amtc-surface);
}

.amtc-modal__close:hover {
	background: var(--amtc-surface-2);
	color: #333333;
}


.amtc-ui .acf-fields.-border {
	border: none;
	background: none;
}

.amtc-ui .outlook-button {
	margin-top: 1em;
}