/* Vos récompenses — palette du composant compte (interva-compte-custom/account.css). */
.ivr {
	--ivr-ink: var(--interva-ink, #30282d);
	--ivr-soft: var(--interva-soft-ink, #71666b);
	--ivr-rose: var(--interva-rose, #cf4d68);
	--ivr-rose-deep: var(--interva-rose-deep, #b93c57);
	--ivr-mint: var(--interva-mint, #d8f0e7);
	--ivr-peach: var(--interva-peach, #f8d7d0);
	--ivr-cream: var(--interva-cream, #fff8f3);
	--ivr-paper: var(--interva-paper, #ffffff);
	--ivr-line: var(--interva-line, #eadfdc);
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ivr-ink);
	display: grid;
	gap: 20px;
	max-width: 880px;
}
.ivr h2, .ivr h3, .ivr h4 { color: var(--ivr-ink); margin: 0 0 10px; line-height: 1.25; font-family: inherit; }
/* Le plugin compte impose 16 px / 400 à tous les titres du contenu (avec !important). */
.ivr .ivr-card h3 { font-size: 1.25rem !important; font-weight: 700 !important; }
.ivr .ivr-card h4 { font-size: 1rem !important; font-weight: 600 !important; }
.ivr .ivr-hero h2.ivr-level-name { font-size: 1.9rem !important; font-weight: 700 !important; }
.ivr h4 { font-size: 1rem; margin-top: 18px; }
.ivr p { margin: 0 0 10px; }
.ivr-muted { color: var(--ivr-soft); font-size: .9rem; }
.ivr-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 600; color: var(--ivr-soft); margin: 0 0 4px; }

/* Titre de la page (le plugin compte masque le titre WooCommerce). */
.ivr-page-head { display: flex; gap: 14px; align-items: center; }
.ivr-page-head p { margin: 0; }
.ivr .ivr-page-head h1.ivr-page-title { font-size: 2rem !important; font-weight: 700 !important; line-height: 1.15; margin: 2px 0 4px; color: var(--ivr-ink); }
.ivr-page-icon { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #fff3d6, var(--ivr-peach)); box-shadow: 0 6px 16px rgba(207, 77, 104, .14); }
.ivr-page-icon svg { width: 28px; height: 28px; fill: #e9a91f; stroke: #d48f12; stroke-width: 1.2; stroke-linejoin: round; }

.ivr-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(135deg, var(--ivr-peach), var(--ivr-cream) 55%, var(--ivr-mint));
	border: 1px solid var(--ivr-line);
}
.ivr-level-name { font-size: 1.9rem; font-weight: 700; }
.ivr-progress { height: 10px; border-radius: 999px; background: rgba(48, 40, 45, .1); overflow: hidden; margin: 12px 0 8px; max-width: 420px; }
.ivr-progress span { display: block; height: 100%; background: var(--ivr-rose); border-radius: inherit; }
.ivr-stats { display: grid; gap: 10px; margin: 0; }
.ivr-stats div { background: var(--ivr-paper); border-radius: 14px; padding: 12px 16px; min-width: 160px; border: 1px solid var(--ivr-line); }
.ivr-stats dt { font-size: .8rem; color: var(--ivr-soft); }
.ivr-stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; }

.ivr-card { background: var(--ivr-paper); border: 1px solid var(--ivr-line); border-radius: 18px; padding: 22px; }
.ivr-big { font-size: 1.6rem; font-weight: 700; }
.ivr-big small { font-size: .9rem; font-weight: 400; color: var(--ivr-soft); }

.ivr-btn {
	appearance: none; border: 0; cursor: pointer;
	background: var(--ivr-rose); color: #fff; font: inherit; font-weight: 600;
	padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.ivr-btn:hover { background: var(--ivr-rose-deep); }
.ivr-btn:focus-visible, .ivr input:focus-visible, .ivr select:focus-visible, .ivr summary:focus-visible { outline: 3px solid var(--ivr-ink); outline-offset: 2px; }
.ivr .ivr-btn-ghost { background: transparent; color: var(--ivr-rose-deep); border: 1px solid var(--ivr-rose); box-shadow: none; }
.ivr-btn-ghost:hover { background: var(--ivr-cream); }
.ivr-btn.is-copied { background: #327769; color: #fff; border-color: #327769; }

.ivr-copy { display: flex; gap: 8px; margin: 14px 0; }
.ivr-copy input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--ivr-line); border-radius: 999px; background: var(--ivr-cream); font: inherit; }

.ivr .ivr-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; border: 0; background: none; }
.ivr .ivr-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.ivr .ivr-table th, .ivr .ivr-table td { text-align: left; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--ivr-line); background: none; }
.ivr-table th[scope="row"] { font-weight: 400; }
.ivr-table td:last-child { text-align: right; font-weight: 600; }
.ivr-table tr.is-current { background: var(--ivr-cream); }
.ivr-table tr.is-current th { font-weight: 700; }

.ivr-list { list-style: none; margin: 0; padding: 0; }
.ivr-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ivr-line); font-size: .92rem; flex-wrap: wrap; }

.ivr-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ivr-code { background: var(--ivr-cream); border: 1px dashed var(--ivr-rose); border-radius: 14px; padding: 16px; }
.ivr-code code { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: .05em; margin: 4px 0 10px; background: none; padding: 0; color: var(--ivr-ink); }

.ivr-levels { margin-top: 14px; }
.ivr-levels summary { cursor: pointer; font-weight: 600; color: var(--ivr-rose-deep); }
.ivr-levels .ivr-table td:last-child { font-weight: 400; }

.ivr-rank { list-style: none; margin: 10px 0; padding: 0; counter-reset: none; }
.ivr-rank li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.ivr-rank li:nth-child(odd) { background: var(--ivr-cream); }
.ivr-rank li.is-me { background: var(--ivr-mint); font-weight: 600; }
.ivr-rank-pos { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ivr-paper); border: 1px solid var(--ivr-line); font-weight: 700; }
.ivr-rank li:nth-child(-n+3) .ivr-rank-pos { background: var(--ivr-rose); color: #fff; border-color: var(--ivr-rose); }
.ivr-rank-amt { font-weight: 600; }

.ivr-inline label { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ivr-soft); cursor: pointer; }
.ivr-bday { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0; }
.ivr-bday label { display: grid; gap: 4px; font-size: .85rem; color: var(--ivr-soft); }
.ivr-bday input, .ivr-bday select { padding: 9px 12px; border: 1px solid var(--ivr-line); border-radius: 10px; font: inherit; min-width: 90px; background: var(--ivr-paper); }

.ivr-how { margin: 0 0 10px; padding-left: 1.1em; }
.ivr-how li { margin-bottom: 6px; }

/* Cellulaire : on retire les marges empilées de la page Mon compte (Elementor 8484 + boîte WooCommerce)
   pour laisser environ 10 px de chaque côté. Seulement sur l'onglet Vos récompenses. */
@media (max-width: 767px) {
	/* Sélecteurs plus précis que ceux du plugin compte (account.css), qui imposent aussi leurs marges en !important. */
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .elementor-8484 > .elementor-element.elementor-element-e2f98df { --padding-left: 0px; --padding-right: 0px; padding-left: 0 !important; padding-right: 0 !important; }
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .elementor-element.elementor-element-e2f98df > .e-con-inner { padding-left: 0 !important; padding-right: 0 !important; }
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .elementor-element.elementor-element-fc7d820 { --padding-left: 0px; --padding-right: 0px; padding-left: 0 !important; padding-right: 0 !important; }
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .elementor-element-e2f98df .woocommerce { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .woocommerce .woocommerce-MyAccount-content { padding-left: 10px !important; padding-right: 10px !important; }
	body.interva-account-area.woocommerce-recompenses:not(.interva-account-dashboard) .interva-account-mobile-back { margin-left: 10px !important; margin-right: 10px !important; }
}

@media (max-width: 640px) {
	.ivr { gap: 14px; }
	.ivr .ivr-page-head h1.ivr-page-title { font-size: 1.6rem !important; }
	.ivr-page-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
	.ivr-page-icon svg { width: 24px; height: 24px; }
	.ivr-hero { grid-template-columns: 1fr; padding: 16px 14px; border-radius: 16px; }
	.ivr-stats { grid-template-columns: 1fr 1fr; }
	.ivr-stats div { min-width: 0; padding: 10px 12px; }
	.ivr-card { padding: 16px 14px; border-radius: 16px; }
	.ivr .ivr-table th, .ivr .ivr-table td { padding: 8px 6px; }
	.ivr-rank li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 8px 6px; }
	.ivr-copy { flex-direction: column; }
	.ivr .ivr-hero h2.ivr-level-name { font-size: 1.6rem !important; }
}
