/* =============================================================================
 * Mindtech V5 — Espace client (My Account)
 * Hero · Layout 2-cols · Sidebar avec icônes · Dashboard cards · Timeline
 * ========================================================================== */

/* Cache le banner Kadence "Mon compte" générique (notre hero V5 le remplace) */
body.woocommerce-account .entry-hero,
body.woocommerce-account .page-hero-section,
body.woocommerce-account header.entry-header,
body.page-template-default.woocommerce-account .wp-site-blocks > header + .wp-block-post-title,
.woocommerce-account .entry-content > h1.entry-title:first-child {
	display: none !important;
}
body.woocommerce-account .entry-content,
body.woocommerce-account .site-container,
body.woocommerce-account .wp-site-blocks > main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* HERO */
.mt-account-hero {
	background: linear-gradient(135deg, #FFF0F1 0%, #FFFFFF 60%, #FFFFFF 100%);
	border-bottom: 1px solid #E5E7EB;
	padding: 28px 0 32px;
}
.mt-account-breadcrumb {
	font-size: 13px;
	color: #6B7280;
	margin-bottom: 14px;
}
.mt-account-breadcrumb a { color: #6B7280; text-decoration: none; }
.mt-account-breadcrumb a:hover { color: #ce3633; }
.mt-account-breadcrumb .mt-bc-sep { margin: 0 8px; color: #D1D5DB; }
.mt-account-hero-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.mt-account-hero-row-login { justify-content: center; text-align: center; }
.mt-account-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Rubik', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: #ce3633;
	text-transform: uppercase;
	letter-spacing: .14em;
	background: rgba(206, 54, 51, .08);
	padding: 6px 12px;
	border-radius: 100px;
	border: 1px solid #FFCDD1;
	margin-bottom: 10px;
}
.mt-account-title {
	font-family: 'Rubik', sans-serif;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: #111318;
	margin: 0 0 6px;
	line-height: 1.15;
}
.mt-account-title span { color: #ce3633; }
.mt-account-sub {
	color: #374151;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
	max-width: 640px;
}
.mt-account-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-acc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 10px;
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--mt-tx-ui);
}
.mt-acc-btn-outline {
	background: #FFFFFF;
	color: #111318;
	border: 1.5px solid #E5E7EB;
}
.mt-acc-btn-outline:hover { border-color: #ce3633; color: #ce3633; }

/* LAYOUT 2 COLONNES */
.mt-account-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	margin: 36px 0 64px;
	align-items: flex-start;
}

/* SIDEBAR */
.mt-account-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 24px;
}
.mt-acc-sidebar-card {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 4px 14px rgba(15, 18, 24, .04);
}
.mt-acc-avatar {
	position: relative;
	flex-shrink: 0;
}
.mt-acc-avatar-img,
.mt-acc-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #F0F2F5;
	display: block;
}
.mt-acc-avatar-dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 14px;
	height: 14px;
	background: var(--mt-success);
	border: 2.5px solid #FFFFFF;
	border-radius: 50%;
}
.mt-acc-identity {
	min-width: 0;
	flex: 1;
}
.mt-acc-name {
	font-family: 'Rubik', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #111318;
	letter-spacing: -.005em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mt-acc-email {
	font-size: 12px;
	color: #6B7280;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mt-acc-nav {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 8px;
	box-shadow: 0 4px 14px rgba(15, 18, 24, .04);
}
.mt-acc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mt-acc-nav li { margin: 0; }
.mt-acc-nav li a {
	display: grid;
	grid-template-columns: 36px 1fr 16px;
	align-items: center;
	gap: 8px;
	padding: 11px 12px;
	border-radius: 10px;
	color: #374151;
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: var(--mt-tx-fast);
}
.mt-acc-nav-icon {
	width: 36px;
	height: 36px;
	background: #F0F2F5;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6B7280;
	transition: var(--mt-tx-fast);
}
.mt-acc-nav-icon svg { width: 18px; height: 18px; }
.mt-acc-nav-arrow { color: var(--mt-border-2); transition: var(--mt-tx-fast); }
.mt-acc-nav li a:hover {
	background: #FFF0F1;
	color: #ce3633;
}
.mt-acc-nav li a:hover .mt-acc-nav-icon {
	background: rgba(206, 54, 51, .12);
	color: #ce3633;
}
.mt-acc-nav li a:hover .mt-acc-nav-arrow { color: #ce3633; transform: translateX(2px); }
.mt-acc-nav li.is-active a,
.mt-acc-nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
	background: #ce3633;
	color: #FFFFFF;
}
.mt-acc-nav li.is-active .mt-acc-nav-icon {
	background: rgba(255, 255, 255, .18);
	color: #FFFFFF;
}
.mt-acc-nav li.is-active .mt-acc-nav-arrow { color: #FFFFFF; }

/* WhatsApp support card en bas de sidebar */
.mt-acc-wa-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, var(--mt-success) 0%, var(--mt-success-dark) 100%);
	color: #FFFFFF !important;
	border-radius: 16px;
	padding: 16px 18px;
	text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(22, 163, 74, .25);
	transition: var(--mt-tx-ui);
}
.mt-acc-wa-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(22, 163, 74, .35);
	color: #FFFFFF !important;
}
.mt-acc-wa-ico {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, .18);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.mt-acc-wa-text { display: flex; flex-direction: column; line-height: 1.2; }
.mt-acc-wa-label { font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 700; }
.mt-acc-wa-sub { font-size: 12px; opacity: .9; margin-top: 2px; }

/* CONTENT */
.mt-account-content {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 14px rgba(15, 18, 24, .04);
	min-height: 480px;
}
.mt-account-content > p:first-child,
.mt-account-content .woocommerce-MyAccount-content-wrapper > p:first-child {
	color: #374151;
	font-size: 15px;
	line-height: 1.65;
}

/* DASHBOARD */
.mt-dash-greet h2 {
	font-family: 'Rubik', sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #111318;
	margin: 0 0 8px;
	letter-spacing: -.02em;
}
.mt-dash-greet-name { color: #ce3633; }
.mt-dash-greet p { color: #6B7280; font-size: 14px; line-height: 1.6; margin: 0 0 28px; }

.mt-dash-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 32px;
}
.mt-dash-stat {
	background: #F7F8FA;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	padding: 18px 20px;
}
.mt-dash-stat-ico {
	width: 36px;
	height: 36px;
	background: #FFFFFF;
	color: #ce3633;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	border: 1px solid #FFCDD1;
}
.mt-dash-stat-num {
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 26px;
	font-weight: 700;
	color: #111318;
	line-height: 1.1;
	letter-spacing: -.01em;
}
.mt-dash-stat-num-sm { font-size: 18px; }
.mt-dash-stat-num small { font-size: 12px; color: #6B7280; font-weight: 600; margin-left: 4px; }
.mt-dash-stat-lbl {
	font-size: 11px;
	font-weight: 700;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-top: 4px;
}

.mt-dash-section-title {
	font-family: 'Rubik', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #111318;
	margin: 0 0 14px;
	letter-spacing: -.01em;
}
.mt-dash-actions { margin-bottom: 32px; }
.mt-dash-actions-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.mt-dash-action {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: #FFFFFF;
	border: 1.5px solid #E5E7EB;
	border-radius: 14px;
	text-decoration: none !important;
	color: #111318;
	transition: var(--mt-tx-ui);
}
.mt-dash-action:hover {
	border-color: #ce3633;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(15, 18, 24, .08);
}
.mt-dash-action-ico {
	width: 44px;
	height: 44px;
	background: #FFF0F1;
	color: #ce3633;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.mt-dash-action-text { flex: 1; min-width: 0; }
.mt-dash-action-title {
	font-family: 'Rubik', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #111318;
	margin-bottom: 2px;
}
.mt-dash-action-sub { font-size: 12.5px; color: #6B7280; }
.mt-dash-action-arrow { color: #D1D5DB; transition: var(--mt-tx-ui); }
.mt-dash-action:hover .mt-dash-action-arrow { color: #ce3633; transform: translateX(2px); }

.mt-dash-recent-card {
	display: grid;
	grid-template-columns: auto auto 1fr auto auto;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #FFFFFF;
	border: 1.5px solid #E5E7EB;
	border-radius: 14px;
	text-decoration: none !important;
	color: #111318;
	transition: var(--mt-tx-ui);
}
.mt-dash-recent-card:hover { border-color: #ce3633; box-shadow: 0 8px 24px rgba(15, 18, 24, .08); }
.mt-dash-recent-meta { display: flex; flex-direction: column; }
.mt-dash-recent-num {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	font-weight: 700;
	color: #111318;
}
.mt-dash-recent-date { font-size: 12px; color: #6B7280; }
.mt-dash-recent-status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.mt-dash-status-pending,
.mt-dash-status-on-hold { background: #FFF7ED; color: #b45309; border: 1px solid #FED7AA; }
.mt-dash-status-processing { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.mt-dash-status-completed { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.mt-dash-status-cancelled,
.mt-dash-status-failed { background: var(--mt-danger-soft); color: var(--mt-danger-dark); border: 1px solid var(--mt-danger-soft); }
.mt-dash-recent-total {
	font-family: 'JetBrains Mono', monospace;
	font-size: 16px;
	font-weight: 700;
	color: #ce3633;
	white-space: nowrap;
}
.mt-dash-recent-arrow { color: #D1D5DB; }
.mt-dash-recent-card:hover .mt-dash-recent-arrow { color: #ce3633; }

/* Tweak default WC content (orders table, etc.) */
.mt-account-content table.shop_table,
.mt-account-content .woocommerce-orders-table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
}
.mt-account-content table.shop_table th {
	font-family: 'Rubik', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: .08em;
	background: #F7F8FA;
	padding: 14px 16px;
	border-bottom: 1px solid #E5E7EB;
	text-align: left;
}
.mt-account-content table.shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid #E5E7EB;
	font-size: 14px;
	color: #374151;
}
.mt-account-content table.shop_table tr:last-child td { border-bottom: 0; }
.mt-account-content .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #ce3633;
	color: #FFFFFF;
	border-radius: 8px;
	font-family: 'Rubik', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background 200ms;
}
.mt-account-content .button:hover { background: #B8001A; color: #FFFFFF; }
.mt-account-content .button.view { background: #FFFFFF; color: #ce3633; border: 1.5px solid #ce3633; }
.mt-account-content .button.view:hover { background: #ce3633; color: #FFFFFF; }

/* =============================================================================
 * LOGIN + SIGNUP (page non-connecté) — layout 2 colonnes
 * ========================================================================== */
.mt-account-login-section {
	margin: 36px auto 64px;
}
.mt-login-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	max-width: 1080px;
	margin: 0 auto;
}
.mt-login-card {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 4px 14px rgba(15, 18, 24, .04);
}
.mt-login-card-signup {
	background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F8 100%);
	border-color: #FFCDD1;
}
.mt-login-card-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #F0F2F5;
}
.mt-login-card-ico {
	width: 44px;
	height: 44px;
	background: #F0F2F5;
	color: #6B7280;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.mt-login-card-ico-red {
	background: #FFF0F1;
	color: #ce3633;
	border: 1px solid #FFCDD1;
}
.mt-login-card-head h2 {
	font-family: 'Rubik', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #111318;
	margin: 0 0 4px;
	letter-spacing: -.01em;
}
.mt-login-card-head p {
	color: #6B7280;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.mt-login-card .form-row {
	margin: 0 0 16px;
}
.mt-login-card label {
	font-family: 'Rubik', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
	display: block;
}
.mt-login-card input[type="text"],
.mt-login-card input[type="email"],
.mt-login-card input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #E5E7EB;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #111318;
	background: #FFFFFF;
	transition: border-color 200ms, box-shadow 200ms;
}
.mt-login-card input:focus {
	outline: none;
	border-color: #ce3633;
	box-shadow: 0 0 0 3px rgba(206, 54, 51, .12);
}

.mt-login-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 14px !important;
}
.mt-login-form-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #6B7280;
	cursor: pointer;
	margin: 0;
}
.mt-login-form-row .lost_password {
	font-size: 13px;
	color: #ce3633;
	text-decoration: none;
	font-weight: 600;
}
.mt-login-form-row .lost_password:hover { text-decoration: underline; }

.mt-login-submit {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	padding: 13px 20px !important;
	background: #111318 !important;
	color: #FFFFFF !important;
	border: 0;
	border-radius: 10px !important;
	font-family: 'Rubik', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: var(--mt-tx-ui) !important;
	text-decoration: none !important;
}
.mt-login-submit:hover { background: #000 !important; transform: translateY(-1px); }
.mt-login-submit-primary { background: #ce3633 !important; }
.mt-login-submit-primary:hover { background: #B8001A !important; box-shadow: 0 8px 24px rgba(206, 54, 51, .25); }

.mt-signup-info {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #065F46;
	margin: 0 0 16px !important;
}

.mt-signup-perks {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #FFCDD1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mt-signup-perk {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #374151;
	font-weight: 500;
}
.mt-signup-perk svg { color: var(--mt-success); flex-shrink: 0; }

[data-mt-theme="dark"] .mt-login-card { background: #13161E; border-color: rgba(255,255,255,.08); }
[data-mt-theme="dark"] .mt-login-card-signup { background: linear-gradient(180deg, #13161E 0%, rgba(206,54,51,.08) 100%); }
[data-mt-theme="dark"] .mt-login-card-head h2 { color: #F1F5F9; }
[data-mt-theme="dark"] .mt-login-card label { color: #D1D5DB; }
[data-mt-theme="dark"] .mt-login-card input { background: #1A1D27; color: #F1F5F9; border-color: rgba(255,255,255,.1); }

@media (max-width: 880px) {
	.mt-login-grid { grid-template-columns: 1fr; }
	.mt-login-card { padding: 24px 22px; }
}

/* Génère les inputs WC content (orders, edit profile) */
.mt-account-content input[type="text"],
.mt-account-content input[type="email"],
.mt-account-content input[type="tel"],
.mt-account-content input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #E5E7EB;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #111318;
	transition: border-color 200ms;
}
.mt-account-content input:focus { outline: none; border-color: #ce3633; box-shadow: 0 0 0 3px rgba(206, 54, 51, .12); }

/* DARK MODE */
[data-mt-theme="dark"] .mt-account-hero {
	background: linear-gradient(135deg, rgba(206,54,51,.08) 0%, #0C0E13 60%);
	border-bottom-color: rgba(255,255,255,.06);
}
[data-mt-theme="dark"] .mt-account-title { color: #F1F5F9; }
[data-mt-theme="dark"] .mt-account-sub { color: #D1D5DB; }
[data-mt-theme="dark"] .mt-acc-sidebar-card,
[data-mt-theme="dark"] .mt-acc-nav,
[data-mt-theme="dark"] .mt-account-content,
[data-mt-theme="dark"] .mt-dash-action,
[data-mt-theme="dark"] .mt-dash-recent-card,
[data-mt-theme="dark"] .mt-account-login-wrap .woocommerce-form-login {
	background: #13161E;
	border-color: rgba(255,255,255,.08);
}
[data-mt-theme="dark"] .mt-acc-name,
[data-mt-theme="dark"] .mt-dash-greet h2,
[data-mt-theme="dark"] .mt-dash-stat-num,
[data-mt-theme="dark"] .mt-dash-action-title { color: #F1F5F9; }
[data-mt-theme="dark"] .mt-acc-nav li a { color: #D1D5DB; }
[data-mt-theme="dark"] .mt-acc-nav li a:hover { background: rgba(206,54,51,.12); color: #ce3633; }
[data-mt-theme="dark"] .mt-dash-stat { background: #1A1D27; border-color: rgba(255,255,255,.06); }

/* RESPONSIVE */
@media (max-width: 900px) {
	.mt-account-layout { grid-template-columns: 1fr; }
	.mt-account-sidebar { position: static; }
	.mt-dash-stats { grid-template-columns: 1fr; }
	.mt-dash-actions-grid { grid-template-columns: 1fr; }
	.mt-account-hero-row { align-items: flex-start; }
	.mt-account-content { padding: 24px 20px; }
}
@media (max-width: 600px) {
	.mt-dash-recent-card {
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
	}
	.mt-dash-recent-meta { grid-column: 1; grid-row: 1; }
	.mt-dash-recent-status { grid-column: 2; grid-row: 1; }
	.mt-dash-recent-total { grid-column: 1 / -1; grid-row: 2; }
	.mt-dash-recent-arrow { display: none; }
}
