/* ==========================================================================
   MON COMPTE : navigation, tableau de bord, abonnement, commandes, adresses, connexion.
   ========================================================================== */

/* ---------- Mise en page : barre de menu en haut, contenu pleine largeur ---------- */
.bdp-compte {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--esp-6, 2rem);
}

.bdp-compte__contenu {
	min-width: 0;
}

.bdp-compte__titre {
	margin-bottom: var(--esp-4, 1rem);
	font-size: var(--fs-xl, 1.5rem);
}

.bdp-compte__intro {
	margin-bottom: var(--esp-5, 1.5rem);
	color: var(--c-texte-doux, #555);
}

/* ---------- Navigation : une colonne par lien ; sous 1100 px, la barre défile à l'horizontale ---------- */
.bdp-compte-nav {
	min-width: 0;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	background: var(--c-surface, #fff);
}

.bdp-compte-nav__bascule {
	display: none;
}

.bdp-compte-nav__liste {
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.bdp-compte-nav__item {
	flex: 0 0 auto;
	scroll-snap-align: center;
}

.bdp-compte-nav__lien {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--esp-3, 0.75rem);
	min-height: 3.25rem;
	padding: var(--esp-2, 0.5rem) var(--esp-5, 1.5rem);
	border-bottom: 3px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--duree-s, 0.2s) var(--ease, ease), border-color var(--duree-s, 0.2s) var(--ease, ease);
}

.bdp-compte-nav__lien:hover {
	background: var(--c-surface-2, #eee);
}

.bdp-compte-nav__lien[aria-current="page"] {
	border-bottom-color: var(--c-accent, #3cc4ad);
	background: var(--c-primaire, #123);
	color: var(--c-primaire-texte, #fff);
	font-weight: 700;
}

.bdp-compte-nav__icone {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

@media (min-width: 1100px) {
	.bdp-compte-nav__liste {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		overflow: visible;
	}

	.bdp-compte-nav__lien {
		padding-inline: var(--esp-3, 0.75rem);
		white-space: normal;
		text-align: center;
	}
}
/* ---------- Tableau de bord ---------- */
.bdp-compte-accueil__salut {
	margin-bottom: var(--esp-5, 1.5rem);
}

/* ---------- Mon abonnement : anneau du plafond, chiffres animés, temps restant ---------- */
.bdp-abo {
	position: relative;
	display: grid;
	gap: var(--esp-5, 1.5rem);
	padding: var(--esp-5, 1.5rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ccd);
	border-top: 4px solid var(--c-accent, #3cc4ad);
	background: var(--c-surface, #fff);
}

.bdp-abo--actif {
	border: 0;
	background: var(--c-primaire, #0b2a3a);
	color: var(--c-primaire-texte, #fff);
}

.bdp-abo__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--esp-3, 0.75rem);
}

.bdp-abo__sur {
	margin: 0;
	color: var(--c-accent, #3cc4ad);
	font-size: var(--fs-xs, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bdp-abo--attente .bdp-abo__sur,
.bdp-abo--aucun .bdp-abo__sur {
	color: var(--c-texte-doux, #555);
}

.bdp-abo__titre {
	margin: 0.1rem 0 0;
	font-size: var(--fs-2xl, 2rem);
	line-height: 1.05;
}

.bdp-abo__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.3em 0.9em;
	border-radius: var(--r-pill, 999px);
	background: var(--c-accent, #3cc4ad);
	color: var(--c-accent-texte, #062431);
	font-size: var(--fs-xs, 0.75rem);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bdp-abo__badge::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: var(--r-pill, 999px);
	background: currentcolor;
}

.bdp-abo__badge--attente {
	background: var(--c-surface-2, #e7edf1);
	color: var(--c-alerte, #84540a);
}

.bdp-abo__texte {
	max-width: 42rem;
	margin: 0;
	color: var(--c-texte-doux, #555);
}

.bdp-abo__lien {
	margin: 0;
}

.bdp-abo__grille {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	align-items: center;
	gap: var(--esp-6, 2rem);
}

/* Anneau : le trait se remplit à l'apparition. */
.bdp-anneau {
	position: relative;
	display: grid;
	place-items: center;
	max-width: 15rem;
	margin: 0;
	aspect-ratio: 1;
}

.bdp-anneau__svg {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	fill: none;
	stroke-width: 9;
}

.bdp-anneau__piste {
	stroke: var(--c1-fond-fonce-2, rgb(255 255 255 / 0.12));
}

.bdp-anneau__valeur {
	--c: 326.73;
	stroke: var(--c-accent, #3cc4ad);
	stroke-linecap: round;
	stroke-dasharray: var(--c);
	stroke-dashoffset: calc(var(--c) * (1 - var(--taux, 0)));
}

.js .bdp-anneau:not(.is-visible) .bdp-anneau__valeur {
	stroke-dashoffset: var(--c);
}

@media (prefers-reduced-motion: no-preference) {
	.bdp-anneau__valeur {
		transition: stroke-dashoffset 1.6s var(--ease, ease);
	}
}

.bdp-anneau__centre {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 0.15rem;
	padding: 18%;
	text-align: center;
}

.bdp-anneau__centre strong {
	font-family: var(--f-titre, inherit);
	font-size: var(--fs-xl, 1.7rem);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.bdp-anneau__centre span {
	color: var(--c1-sur-fonce-doux, #cfe0e8);
	font-size: var(--fs-xs, 0.78rem);
	line-height: 1.25;
}

/* Chiffres clés. */
.bdp-abo__chiffres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--esp-4, 1rem);
	margin: 0;
}

.bdp-abo__chiffre {
	padding: var(--esp-4, 1rem);
	border: var(--filet, 1px) solid var(--c1-ligne-fonce, rgb(255 255 255 / 0.18));
	background: var(--c1-fond-fonce-2, rgb(255 255 255 / 0.06));
}

.bdp-abo__chiffre--remise {
	border-color: var(--c-accent, #3cc4ad);
	background: var(--c-accent, #3cc4ad);
	color: var(--c-accent-texte, #062431);
}

.bdp-abo__chiffre dt {
	font-size: var(--fs-xs, 0.75rem);
	letter-spacing: 0.1em;
	opacity: 0.8;
	text-transform: uppercase;
}

.bdp-abo__chiffre dd {
	margin: 0.3rem 0 0;
	font-family: var(--f-titre, inherit);
	font-size: var(--fs-xl, 1.8rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.05;
}

/* Barre de temps. */
.bdp-temps__piste {
	height: 0.6rem;
	overflow: hidden;
	background: var(--c1-fond-fonce-2, rgb(255 255 255 / 0.12));
}

.bdp-temps__valeur {
	height: 100%;
	background: var(--c-accent, #3cc4ad);
	transform: scaleX(var(--temps, 0));
	transform-origin: left center;
}

.js .bdp-temps:not(.is-visible) .bdp-temps__valeur {
	transform: scaleX(0);
}

@media (prefers-reduced-motion: no-preference) {
	.bdp-temps__valeur {
		transition: transform 1.6s 0.2s var(--ease, ease);
	}
}

.bdp-temps__dates {
	display: flex;
	justify-content: space-between;
	gap: var(--esp-3, 0.75rem);
	margin: 0.5rem 0 0;
	color: var(--c1-sur-fonce-doux, #cfe0e8);
	font-size: var(--fs-sm, 0.85rem);
}

@media (max-width: 40rem) {
	.bdp-abo__grille {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.bdp-abo__chiffres {
		width: 100%;
	}
}
/* ---------- Commandes ---------- */
.bdp-pagination--simple {
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-3, 0.75rem);
	justify-content: space-between;
}

.bdp-commande-entete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--esp-3, 0.75rem);
	margin-bottom: var(--esp-5, 1.5rem);
}

.bdp-commande-entete__texte {
	margin: 0;
	color: var(--c-texte-doux, #555);
}

.bdp-commande-suivi {
	margin-bottom: var(--esp-6, 2rem);
}

.bdp-commande-suivi__liste {
	display: grid;
	gap: var(--esp-4, 1rem);
	margin: 0;
	padding: 0 0 0 var(--esp-4, 1rem);
	border-left: calc(var(--filet, 1px) * 2) solid var(--c-ligne, #ddd);
	list-style: none;
}

.bdp-commande-suivi__date {
	display: block;
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-commande-suivi__texte > :last-child {
	margin-bottom: 0;
}

/* ---------- Adresses ---------- */
.bdp-adresses {
	display: grid;
	gap: var(--esp-4, 1rem);
}

@media (min-width: 640px) {
	.bdp-adresses {
		grid-template-columns: 1fr 1fr;
	}
}

.bdp-adresses__carte {
	padding: var(--esp-5, 1.5rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: var(--r-l, 8px);
	background: var(--c-surface, #fff);
}

.bdp-adresses__entete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--esp-3, 0.75rem);
	margin-bottom: var(--esp-3, 0.75rem);
}

.bdp-adresses__titre {
	margin: 0;
	font-size: var(--fs-lg, 1.25rem);
}

.bdp-adresses__modifier {
	font-weight: 600;
}

/* ---------- Connexion, inscription, mot de passe oublié ---------- */
.bdp-acces {
	display: grid;
	gap: var(--esp-5, 1.5rem);
	max-width: 30rem;
	margin-inline: auto;
}

@media (min-width: 800px) {
	.bdp-acces--duo {
		grid-template-columns: 1fr 1fr;
		max-width: 56rem;
	}
}

.bdp-acces__carte {
	padding: var(--esp-6, 2rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: var(--r-l, 8px);
	background: var(--c-surface, #fff);
}

.bdp-acces__titre {
	margin-bottom: var(--esp-5, 1.5rem);
	font-size: var(--fs-xl, 1.5rem);
}

.bdp-acces .bdp-formulaire__actions {
	flex-direction: column;
	align-items: stretch;
}

.bdp-acces .bdp-formulaire__aide {
	margin: var(--esp-4, 1rem) 0 0;
	text-align: center;
}

/* Tables natives conservées (moyens de paiement enregistrés, téléchargements). */
.woocommerce-MyAccount-content .shop_table {
	width: 100%;
}

.woocommerce-MyAccount-content .shop_table th,
.woocommerce-MyAccount-content .shop_table td {
	padding: var(--esp-3, 0.75rem);
	border-bottom: var(--filet, 1px) solid var(--c-ligne, #ddd);
	text-align: left;
}
