/* 42.16 · Page dédiée Mon compte & Connexion (/mon-compte/) — zéro pop-up */

.hd-cm-page {
	width: 100%;
	max-width: 920px;
	margin: clamp(14px, 3vw, 34px) auto clamp(48px, 6vw, 84px);
	color: #2d201c;
	font-family: var(--f-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}
.hd-cm-page.is-guest {
	max-width: 480px;
	margin: clamp(18px, 4.5vw, 52px) auto clamp(56px, 7vw, 88px);
}
.hd-cm-page-top {
	margin: 0 0 14px;
}
.hd-cm-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	color: #7d6b62 !important;
	font: 500 13.5px/1 var(--f-ui, sans-serif);
	text-decoration: none !important;
	transition: color .15s ease;
}
.hd-cm-back:hover { color: #2d201c !important; }
.hd-cm-surface {
	background: #faf7f2;
	border: 1px solid rgba(45, 32, 28, .09);
	border-radius: 28px;
	overflow: hidden;
}
.hd-cm-page.is-guest .hd-cm-surface {
	background: #ffffff;
}

.hd-cm-load {
	margin: 0;
	padding: 56px 24px;
	text-align: center;
	color: #7d6b62;
	font-size: 14.5px;
}

/* Hero Profil */
.hd-cm-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 30px 32px 24px;
	background: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
	border-bottom: 1px solid rgba(45, 32, 28, .07);
}
.hd-cm-id {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
.hd-cm-av {
	position: relative;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #2d201c;
	color: #faf7f2;
	flex: none;
	cursor: pointer;
	display: block;
}
.hd-cm-av-in {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 400 26px/1 var(--f-titre, Georgia, serif);
}
.hd-cm-av-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-cm-av-cam {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(45, 32, 28, .18);
	color: #2d201c;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hd-cm-av-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.hd-cm-meta { display: grid; gap: 4px; min-width: 0; }
.hd-cm-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hd-cm-name {
	margin: 0;
	font: 400 25px/1.1 var(--f-titre, Georgia, serif);
	letter-spacing: -.015em;
	color: #2d201c;
}
.hd-cm-tier {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: #f1ebe2;
	color: #2d201c;
	font: 600 12px/1 var(--f-ui, sans-serif);
}
.hd-cm-tier.is-dark { background: #2d201c; color: #faf7f2; }
.hd-cm-bio { margin: 0; font-size: 13.5px; color: #5a4840; }
.hd-cm-since { font-size: 12px; color: #8a786f; }

/* Boutons */
.hd-cm-btn-pri {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #2d201c;
	color: #faf7f2;
	font: 600 13.5px/1 var(--f-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
	box-shadow: none !important;
	transition: background .15s ease;
}
.hd-cm-btn-pri:hover { background: #1d1411; color: #faf7f2; box-shadow: none !important; }
.hd-cm-btn-sec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 15px;
	border: 0;
	border-radius: 999px;
	background: #efe9e0;
	color: #2d201c;
	font: 600 13px/1 var(--f-ui, sans-serif);
	cursor: pointer;
	box-shadow: none !important;
}
.hd-cm-btn-sec:hover { background: #e5ddd2; box-shadow: none !important; }

/* Onglets */
.hd-cm-tabs {
	display: flex;
	gap: 22px;
	padding: 0 28px;
	border-bottom: 1px solid rgba(45, 32, 28, .08);
	overflow-x: auto;
}
.hd-cm-tabs--flush { padding: 0; }
.hd-cm-tab {
	border: 0;
	background: transparent;
	padding: 14px 0 12px;
	border-bottom: 2px solid transparent;
	color: #8a786f;
	font: 500 14px/1.2 var(--f-ui, sans-serif);
	cursor: pointer;
	white-space: nowrap;
	margin-bottom: -1px;
	box-shadow: none !important;
}
.hd-cm-tab.is-on { color: #2d201c; font-weight: 600; border-bottom-color: #2d201c; }

.hd-cm-body { padding: 22px 28px 28px; display: grid; gap: 16px; }
.hd-cm-panel { display: none; gap: 16px; }
.hd-cm-panel.is-on { display: grid; }

.hd-compte-toast {
	display: none;
	padding: 10px 14px;
	border-radius: 14px;
	background: #e6f0ea;
	color: #244f38;
	font-size: 13px;
	font-weight: 600;
}
.hd-compte-toast.is-on { display: block; }
.hd-compte-toast.is-err { background: #f5ebe8; color: #7a343b; }

/* Cartes & grilles */
.hd-cm-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.hd-cm-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 18px 20px;
	display: grid;
	gap: 12px;
	align-content: start;
}
.hd-cm-eyebrow {
	font: 600 10.5px/1.2 var(--f-ui, sans-serif);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #7d6b62;
}
.hd-cm-big-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}
.hd-cm-num {
	font: 400 38px/1 var(--f-titre, Georgia, serif);
	color: #2d201c;
	font-variant-numeric: tabular-nums;
}
.hd-cm-num--sm { font-size: 26px; }
.hd-cm-num small {
	font-family: var(--f-ui, sans-serif);
	font-size: 14px;
	font-weight: 500;
	color: #7d6b62;
	margin-left: 6px;
}
.hd-cm-pill-ok {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e6f0ea;
	color: #244f38;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.hd-cm-pill-sand {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1ebe2;
	color: #5a4840;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.hd-cm-track { height: 6px; border-radius: 999px; background: #ebe4da; overflow: hidden; }
.hd-cm-fill { display: block; height: 100%; border-radius: 999px; background: #2d201c; }
.hd-cm-sub { margin: 0; font-size: 13px; line-height: 1.45; color: #7d6b62; }

/* Frise 4 paliers */
.hd-cm-tiers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
.hd-cm-tier-card {
	padding: 13px 13px 11px;
	border-radius: 16px;
	background: #faf7f2;
	border: 1px solid rgba(45, 32, 28, .08);
	display: grid;
	gap: 4px;
}
.hd-cm-tier-card.is-done { background: #f1ebe2; border-color: rgba(45, 32, 28, .16); }
.hd-cm-tier-card.is-current { background: #2d201c; color: #faf7f2; border-color: #2d201c; }
.hd-cm-tier-top {
	display: flex;
	justify-content: space-between;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .72;
}
.hd-cm-tier-card strong { font: 400 17px/1.15 var(--f-titre, Georgia, serif); }
.hd-cm-tier-card span { font-size: 12px; line-height: 1.35; opacity: .82; }

/* Activité */
.hd-cm-act { display: grid; gap: 8px; }
.hd-cm-act-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 13px;
	border-radius: 14px;
	background: #faf7f2;
	font-size: 13px;
}
.hd-cm-act-row strong { display: block; font-weight: 600; color: #2d201c; }
.hd-cm-act-row small { color: #7d6b62; font-size: 11.5px; }
.hd-cm-empty { margin: 0; font-size: 13.5px; color: #7d6b62; line-height: 1.45; }

/* Formulaire Profil */
.hd-cm-field { display: grid; gap: 5px; }
.hd-cm-field span { font-size: 12.5px; font-weight: 600; color: #5a4840; }
html:not(#hd-f):not(#hd-g):not(#hd-h) .hd-compte-modal input[type="text"],
html:not(#hd-f):not(#hd-g):not(#hd-h) .hd-compte-modal input[type="email"],
html:not(#hd-f):not(#hd-g):not(#hd-h) .hd-compte-modal input[type="password"] {
	width: 100%;
	min-height: 42px;
	padding: 9px 13px !important;
	border-radius: 13px !important;
	border: 1px solid rgba(45, 32, 28, .13) !important;
	background: #faf7f2 !important;
	color: #2d201c !important;
	font: 400 14px/1.3 var(--f-ui, sans-serif) !important;
	box-shadow: none !important;
}
html:not(#hd-f):not(#hd-g):not(#hd-h) .hd-compte-modal input:focus {
	border-color: #2d201c !important;
	background: #ffffff !important;
	outline: none !important;
}
.hd-cm-mdp-plie summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #2d201c; }
.hd-cm-mdp-box { display: grid; gap: 10px; margin-top: 10px; }

/* Interrupteur soyeux Newsletter */
.hd-cm-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 15px;
	border-radius: 15px;
	background: #faf7f2;
}
.hd-cm-toggle-row strong { display: block; font-size: 13.5px; color: #2d201c; }
.hd-cm-toggle-row span { font-size: 12px; color: #7d6b62; }
.hd-cm-switch {
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	border: 0;
	background: #d8cfc4;
	cursor: pointer;
	flex: none;
	box-shadow: none !important;
	transition: background .2s ease;
}
.hd-cm-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform .2s ease;
}
.hd-cm-switch.is-on { background: #2d201c; }
.hd-cm-switch.is-on::after { transform: translateX(18px); }

/* Confidentialité & suppression repliée */
.hd-cm-rgpd-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 16px;
	background: #ffffff;
}
.hd-cm-rgpd-row strong { display: block; font-size: 14px; color: #2d201c; }
.hd-cm-rgpd-row span { font-size: 12.5px; color: #7d6b62; }

.hd-cm-danger-plie {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid rgba(45, 32, 28, .08);
}
.hd-cm-danger-plie summary {
	list-style: none;
	cursor: pointer;
	font-size: 12.5px;
	color: #8a786f;
	user-select: none;
}
.hd-cm-danger-plie summary::-webkit-details-marker { display: none; }
.hd-cm-danger-box {
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: 15px;
	background: #f5eae8;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.hd-cm-danger-box p { margin: 0; font-size: 12.5px; color: #6e353b; max-width: 46ch; }
.hd-cm-btn-del {
	border: 1px solid rgba(122, 52, 59, .30);
	background: transparent;
	color: #7a343b;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	font: 600 12.5px/1 var(--f-ui, sans-serif);
	cursor: pointer;
	box-shadow: none !important;
}
.hd-cm-btn-del:hover { background: #7a343b; color: #ffffff; }

/* Modale Connexion / Inscription */
.hd-cm-auth { padding: 28px 26px 26px; display: grid; gap: 14px; }
.hd-cm-auth-head h2 {
	margin: 0 0 6px;
	padding-right: 36px;
	font: 400 25px/1.12 var(--f-titre, Georgia, serif);
	color: #2d201c;
}
.hd-cm-auth-head p { margin: 0; font-size: 14px; line-height: 1.45; color: #7d6b62; }
.hd-cm-gwrap { display: grid; gap: 10px; }
.hd-cm-glink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(45, 32, 28, .15);
	background: #ffffff;
	color: #2d201c;
	font: 600 14px/1 var(--f-ui, sans-serif);
	text-decoration: none;
	box-shadow: none !important;
}
.hd-cm-glink:hover { background: #f1ebe2; }
.hd-cm-sep {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #8a786f;
}
.hd-cm-sep::before, .hd-cm-sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(45, 32, 28, .10);
}
.hd-cm-auth-form { display: grid; gap: 10px; }
.hd-cm-check {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	padding: 11px 13px;
	border-radius: 14px;
	background: #f1ebe2;
	font-size: 13px;
	line-height: 1.4;
	color: #2d201c;
	cursor: pointer;
}
.hd-cm-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #2d201c; }
.hd-cm-auth-msg { margin: 0; font-size: 13px; font-weight: 500; color: #8b333c; text-align: center; }

.hd-compte-modal[open] {
	animation: hd-cm-in .26s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes hd-cm-in {
	from { opacity: 0; transform: translateY(10px) scale(.985); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.hd-compte-modal[open], .hd-sk { animation: none !important; }
}

/* Skeletons sable doux pendant le chargement */
.hd-cm-skel { padding: 28px; display: grid; gap: 16px; }
.hd-cm-skel-hero { display: flex; align-items: center; gap: 16px; }
.hd-cm-skel-lines { flex: 1; display: grid; gap: 8px; }
.hd-cm-skel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hd-sk {
	display: block;
	border-radius: 14px;
	background: linear-gradient(90deg, #f1ebe2 25%, #faf7f2 50%, #f1ebe2 75%);
	background-size: 200% 100%;
	animation: hd-sk-shimmer 1.4s ease-in-out infinite;
}
.hd-sk--av { width: 68px; height: 68px; border-radius: 50%; flex: none; }
.hd-sk--t { height: 22px; width: 42%; }
.hd-sk--s { height: 14px; width: 65%; }
.hd-sk--card { height: 130px; border-radius: 20px; }
.hd-sk--wide { height: 96px; border-radius: 20px; }
@keyframes hd-sk-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Badge compteur sur onglet */
.hd-cm-tab-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 5px;
	border-radius: 999px;
	background: #efe9e0;
	color: #2d201c;
	font-size: 11px;
	font-weight: 600;
}
.hd-cm-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.hd-cm-link-soft {
	border: 0;
	background: none;
	padding: 0;
	font: 500 12px/1 var(--f-ui, sans-serif);
	color: #8a786f;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none !important;
}
.hd-cm-link-soft:hover { color: #2d201c; }
.hd-cm-go-sm { text-decoration: none; }

/* Bandeau Notifications discrètes */
.hd-cm-notifs {
	display: grid;
	gap: 8px;
	padding: 14px 16px;
	border-radius: 18px;
	background: #f1ebe2;
}
.hd-cm-notifs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.hd-cm-notif-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 13px;
	background: #ffffff;
	color: #2d201c;
	text-decoration: none;
	font-size: 13px;
}
.hd-cm-notif-row strong { display: block; font-weight: 600; }
.hd-cm-notif-row small { color: #7d6b62; font-size: 12px; }
.hd-cm-notif-d { font-size: 11.5px; color: #8a786f; white-space: nowrap; }

/* Onglet Coups de cœur (Wishlist) */
.hd-cm-wish-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.hd-cm-wish-card {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 34px 12px 12px;
	border-radius: 18px;
	background: #ffffff;
}
.hd-cm-wish-img {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #f7f3ec;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-decoration: none;
	color: #8a786f;
}
.hd-cm-wish-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hd-cm-wish-tx { display: grid; gap: 2px; min-width: 0; }
.hd-cm-wish-mq { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a786f; }
.hd-cm-wish-nm {
	font: 500 14px/1.25 var(--f-ui, sans-serif);
	color: #2d201c;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.hd-cm-wish-nm:hover { text-decoration: underline; }
.hd-cm-wish-px { font-size: 13px; font-weight: 650; color: #5a4840; margin-top: 2px; }
.hd-cm-wish-del {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 0;
	background: #f1ebe2;
	color: #7d6b62;
	font-size: 11px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}
.hd-cm-wish-del:hover { background: #e5ddd2; color: #2d201c; }
.hd-cm-wish-empty { text-align: center; justify-items: center; padding: 28px 20px; }
.hd-cm-wish-empty strong { font: 400 20px/1.2 var(--f-titre, Georgia, serif); color: #2d201c; }

/* Pilules Univers favori */
.hd-cm-uchips { display: flex; flex-wrap: wrap; gap: 7px; }
.hd-cm-uchip {
	min-height: 34px;
	padding: 0 13px;
	border-radius: 999px;
	border: 1px solid rgba(45, 32, 28, .14);
	background: #faf7f2;
	color: #5a4840;
	font: 500 13px/1 var(--f-ui, sans-serif);
	cursor: pointer;
	box-shadow: none !important;
}
.hd-cm-uchip.is-on {
	background: #2d201c;
	border-color: #2d201c;
	color: #faf7f2;
	font-weight: 600;
}
.hd-cm-cnil {
	margin: 4px 0 0;
	font: 400 12px/1.45 var(--f-ui, sans-serif);
	color: #7d6b62;
	text-align: center;
}
.hd-cm-cnil a { color: #2d201c; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
	.hd-cm-page,
	.hd-cm-page.is-guest { margin: 12px auto 48px; }
	.hd-cm-surface { border-radius: 22px; }
	.hd-cm-wish-grid, .hd-cm-skel-grid { grid-template-columns: 1fr; }
	.hd-cm-hero { padding: 22px 20px 18px; }
	.hd-cm-tabs { padding: 0 20px; }
	.hd-cm-body { padding: 18px 20px 26px; }
	.hd-cm-grid2 { grid-template-columns: 1fr; }
	.hd-cm-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
