/* Espace client (module compte) : charte du site — menthe, sarcelle, vert, rose, Roboto. */
.jm-compte {
	--jm-menthe: #e6f1eb;
	--jm-menthe-fonce: #d3e8de;
	--jm-sarcelle: #23a69a;
	--jm-vert: #016458;
	--jm-rose: #d22467;
	--jm-magenta: #b0225c;
	--jm-texte: #3c4644;
	--jm-gris: #6f7775;
	--jm-bord: #d5e5df;
	--jm-ombre: 0 10px 30px -18px rgba(1, 100, 88, .45), 0 1px 0 rgba(1, 100, 88, .05);
	max-width: 1120px;
	margin: 28px auto 72px;
	padding: 0 20px;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--jm-texte);
	font-size: 15px;
	line-height: 1.55;
}
/* Anciennes cartes Elementor de la page (remplacées par la navigation ci-dessous). */
.woocommerce-account .elementor-element-085cd57 { display: none !important; }
/* Messages de WooCommerce masqués ailleurs par le thème enfant : utiles ici (« Adresse modifiée »…). */
.woocommerce-account .jm-compte .woocommerce-message,
.woocommerce-account .jm-compte .woocommerce-info,
.woocommerce-account .jm-compte .woocommerce-error {
	display: block !important; margin: 0 0 18px; padding: 14px 18px 14px 46px; border: 0; border-radius: 14px;
	background: #e3f4ef; color: var(--jm-vert); position: relative; list-style: none;
}
.woocommerce-account .jm-compte .woocommerce-error { background: #fbe4ec; color: var(--jm-magenta); }
.woocommerce-account .jm-compte .woocommerce-message::before,
.woocommerce-account .jm-compte .woocommerce-info::before,
.woocommerce-account .jm-compte .woocommerce-error::before { left: 16px; top: 14px; color: currentColor; }
.jm-compte .woocommerce-message .button { float: right; margin: -4px 0 0 12px; }

.jm-compte a { color: var(--jm-vert); }
.jm-compte__icone { width: 20px; height: 20px; flex: none; }

/* En-tête */
.jm-compte__entete {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 22px; animation: jm-monte .6s cubic-bezier(.2, .8, .2, 1) both;
}
.jm-compte__surtitre {
	margin: 0 0 4px; color: var(--jm-sarcelle); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.jm-compte__titre { margin: 0; color: var(--jm-vert); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.15; }

/* Boutons et liens */
.jm-compte__bouton, body .jm-compte .button, body .jm-compte button.button, body .jm-compte a.button, body .jm-compte button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 2px solid var(--jm-rose); border-radius: 999px;
	background: var(--jm-rose); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(210, 36, 103, .7);
	transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.jm-compte__bouton:hover, body .jm-compte .button:hover, body .jm-compte button.button:hover, body .jm-compte a.button:hover, body .jm-compte button[type="submit"]:hover {
	background: var(--jm-magenta); border-color: var(--jm-magenta); transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(176, 34, 92, .8);
}
.jm-compte__bouton--contour { background: transparent; color: var(--jm-rose) !important; box-shadow: none; }
.jm-compte__bouton--contour:hover { color: #fff !important; }
.jm-compte__bouton--blanc { background: #fff; border-color: #fff; color: var(--jm-vert) !important; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35); }
.jm-compte__bouton--blanc:hover { background: var(--jm-menthe); border-color: var(--jm-menthe); }
.jm-compte__lien { font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(35, 166, 154, .35); transition: border-color .2s; }
.jm-compte__lien:hover { border-color: var(--jm-sarcelle); }
.jm-compte__discret { color: var(--jm-gris); font-size: 13.5px; }

/* Navigation */
.jm-compte__nav {
	margin: 0 0 26px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .92);
	box-shadow: var(--jm-ombre); animation: jm-monte .6s .05s cubic-bezier(.2, .8, .2, 1) both;
}
.jm-compte__nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.jm-compte__nav ul::-webkit-scrollbar { display: none; }
.jm-compte__nav li { flex: none; margin: 0; }
.jm-compte__nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto; }
.jm-compte__nav a {
	display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 13px;
	color: var(--jm-gris); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s;
}
.jm-compte__nav a:hover { background: var(--jm-menthe); color: var(--jm-vert); }
.jm-compte__nav .is-active a { background: var(--jm-vert); color: #fff; box-shadow: 0 8px 18px -10px rgba(1, 100, 88, .8); }
.jm-compte__nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fbe4ec; color: var(--jm-magenta); }

/* Tableau de bord */
.jm-compte__grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.jm-compte__carte {
	display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px;
	background: #fff; box-shadow: var(--jm-ombre);
	animation: jm-monte .6s cubic-bezier(.2, .8, .2, 1) both; transition: transform .25s, box-shadow .25s;
}
.jm-compte__carte:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(1, 100, 88, .55); }
.jm-compte__grille > :nth-child(1) { animation-delay: .1s; }
.jm-compte__grille > :nth-child(2) { animation-delay: .18s; }
.jm-compte__grille > :nth-child(3) { animation-delay: .26s; }
.jm-compte__grille > :nth-child(4) { animation-delay: .34s; }
.jm-compte__grille > :nth-child(5) { animation-delay: .42s; }
.jm-compte__carte p { margin: 0; }
.jm-compte__carte-titre { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--jm-vert); font-size: 17px; font-weight: 700; }
.jm-compte__carte-titre .jm-compte__icone { color: var(--jm-sarcelle); }
.jm-compte__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto !important; padding-top: 4px; }
.jm-compte__vide { color: var(--jm-gris); }

.jm-compte__carte--rdv {
	position: relative; overflow: hidden; color: #eafaf6;
	background: radial-gradient(120% 140% at 100% 0, #2fb8aa 0, var(--jm-sarcelle) 35%, var(--jm-vert) 100%);
}
.jm-compte__carte--rdv::after {
	content: ""; position: absolute; right: -40px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); box-shadow: -60px -30px 0 -40px rgba(255, 255, 255, .08);
}
.jm-compte__carte--rdv .jm-compte__carte-titre, .jm-compte__carte--rdv .jm-compte__carte-titre .jm-compte__icone,
.jm-compte__carte--rdv a, .jm-compte__carte--rdv .jm-compte__vide, .jm-compte__carte--rdv .jm-compte__discret { color: #fff; }
.jm-compte__carte--rdv .jm-compte__lien { border-color: rgba(255, 255, 255, .45); }
.jm-compte__rdv { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.jm-compte__rdv-jour {
	display: grid; place-items: center; flex: none; width: 84px; height: 88px; border-radius: 18px;
	background: #fff; color: var(--jm-vert); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .06em;
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
}
.jm-compte__rdv-num { display: block; color: var(--jm-rose); font-size: 36px; line-height: 1; letter-spacing: 0; }
.jm-compte__rdv-date { font-size: 21px; font-weight: 700; color: #fff; }
.jm-compte__rdv-formule { font-size: 15px; }
.jm-compte__rdv-qui { font-size: 14px; opacity: .85; }

.jm-compte__carte--credit { background: linear-gradient(160deg, #fff 0, var(--jm-menthe) 100%); }
.jm-compte__montant { color: var(--jm-rose); font-size: 40px; font-weight: 700; line-height: 1.1; }
.jm-compte__montant .woocommerce-Price-currencySymbol { font-size: .6em; }

.jm-compte__liste { margin: 0; padding: 0; list-style: none; }
.jm-compte__liste li {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
	padding: 11px 0; border-bottom: 1px solid var(--jm-bord);
}
.jm-compte__liste li:last-child { border-bottom: 0; }
.jm-compte__liste a { display: flex; flex-direction: column; text-decoration: none; }
.jm-compte__liste-num { color: var(--jm-texte); font-weight: 700; }
.jm-compte__liste-total { color: var(--jm-vert); font-weight: 700; white-space: nowrap; }
.jm-compte__adresse { font-style: normal; line-height: 1.6; }
.jm-compte__carte--aide {
	grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	background: var(--jm-menthe); box-shadow: none;
}
.jm-compte__carte--aide .jm-compte__actions { margin: 0 0 0 auto !important; padding: 0; }

/* Pastilles de statut */
.jm-compte__statut, .jm-compte .woocommerce-orders-table__cell-order-status {
	font-size: 12.5px; font-weight: 700;
}
.jm-compte__statut {
	display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e9eeed; color: var(--jm-gris); white-space: nowrap;
}
.jm-compte__statut--completed { background: #e3f4ef; color: var(--jm-vert); }
.jm-compte__statut--processing { background: #dff3f1; color: #13867b; }
.jm-compte__statut--pending, .jm-compte__statut--on-hold { background: #fff1d9; color: #9a6400; }
.jm-compte__statut--cancelled, .jm-compte__statut--failed { background: #fbe4ec; color: var(--jm-magenta); }

/* Pages de WooCommerce (commandes, détail, adresses, compte) */
.jm-compte__contenu > h2, .jm-compte__contenu > h3, .jm-compte .woocommerce-column__title, .jm-compte .woocommerce-order-details__title {
	color: var(--jm-vert); font-size: 20px; font-weight: 700;
}
.jm-compte .woocommerce-orders-table, .jm-compte .woocommerce-table--order-details, .jm-compte .shop_table {
	width: 100%; margin: 0 0 20px; border: 0 !important; border-collapse: separate; border-spacing: 0;
	border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--jm-ombre);
}
.jm-compte .shop_table th, .jm-compte .shop_table td { padding: 14px 18px !important; border: 0 !important; border-bottom: 1px solid var(--jm-bord) !important; text-align: left; vertical-align: middle; }
.jm-compte .shop_table thead th { background: var(--jm-menthe); color: var(--jm-vert); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.jm-compte .shop_table tr:last-child td, .jm-compte .shop_table tfoot tr:last-child th { border-bottom: 0 !important; }
body .jm-compte .shop_table .button { padding: 8px 14px; font-size: 13px; margin: 2px 4px 2px 0; }
.jm-compte .woocommerce-orders-table__cell-order-number a { font-weight: 700; text-decoration: none; }
.jm-compte .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 10px; }
.jm-compte .woocommerce-Addresses::before, .jm-compte .woocommerce-Addresses::after { display: none; }
.jm-compte .woocommerce-Address { float: none !important; width: auto !important; padding: 22px 24px; border-radius: 20px; background: #fff; box-shadow: var(--jm-ombre); }
.jm-compte .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jm-compte .woocommerce-Address-title h2 { margin: 0; color: var(--jm-vert); font-size: 18px; }
.jm-compte .woocommerce-Address address { font-style: normal; line-height: 1.6; }

/* Formulaires */
.jm-compte form .form-row { margin: 0 0 16px; padding: 0; }
.jm-compte form label { display: block; margin-bottom: 6px; color: var(--jm-texte); font-size: 14px; font-weight: 500; }
.jm-compte form .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.jm-compte input.input-text, .jm-compte select, .jm-compte textarea, .jm-compte .select2-container .select2-selection {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--jm-bord); border-radius: 12px;
	background: #fff; color: var(--jm-texte); font-size: 15px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.jm-compte input.input-text:focus, .jm-compte select:focus, .jm-compte textarea:focus {
	outline: 0; border-color: var(--jm-sarcelle); box-shadow: 0 0 0 4px rgba(35, 166, 154, .15);
}
.jm-compte fieldset { margin: 22px 0; padding: 20px 22px; border: 1.5px dashed var(--jm-bord); border-radius: 16px; }
.jm-compte legend { padding: 0 8px; color: var(--jm-vert); font-weight: 700; }
.jm-compte .woocommerce-EditAccountForm, .jm-compte .woocommerce-address-fields, .jm-compte .woocommerce-ResetPassword {
	padding: 26px; border-radius: 20px; background: #fff; box-shadow: var(--jm-ombre);
}

/* Connexion */
.jm-compte--connexion { max-width: 980px; }
.jm-connexion {
	display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 26px; background: #fff;
	box-shadow: 0 24px 60px -30px rgba(1, 100, 88, .55); animation: jm-monte .7s cubic-bezier(.2, .8, .2, 1) both;
}
.jm-connexion__visuel {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
	padding: 30px 32px 34px; color: #eafaf6;
	background: radial-gradient(120% 120% at 0 0, #2fb8aa 0, var(--jm-sarcelle) 40%, var(--jm-vert) 100%);
}
.jm-compte .jm-connexion__visuel img {
	display: block; width: auto; height: 230px; max-width: 100%; margin: 0 auto 6px; object-fit: contain;
	filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .25)); animation: jm-flotte 6s ease-in-out infinite;
}
.jm-connexion__accroche { position: relative; margin: 0; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.2; }
.jm-connexion__visuel ul { position: relative; margin: 0; padding: 0; list-style: none; }
.jm-connexion__visuel li { padding: 4px 0 4px 26px; background: no-repeat 0 50% / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.jm-connexion__formulaire { padding: 40px 42px 36px; }
.jm-connexion__formulaire .jm-compte__titre { margin-bottom: 22px; }
body .jm-compte .jm-connexion__formulaire form.login { margin: 0; padding: 0; border: 0; border-radius: 0; }
.jm-connexion__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; font-size: 14px; }
body .jm-compte .jm-connexion__formulaire button[type="submit"] { width: 100%; padding: 14px 22px; font-size: 16px; }
.jm-connexion__note { margin: 18px 0 0; color: var(--jm-gris); font-size: 13.5px; text-align: center; }
.jm-connexion__inscription { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--jm-bord); }
.jm-connexion__inscription summary { color: var(--jm-vert); font-weight: 700; cursor: pointer; }
.jm-connexion__inscription form { margin-top: 16px; }

@keyframes jm-monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes jm-flotte { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

@media (max-width: 860px) {
	.jm-compte__carte--aide { flex-direction: column; align-items: flex-start; }
	.jm-compte__carte--aide .jm-compte__actions { margin: 0 !important; }
	.jm-compte__grille, .jm-connexion { grid-template-columns: 1fr; }
	.jm-compte .jm-connexion__visuel img { height: 160px; }
	.jm-connexion__formulaire { padding: 28px 22px; }
	.jm-compte__nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: 0; }
	.jm-compte .shop_table_responsive tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--jm-bord); }
	.jm-compte .shop_table_responsive td { display: flex; justify-content: space-between; border: 0 !important; padding: 8px 18px !important; }
	.jm-compte .shop_table_responsive thead { display: none; }
	/* N° de commande : cellule d'en-tête de ligne, masquée par le CSS « petit écran » de WooCommerce. */
	.jm-compte table.shop_table_responsive tbody th { display: flex !important; justify-content: space-between; border: 0 !important; padding: 8px 18px !important; }
	.jm-compte table.shop_table_responsive tbody th[data-title]::before { content: attr(data-title) " :"; font-weight: 700; }
}
@media (max-width: 520px) {
	.jm-compte { padding: 0 14px; margin-top: 16px; }
	.jm-compte__entete .jm-compte__bouton { width: 100%; }
	.jm-compte__rdv { align-items: flex-start; }
	.jm-compte__rdv-jour { width: 70px; height: 74px; }
	.jm-compte__rdv-num { font-size: 30px; }
	.jm-compte__nav a span { font-size: 14px; }
	/* Onglets sur deux colonnes au lieu d'une barre qui défile (l'onglet actif était coupé au bord). */
	.jm-compte__nav ul { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
	.jm-compte__nav a { justify-content: center; gap: 6px; padding: 10px 4px; white-space: normal; text-align: center; }
	.jm-compte__nav a span { font-size: 13.5px; }
	.jm-compte__nav li.woocommerce-MyAccount-navigation-link--customer-logout { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	.jm-compte *, .jm-compte { animation: none !important; transition: none !important; }
}
