/**
 * Thème T-CSE : feuille unique pour ce que theme.json ne sait pas exprimer (en-tête, composants, WooCommerce,
 * « Mon compte », pages de compte de tcse-referentiel).
 *
 * Règle : aucune couleur ni taille en dur. Seules les variables des presets (--wp--preset--*) et les valeurs
 * personnalisées de theme.json (--wp--custom--*) sont utilisées ; le contrôle de la charte le vérifie.
 */

/* ---------- Focus clavier visible partout : anneau indigo de 2 px, décalé de 2 px ---------- */

:where(a, button, input, select, textarea, summary, [tabindex], .wp-element-button):focus-visible {
	outline: var(--wp--custom--focus--largeur) solid var(--wp--preset--color--indigo);
	outline-offset: var(--wp--custom--focus--decalage);
}

.tcse-pied :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--on-vert);
}

/* ---------- Composants communs ---------- */

.tcse-surtitre {
	margin-block-end: var(--wp--preset--spacing--xs);
	color: var(--wp--preset--color--teal);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--surtitre);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--surtitre);
	letter-spacing: var(--wp--custom--interlettrage--surtitre);
	text-transform: uppercase;
}

/* Sur menthe, le sarcelle n'atteint pas 4,5:1 : surtitre en sarcelle encre. */
.has-surface-mint-background-color .tcse-surtitre {
	color: var(--wp--preset--color--teal-ink);
}

.tcse-titre-display {
	line-height: var(--wp--custom--interligne--display);
}

.tcse-titre__suite {
	display: block;
	color: var(--wp--preset--color--teal);
}

.has-surface-mint-background-color .tcse-titre__suite {
	color: var(--wp--preset--color--teal-ink);
}

.tcse-mention {
	color: var(--wp--preset--color--ink-muted);
}

.tcse-carte {
	padding: var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--carte);
	background: var(--wp--preset--color--surface-raised);
}

.has-surface-mint-background-color .tcse-carte {
	border-color: var(--wp--preset--color--line-mint);
}

.tcse-carte > :first-child {
	margin-block-start: 0;
}

.tcse-encart {
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	border-radius: var(--wp--custom--rayon--pastille);
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
}

/* Pastilles d'état : fond teinté, texte de la même famille, rayon 6, toujours un libellé. */
.tcse-pastille,
.woocommerce mark.order-status {
	display: inline-block;
	width: auto;
	padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
	border-radius: var(--wp--custom--rayon--pastille);
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--small);
}

.tcse-pastille--succes {
	background: var(--wp--preset--color--teal-soft);
	color: var(--wp--preset--color--teal-ink);
}

.tcse-pastille--attente {
	background: var(--wp--preset--color--ambre-soft);
	color: var(--wp--preset--color--ambre);
}

.tcse-pastille--alerte {
	background: var(--wp--preset--color--alerte-soft);
	color: var(--wp--preset--color--alerte);
}

/* Liste à coches sarcelle. */
.tcse-coches {
	padding-inline-start: 0;
	list-style: none;
}

.tcse-coches li {
	position: relative;
	margin-block: 0 var(--wp--preset--spacing--s);
	padding-inline-start: var(--wp--preset--spacing--l);
}

.tcse-coches li::before {
	position: absolute;
	inset-inline-start: 0;
	color: var(--wp--preset--color--teal);
	font-weight: 600;
	content: "\2713" / "";
	content: "\2713";
}

/* ---------- En-tête ---------- */

.tcse-entete {
	border-bottom: var(--wp--custom--filet) solid var(--wp--preset--color--line);
}

.tcse-marque {
	min-width: 0;
}

.tcse-marque .wp-block-site-logo img {
	width: auto;
	height: var(--wp--custom--entete--logo);
}

/* Un logo défini remplace le nom du site, sans retouche de mise en page. */
.tcse-marque:has(.wp-block-site-logo img) .wp-block-site-title {
	display: none;
}

.tcse-marque .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

.tcse-entete__actions {
	min-width: 0;
}

.tcse-entete .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--indigo);
	font-size: var(--wp--preset--font-size--bouton);
}

.tcse-entete .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.tcse-entete .wp-block-navigation [aria-current="page"] {
	font-weight: 600;
}

.tcse-entete .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--s);
}

.tcse-entete .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--titre-3);
}

@media (max-width: 599px) {
	.tcse-entete__actions {
		gap: var(--wp--preset--spacing--xs);
	}

	.tcse-entete__compte .wp-block-button__link {
		padding-inline: var(--wp--preset--spacing--s);
	}
}

/* ---------- Pied de page ---------- */

.tcse-pied .wp-block-site-title a {
	color: var(--wp--preset--color--on-vert);
}

.tcse-pied__liens {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcse-pied__liens li {
	margin: 0;
}

.tcse-pied__mention {
	margin-block-start: var(--wp--preset--spacing--m);
	padding-block-start: var(--wp--preset--spacing--s);
	border-top: var(--wp--custom--filet) solid color-mix(in srgb, var(--wp--preset--color--on-vert) 25%, transparent);
}

.tcse-pied__mention p {
	margin: 0;
}

/* Pied de page en bas de l'écran même sur une page courte, à 64 px au moins du contenu. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer {
	margin-block-start: auto;
}

.wp-site-blocks > :nth-last-child(2):not(.tcse-principal--accueil) {
	margin-block-end: var(--wp--preset--spacing--xl);
}

/* ---------- Accueil ---------- */

.tcse-principal--accueil {
	margin-block-start: 0;
}

.tcse-principal--accueil > .tcse-section {
	margin-block: 0;
}

.tcse-visuel {
	padding: var(--wp--preset--spacing--l);
	border-radius: var(--wp--custom--rayon--image);
	background: var(--wp--preset--color--teal-vif);
	box-shadow: var(--wp--preset--shadow--image-accueil);
}

.tcse-visuel__liste {
	display: grid;
	gap: var(--wp--preset--spacing--s);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcse-visuel__liste li {
	margin: 0;
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	border-radius: var(--wp--custom--rayon--bouton);
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--titre-3);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--titre-3);
}

.tcse-etapes .tcse-pastille {
	margin: 0;
}

.tcse-section__tete {
	margin-block-end: var(--wp--preset--spacing--l);
}

.tcse-section__tete > * {
	margin-block: 0;
}

/* ---------- Champs ---------- */

:where(.wp-site-blocks, .tcse-page-compte) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], input[type="url"], select, textarea):not(.wc-block-components-quantity-selector__input),
.woocommerce form .form-row :is(.input-text, select),
body .wc-block-components-form .wc-block-components-text-input input,
body .wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	min-height: var(--wp--custom--champ--hauteur);
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--s);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--field-border);
	border-radius: var(--wp--custom--rayon--champ);
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
}

:where(.wp-site-blocks, .tcse-page-compte) :is(input, select, textarea):focus,
.woocommerce form .form-row :is(.input-text, select):focus,
body .wc-block-components-form .wc-block-components-text-input input:focus,
body .wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--teal);
	outline: var(--wp--custom--focus--largeur) solid var(--wp--preset--color--teal);
	outline-offset: 0;
	box-shadow: none;
}

.woocommerce form .form-row label,
.tcse-page-compte label {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* ---------- Boutons WooCommerce ---------- */

/* Bouton principal : aplat indigo. */
.woocommerce :is(a.button, button.button, input.button),
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt),
.wc-block-components-button:not(.is-link):not(.wc-block-components-drawer__close),
.tcse-page-compte button[type="submit"] {
	padding: calc(var(--wp--preset--spacing--xs) + var(--wp--preset--spacing--xxs)) var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--indigo);
	border-radius: var(--wp--custom--rayon--bouton);
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--on-indigo);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--bouton);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--bouton);
	text-decoration: none;
	display: inline-block;
}

.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt):hover,
.wc-block-components-button:not(.is-link):not(.wc-block-components-drawer__close):hover,
.tcse-page-compte button[type="submit"]:hover {
	border-color: var(--wp--custom--couleur--indigo-survol);
	background: var(--wp--custom--couleur--indigo-survol);
	color: var(--wp--preset--color--on-indigo);
}

/* Bouton secondaire : fond blanc, filet, texte indigo (cartes produit, boutons de second rang). */
body .wp-block-button.wc-block-components-product-button .wp-block-button__link.wc-block-components-product-button__button,
body .wc-block-components-product-button .wp-block-button__link,
.woocommerce ul.products li.product .button,
.woocommerce .woocommerce-MyAccount-content .woocommerce-orders-table .button,
.wc-block-mini-cart__footer-cart {
	padding: calc(var(--wp--preset--spacing--xs) + var(--wp--preset--spacing--xxs)) var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--bouton);
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--indigo);
	font-size: var(--wp--preset--font-size--bouton);
	font-weight: 600;
}

body .wp-block-button.wc-block-components-product-button .wp-block-button__link.wc-block-components-product-button__button:hover,
body .wc-block-components-product-button .wp-block-button__link:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce .woocommerce-MyAccount-content .woocommerce-orders-table .button:hover {
	border-color: var(--wp--preset--color--line);
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
}

/* ---------- Notices ---------- */

.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wc-block-components-notice-banner,
.tcse-page-compte .message {
	margin-block: 0 var(--wp--preset--spacing--m);
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	border: 0;
	border-radius: var(--wp--custom--rayon--bouton);
	font-size: var(--wp--preset--font-size--body);
	list-style: none;
}

.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before,
.wc-block-components-notice-banner > svg {
	display: none;
}

.woocommerce .woocommerce-message,
.wc-block-components-notice-banner.is-success,
.tcse-page-compte .message:not(.alerte) {
	background: var(--wp--preset--color--teal-soft);
	color: var(--wp--preset--color--teal-ink);
}

.woocommerce .woocommerce-info,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-default {
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
}

.wc-block-components-notice-banner.is-warning {
	background: var(--wp--preset--color--ambre-soft);
	color: var(--wp--preset--color--ambre);
}

.woocommerce .woocommerce-error,
.wc-block-components-notice-banner.is-error,
.woocommerce .woocommerce-info.tcse-non-eligible,
.tcse-page-compte .message.alerte {
	background: var(--wp--preset--color--alerte-soft);
	color: var(--wp--preset--color--alerte);
}

.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button),
.wc-block-components-notice-banner a:not(.button) {
	color: inherit;
}

/* ---------- Catalogue : cartes produit ---------- */

.wc-block-product-template {
	gap: var(--wp--preset--spacing--m);
}

.wc-block-product-template > li.wc-block-product,
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--carte);
	background: var(--wp--preset--color--surface-raised);
	text-align: start;
}

.wc-block-product-template > li.wc-block-product :is(.wp-block-post-title, .wc-block-components-product-price, .wc-block-components-product-button, .has-text-align-center) {
	text-align: start;
}

.wc-block-product-template > li.wc-block-product .wc-block-components-product-button {
	align-items: flex-start;
	margin-block-start: auto;
}

/* Prestations sans visuel : l'image d'attente de WooCommerce n'est pas affichée. */
.wc-block-components-product-image:has(img[src*="woocommerce-placeholder"]),
.wp-block-column:has(> .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery--without-images) {
	display: none;
}

.wc-block-product-template .wp-block-post-title,
.wc-block-product-template .wp-block-post-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--titre-3);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--titre-3);
	text-decoration: none;
}

/* Tailles de WooCommerce qui ne sont pas des presets du thème. */
.has-medium-font-size {
	font-size: var(--wp--preset--font-size--body);
}

.has-large-font-size {
	font-size: var(--wp--preset--font-size--lead);
}

/* ---------- Prix (filtre de tcse-referentiel : prix public, part CSE, reste à charge) ---------- */

.wc-block-components-product-price,
.woocommerce .price {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 700;
}

.tcse-prix {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: var(--wp--custom--interligne--small);
}

.tcse-prix :is(.tcse-prix-public, .tcse-part-cse) {
	color: var(--wp--preset--color--ink-body);
}

.tcse-prix .tcse-prix-public .amount {
	font-weight: 400;
}

.tcse-prix .tcse-reste {
	display: inline-block;
	margin-block-start: var(--wp--preset--spacing--xxs);
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--titre-3);
	font-weight: 700;
	line-height: var(--wp--custom--interligne--titre-3);
}

.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] .tcse-prix,
.woocommerce div.product .summary .tcse-prix {
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--interligne--body);
}

.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] .tcse-reste,
.woocommerce div.product .summary .tcse-reste {
	font-size: var(--wp--preset--font-size--prix);
	line-height: var(--wp--custom--interligne--prix);
}

/* ---------- Page produit ---------- */

.woocommerce div.product form.cart,
.wp-block-add-to-cart-form form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s);
	align-items: center;
}

.woocommerce .quantity .qty {
	width: calc(var(--wp--custom--champ--hauteur) * 2);
	min-height: var(--wp--custom--champ--hauteur);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--field-border);
	border-radius: var(--wp--custom--rayon--champ);
}

.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-result-count {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-woocommerce-product-details .wc-tabs {
	border-bottom: var(--wp--custom--filet) solid var(--wp--preset--color--line);
}

/* ---------- Tableaux (Mon compte, Mes droits, commandes) ---------- */

.woocommerce table.shop_table {
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--wp--custom--rayon--carte);
	background: var(--wp--preset--color--surface-raised);
	overflow: hidden;
}

.woocommerce table.shop_table :is(th, td) {
	padding: var(--wp--preset--spacing--s);
	border-top: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-body);
	text-align: start;
}

.woocommerce table.shop_table :is(thead th, tbody tr:first-child :is(th, td)) {
	border-top: 0;
}

.woocommerce table.shop_table th {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.tcse-solde {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
}

.tcse-resume-droits {
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	border-radius: var(--wp--custom--rayon--bouton);
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
}

/* ---------- Mon compte : navigation ---------- */

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--l);
}

@media (min-width: 768px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
		align-items: start;
	}

	.woocommerce-account.logged-in .woocommerce > * {
		grid-column: 1 / -1;
	}

	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
	}

	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 2;
	}
}

.woocommerce-account .woocommerce > :empty {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: var(--wp--preset--spacing--xxs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--s);
	border-radius: var(--wp--custom--rayon--pastille);
	color: var(--wp--preset--color--ink-body);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li a:hover {
	color: var(--wp--preset--color--indigo);
	text-decoration: underline;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--wp--preset--color--indigo-soft);
	color: var(--wp--preset--color--indigo);
	font-weight: 600;
}

.woocommerce-MyAccount-content > :first-child {
	margin-block-start: 0;
}

/* Formulaire de connexion de « Mon compte ». */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce form.login,
.woocommerce form.register {
	max-width: var(--wp--style--global--content-size);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	margin-inline: 0;
	padding: var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--carte);
	background: var(--wp--preset--color--surface-raised);
}

.tcse-liens-compte {
	margin-block-start: var(--wp--preset--spacing--s);
}

/* ---------- Panier et commande (blocs WooCommerce) ---------- */

.wc-block-cart,
.wc-block-checkout {
	color: var(--wp--preset--color--ink-body);
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--line);
}

.wc-block-components-product-name {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	text-decoration: none;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 700;
}

.wc-block-components-radio-control__option,
.wc-block-components-checkbox {
	color: var(--wp--preset--color--ink-body);
}

.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
}

/* ---------- Pages de compte de tcse-referentiel (servies hors des modèles du thème) ---------- */

body.tcse-page-compte {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink-body);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--interligne--body);
}

.tcse-page-compte__entete {
	padding: var(--wp--preset--spacing--s);
	border-bottom: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface-header);
}

.tcse-page-compte__nom {
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--titre-2);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--titre-2);
	text-decoration: none;
}

.tcse-page-compte main {
	box-sizing: border-box;
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--wp--style--global--content-size);
	margin: var(--wp--preset--spacing--l) auto var(--wp--preset--spacing--xl);
	padding: var(--wp--preset--spacing--m);
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--carte);
	background: var(--wp--preset--color--surface-raised);
}

@media (max-width: 599px) {
	.tcse-page-compte main {
		width: auto;
		margin-inline: var(--wp--preset--spacing--s);
	}
}

.tcse-page-compte h1 {
	margin-block-start: 0;
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--titre-1);
	font-weight: 600;
	line-height: var(--wp--custom--interligne--titre-1);
}

.tcse-page-compte a {
	color: var(--wp--preset--color--indigo);
}

.tcse-page-compte .aide {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--interligne--small);
}

.tcse-page-compte fieldset {
	border: var(--wp--custom--filet) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rayon--bouton);
}

.tcse-page-compte legend {
	color: var(--wp--preset--color--ink);
}

.tcse-page-compte .message {
	border-inline-start: 0;
}

.tcse-page-compte__pied {
	padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--s);
	background: var(--wp--preset--color--vert-profond);
	color: var(--wp--preset--color--on-vert);
	font-size: var(--wp--preset--font-size--small);
}

.tcse-page-compte__pied p {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
}

/* Petits écrans : un tableau trop large (mouvements de « Mes droits ») défile dans son cadre, jamais la page. */
@media (max-width: 599px) {
	.woocommerce-MyAccount-content table.shop_table:not(.shop_table_responsive) {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Méta de la page produit (catégorie générique, préfixe non traduit par WooCommerce) : non affichées. */
.wp-block-woocommerce-product-meta {
	display: none;
}

/* Panier et commande : vignette d'attente de WooCommerce masquée, comme dans le catalogue. */
:is(.wc-block-cart-item__image, .wc-block-components-order-summary-item__image) img[src*="woocommerce-placeholder"] {
	visibility: hidden;
}

/* Moyen de paiement choisi : filet indigo, fond blanc. */
body .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: var(--wp--custom--rayon--bouton);
	background: var(--wp--preset--color--surface-raised);
	box-shadow: inset 0 0 0 var(--wp--custom--focus--largeur) var(--wp--preset--color--indigo);
}

/* Lien d'action des notices en blocs : WooCommerce l'impose en gris à 70 % d'opacité (!important), sous le
   seuil de contraste ; il reprend la couleur de la notice. */
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	color: inherit !important;
	font-weight: 600;
	opacity: 1;
}
