/* ==========================================================================
 * Mon compte : connexion, création de compte, espace client.
 *
 * Même esprit que la connexion des catalogues en marque blanche : un cadre
 * blanc à filet noir, titre en petites capitales, onglets soulignés, champs
 * réduits à leur trait, bouton noir pleine largeur. Aucun bordeaux.
 * ========================================================================== */

.dyr-compte,
.dyr-espace {
	--dyr-encre: #1A1A1A;
	--dyr-gris: #5A5A5A;
	--dyr-filet: rgba(0, 0, 0, .18);
	--dyr-titre: "Outfit", "Helvetica Neue", Arial, sans-serif;
	--dyr-texte: "Jost", "Helvetica Neue", Arial, sans-serif;
	color: var(--dyr-encre);
	font-family: var(--dyr-texte);
}

/* Les anciens habillages du thème n'ont plus lieu d'être autour du cadre. */
body.woocommerce-account .woocommerce,
body.woocommerce-account .entry-content > .woocommerce { max-width: none !important; }

/* ---------------------------------------------------------------- Cadre */
.dyr-compte {
	padding: 56px 16px 72px;
	box-sizing: border-box;
}
.dyr-compte__cadre {
	max-width: 620px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--dyr-encre);
	padding: 52px 60px 44px;
	box-sizing: border-box;
}

.dyr-compte .dyr-compte__titre,
.dyr-espace .dyr-compte__titre {
	font-family: var(--dyr-titre) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	color: var(--dyr-encre) !important;
	margin: 0 0 34px !important;
	line-height: 1.4 !important;
}

/* -------------------------------------------------------------- Onglets */
.dyr-compte__onglets {
	display: flex;
	margin: 0 0 34px;
	border-bottom: 1px solid var(--dyr-filet);
}
.dyr-compte .dyr-compte__onglets button {
	flex: 1;
	background: none !important;
	border: 0 !important;
	border-bottom: 3px solid transparent !important;
	border-radius: 0 !important;
	margin: 0 0 -1px !important;
	padding: 0 0 16px !important;
	min-height: 0 !important;
	box-shadow: none !important;
	font-family: var(--dyr-titre) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	color: #9A9A9A !important;
	cursor: pointer;
	transition: color .2s ease;
}
.dyr-compte .dyr-compte__onglets button[aria-selected="true"] {
	color: var(--dyr-encre) !important;
	border-bottom-color: var(--dyr-encre) !important;
}
.dyr-compte .dyr-compte__onglets button:hover { color: var(--dyr-encre) !important; }

/* --------------------------------------------------------------- Champs */
.dyr-compte__form[hidden] { display: none !important; }

.dyr-compte .dyr-compte__champ { margin: 0 0 26px; padding: 0; }
.dyr-compte .dyr-compte__champ label,
.dyr-espace .woocommerce-form-row label,
.dyr-espace .form-row label {
	display: block;
	font-family: var(--dyr-titre) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	color: var(--dyr-gris) !important;
	margin: 0 0 6px !important;
	line-height: 1.4 !important;
}
.dyr-compte .dyr-compte__champ input,
.dyr-espace input[type="text"],
.dyr-espace input[type="email"],
.dyr-espace input[type="tel"],
.dyr-espace input[type="password"],
.dyr-espace input[type="number"],
.dyr-espace select,
.dyr-espace textarea {
	width: 100% !important;
	box-sizing: border-box;
	border: 0 !important;
	border-bottom: 1px solid var(--dyr-filet) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 12px 0 !important;
	min-height: 48px;
	font-family: var(--dyr-texte) !important;
	font-size: 16px !important;
	color: var(--dyr-encre) !important;
	-webkit-appearance: none;
	appearance: none;
}
.dyr-compte .dyr-compte__champ input:focus,
.dyr-espace input:focus,
.dyr-espace select:focus,
.dyr-espace textarea:focus {
	outline: none !important;
	border-bottom-color: var(--dyr-encre) !important;
}
.dyr-espace select {
	background-image: linear-gradient(45deg, transparent 50%, var(--dyr-encre) 50%), linear-gradient(135deg, var(--dyr-encre) 50%, transparent 50%) !important;
	background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50% !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
}

/* « Rester connecté » */
.dyr-compte .dyr-compte__memo {
	display: flex !important;
	align-items: center;
	gap: 14px;
	margin: 4px 0 30px !important;
	cursor: pointer;
	font-family: var(--dyr-titre);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dyr-gris);
}
.dyr-compte .dyr-compte__memo input,
.dyr-espace input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 26px;
	width: 26px !important;
	height: 26px !important;
	margin: 0 !important;
	border: 1px solid #8A8A8A !important;
	border-radius: 4px !important;
	background: #fff !important;
	cursor: pointer;
	position: relative;
}
.dyr-compte .dyr-compte__memo input:checked,
.dyr-espace input[type="checkbox"]:checked {
	background: var(--dyr-encre) !important;
	border-color: var(--dyr-encre) !important;
}
.dyr-compte .dyr-compte__memo input:checked::after,
.dyr-espace input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 8px; top: 3px;
	width: 7px; height: 13px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* -------------------------------------------------------------- Boutons */
.dyr-compte .dyr-compte__bouton,
.dyr-espace .button,
.dyr-espace button[type="submit"],
.dyr-espace .woocommerce-Button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 64px;
	padding: 0 24px !important;
	background: var(--dyr-encre) !important;
	color: #fff !important;
	border: 1px solid var(--dyr-encre) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--dyr-titre) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity .2s ease;
}
.dyr-compte .dyr-compte__bouton:hover,
.dyr-espace .button:hover,
.dyr-espace button[type="submit"]:hover,
.dyr-espace .woocommerce-Button:hover {
	background: var(--dyr-encre) !important;
	color: #fff !important;
	opacity: .85;
}

.dyr-compte .dyr-compte__lien { margin: 26px 0 0; font-size: 15px; }
.dyr-compte .dyr-compte__lien a {
	color: var(--dyr-encre) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.dyr-compte .dyr-compte__lien a:hover { border-bottom-color: var(--dyr-encre); }

.dyr-compte .dyr-compte__aide,
.dyr-compte .woocommerce-privacy-policy-text,
.dyr-compte .woocommerce-privacy-policy-text p {
	font-size: 13px !important;
	line-height: 1.7 !important;
	color: var(--dyr-gris) !important;
	margin: 0 0 24px !important;
}
.dyr-compte .woocommerce-privacy-policy-text { margin: 22px 0 0 !important; }
.dyr-compte .woocommerce-privacy-policy-text a { color: var(--dyr-encre) !important; text-decoration: underline; }

/* Messages de WooCommerce dans le cadre : sobres, sans couleur criarde. */
.dyr-compte__avis:empty { display: none; }
.dyr-compte .woocommerce-error,
.dyr-compte .woocommerce-message,
.dyr-compte .woocommerce-info,
.dyr-espace .woocommerce-error,
.dyr-espace .woocommerce-message,
.dyr-espace .woocommerce-info {
	list-style: none;
	margin: 0 0 26px !important;
	padding: 14px 16px !important;
	background: #FAF9F7 !important;
	border: 0 !important;
	border-left: 2px solid var(--dyr-encre) !important;
	color: var(--dyr-encre) !important;
	font-size: 14px !important;
	line-height: 1.6;
}
.dyr-compte .woocommerce-error::before,
.dyr-compte .woocommerce-message::before,
.dyr-compte .woocommerce-info::before,
.dyr-espace .woocommerce-error::before,
.dyr-espace .woocommerce-message::before,
.dyr-espace .woocommerce-info::before { display: none !important; }

/* ------------------------------------------------------- Espace client */
.dyr-espace {
	max-width: 980px;
	margin: 0 auto;
	padding: 56px 16px 80px;
	box-sizing: border-box;
}
.dyr-espace__tete { text-align: center; margin: 0 0 30px; }
.dyr-espace .dyr-espace__tete .dyr-compte__titre { margin-bottom: 10px !important; }
.dyr-espace__bonjour { margin: 0; font-size: 15px; color: var(--dyr-gris); }

/* La grille à deux colonnes des anciennes feuilles ne s'applique plus. */
.dyr-espace .woocommerce-MyAccount-navigation,
.dyr-espace .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	position: static !important;
	transform: none !important;
}

.dyr-espace__nav { margin: 0 0 40px; border-bottom: 1px solid var(--dyr-filet); }
.dyr-espace .dyr-espace__onglets {
	display: flex;
	justify-content: center;
	gap: 34px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.dyr-espace .dyr-espace__onglets::-webkit-scrollbar { display: none; }
.dyr-espace .dyr-espace__onglets li { margin: 0 !important; padding: 0 !important; flex: 0 0 auto; }
.dyr-espace .dyr-espace__onglets li::before { display: none !important; }
.dyr-espace .dyr-espace__onglets a {
	display: block;
	padding: 0 0 16px;
	margin: 0 0 -1px;
	border-bottom: 3px solid transparent;
	font-family: var(--dyr-titre);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none !important;
	color: #9A9A9A !important;
	transition: color .2s ease;
}
.dyr-espace .dyr-espace__onglets a:hover { color: var(--dyr-encre) !important; }
.dyr-espace .dyr-espace__onglets a[aria-current="page"] {
	color: var(--dyr-encre) !important;
	border-bottom-color: var(--dyr-encre);
}

.dyr-espace__contenu { font-size: 15px; line-height: 1.7; }
.dyr-espace__contenu a { color: var(--dyr-encre); }
.dyr-espace__contenu h2,
.dyr-espace__contenu h3,
.dyr-espace__contenu legend {
	font-family: var(--dyr-titre) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	color: var(--dyr-encre) !important;
	margin: 0 0 18px !important;
}
.dyr-espace__contenu fieldset { border: 0; padding: 0; margin: 30px 0 0; }
.dyr-espace__contenu .woocommerce-form-row,
.dyr-espace__contenu .form-row { margin: 0 0 24px !important; padding: 0 !important; }
.dyr-espace__contenu .woocommerce-form-row em,
.dyr-espace__contenu .form-row em { font-size: 12px; color: var(--dyr-gris); }
.dyr-espace__contenu form .button,
.dyr-espace__contenu form button[type="submit"] { max-width: 420px; margin-top: 10px; }

/* Tableaux : commandes, téléchargements, détail d'une commande. */
.dyr-espace table.shop_table,
.dyr-espace table.woocommerce-orders-table,
.dyr-espace table.woocommerce-table {
	width: 100%;
	border: 0 !important;
	border-collapse: collapse;
	border-radius: 0 !important;
	margin: 0 0 30px !important;
}
.dyr-espace table th {
	font-family: var(--dyr-titre);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dyr-gris);
	text-align: left;
	padding: 0 12px 14px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--dyr-encre) !important;
	background: none !important;
}
.dyr-espace table td {
	padding: 18px 12px 18px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--dyr-filet) !important;
	background: none !important;
	font-size: 14px;
	vertical-align: middle;
}
.dyr-espace table td .button,
.dyr-espace table .woocommerce-button {
	display: inline-flex !important;
	width: auto;
	min-height: 40px;
	padding: 0 16px !important;
	font-size: 11px !important;
	margin: 2px 6px 2px 0;
}

/* Adresses */
.dyr-espace .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 24px;
}
.dyr-espace .woocommerce-Addresses::before,
.dyr-espace .woocommerce-Addresses::after { display: none !important; }
.dyr-espace .woocommerce-Address {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	border: 1px solid var(--dyr-filet);
	padding: 26px 26px 22px;
}
.dyr-espace .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dyr-espace .woocommerce-Address-title a {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: underline;
}
.dyr-espace .woocommerce-Address address { font-style: normal; line-height: 1.8; }

/* Tableau de bord : les deux phrases de WooCommerce, en texte courant. */
.dyr-espace__contenu > p { margin: 0 0 16px; }
.dyr-espace__contenu mark { background: none; font-weight: 600; color: var(--dyr-encre); }

/* ---------------------------------------------------------- Téléphone */
@media (max-width: 767px) {
	.dyr-compte { padding: 28px 16px 56px; }
	.dyr-compte__cadre { padding: 36px 22px 30px; }
	.dyr-compte .dyr-compte__titre { margin-bottom: 26px !important; }
	.dyr-compte__onglets { margin-bottom: 28px; }
	.dyr-compte .dyr-compte__onglets button { font-size: 11px !important; letter-spacing: .12em !important; }
	.dyr-compte .dyr-compte__bouton,
	.dyr-espace .button,
	.dyr-espace button[type="submit"] { min-height: 56px; font-size: 13px !important; }

	.dyr-espace { padding-top: 32px; }
	.dyr-espace .dyr-espace__onglets { justify-content: flex-start; gap: 26px; padding: 0 2px !important; }

	/* Les commandes se lisent en fiches plutôt qu'en tableau trop large. */
	.dyr-espace table.shop_table_responsive thead { display: none; }
	.dyr-espace table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--dyr-filet); padding: 12px 0; }
	.dyr-espace table.shop_table_responsive td {
		display: flex !important;
		justify-content: space-between;
		gap: 16px;
		border: 0 !important;
		padding: 6px 0 !important;
		text-align: right !important;
	}
	.dyr-espace table.shop_table_responsive td::before {
		content: attr(data-title);
		font-family: var(--dyr-titre);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--dyr-gris);
		text-align: left;
		float: none !important;
	}
}

/* Vérification anti-robot de Hide My WP (« 0 + 7 = ») : même allure que
 * les autres champs, sans le cadre gris qu'elle apporte. */
.dyr-compte .humanity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 26px !important;
	font-size: 15px;
	color: var(--dyr-encre);
}
.dyr-compte .humanity strong {
	flex: 0 0 100%;
	font-family: var(--dyr-titre);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dyr-gris);
}
.dyr-compte .humanity input[name=brute_num] {
	max-width: 64px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--dyr-filet) !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 8px 0 !important;
	font-size: 16px !important;
	text-align: center;
}
.dyr-compte .humanity input[name=brute_num]:focus { outline: none; border-bottom-color: var(--dyr-encre) !important; }

/* Dans la fenêtre « Mon compte » de l'en-tête, le cadre a déjà son propre
 * contenant : ni marge autour, ni second filet. */
.elementor-location-popup .dyr-compte { padding: 0; }
.elementor-location-popup .dyr-compte__cadre { border: 0; padding: 8px 0 0; max-width: none; }
