/* Mon compte → Mes récompenses, et shortcodes [sissou_classement] / [sissou_defis]. */
.sr { --sr-dark: var(--sissou-secondary, #3f2514); --sr-accent: var(--sissou-primary, #ed6c23); --sr-blue: var(--sissou-tertiary, #2b6cb0); --sr-yellow: #f3b64a; --sr-cream: #fdfbf6; --sr-line: #eadfd3; --sr-muted: #7b6f66; display: grid; gap: 18px; color: var(--sr-dark); }
.sr * { box-sizing: border-box; }
.sr { font-family: var(--sissou-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); white-space: normal; }
/* Shortcode collé dans un texte au format « code » (Divi, éditeur) : le navigateur recopie <code>/<pre>
   dans chaque bloc. On les rend transparents pour ne pas casser la mise en page ni la police. */
.sr code, .sr pre, .sr kbd, .sr tt { display: contents; font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; white-space: inherit; }
.sr h3, .sr-big, .sr-board-head b { font-family: var(--sissou-font-head, inherit); }
.sr h3 { margin: 0 0 12px; font-size: 1.2em; color: var(--sr-dark); }
.sr p { margin: 0 0 10px; }
.sr-card { background: #fff; border: 1px solid var(--sr-line); border-radius: 18px; padding: 20px; }
.sr-card--dark { background: var(--sr-accent); border-color: var(--sr-accent); color: #fff; }
.sr-card--dark h3 { color: #fff; }
.sr-card--dark .sr-bar i { background: #fff; }
.sr-card--dark .sr-bar { background: rgba(255, 255, 255, .3); }
.sr-card--dark .sr-btn { background: #fff; color: var(--sr-accent) !important; }
.sr-big { font-size: 2.2em; font-weight: 800; line-height: 1.1; }
.sr-big small { font-size: .45em; font-weight: 600; opacity: .8; }
.sr-bar { display: block; height: 10px; border-radius: 10px; background: rgba(127, 100, 80, .18); overflow: hidden; margin: 8px 0; }
.sr-bar i { display: block; height: 100%; background: var(--sr-yellow); border-radius: 10px; }
.sr-btn { display: inline-block; background: var(--sr-accent); color: #fff !important; border: 0; border-radius: 30px; padding: 11px 22px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sr-btn--ghost { background: transparent; color: var(--sr-dark) !important; border: 1px solid var(--sr-dark); }
.sr-label { font-weight: 700; margin-top: 14px !important; }
.sr-coupons { margin: 0; padding-left: 18px; }
.sr-coupons code { background: var(--sr-cream); color: var(--sr-dark); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.sr-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sr-tiers li { border: 1px solid var(--sr-line); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.sr-tiers li.is-reached { background: #fff4dc; border-color: #f3d79b; }
.sr-tiers small { color: var(--sr-muted); }
.sr-tiers em { font-style: normal; color: #2e7d32; font-weight: 700; }
.sr-challenges { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sr-challenges li { display: flex; gap: 14px; align-items: flex-start; border-top: 1px dashed var(--sr-line); padding-top: 12px; }
.sr-challenges li:first-child { border-top: 0; padding-top: 0; }
.sr-challenges li > div { flex: 1; display: grid; gap: 2px; }
.sr-challenges small { color: var(--sr-muted); }
.sr-reward { color: var(--sr-accent) !important; font-weight: 600; }
.sr-medal { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; border: 4px solid #e2a91b; background: #fff4dc; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: 28px; }
.sr-medal img { width: 100%; height: 100%; object-fit: cover; }
.sr-medal.is-locked { filter: grayscale(1); opacity: .5; border-color: #d8cec4; background: #f3efea; }
.sr-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.sr-badges figure { margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; font-weight: 600; }
.sr-badges figure .sr-medal { width: 84px; height: 84px; flex-basis: 84px; }
.sr-badges small { display: block; color: var(--sr-muted); font-weight: 400; }
.sr-board { border: 1px solid var(--sr-line); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: #fff; }
.sr-board-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.sr-board-head small { color: var(--sr-muted); }
.sr-prize { background: #fff4dc; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.sr-ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sr-ranking li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--sr-cream); }
.sr-ranking li.is-me { outline: 2px solid var(--sr-accent); }
.sr-ranking li span:nth-child(2) { flex: 1; }
.sr-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--sr-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85em; }
.sr-ranking li:nth-child(1) .sr-rank { background: #e2a91b; }
.sr-ranking li:nth-child(2) .sr-rank { background: #a9a9a9; }
.sr-ranking li:nth-child(3) .sr-rank { background: #b87333; }
.sr-me { margin-top: 10px !important; }
.sr-form { display: grid; gap: 12px; max-width: 460px; }
.sr-form label { display: grid; gap: 6px; font-weight: 600; }
.sr-form input[type="text"] { border: 1px solid var(--sr-line); border-radius: 10px; padding: 10px 12px; }
.sr-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.sr-teaser { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 18px; border-radius: 16px; background: var(--sr-accent); color: #fdfbf6 !important; text-decoration: none; }
.sr-teaser span:first-child { font-size: 1.6em; }

/* ---------- Classement façon tableau des scores ---------- */
/* Chaque thème ne change que des variables : fond, bandes, rangs, barres des noms, scores, décor. */
.sr-score {
	--sc-bg1: color-mix(in srgb, var(--sissou-primary, #ed6c23) 80%, #fff);
	--sc-bg2: var(--sissou-primary, #ed6c23);
	--sc-bg3: color-mix(in srgb, var(--sissou-primary, #ed6c23) 75%, #000);
	--sc-stripe1: var(--sissou-secondary, #3f2514);
	--sc-stripe2: var(--sissou-tertiary, #2b6cb0);
	--sc-kicker: var(--sissou-secondary, #3f2514);
	--sc-rank: var(--sissou-tertiary, #2b6cb0);
	--sc-rank-text: #fff;
	--sc-bar1: color-mix(in srgb, var(--sissou-secondary, #3f2514) 80%, #fff 6%);
	--sc-bar2: var(--sissou-secondary, #3f2514);
	--sc-value1: #fff3c4;
	--sc-value2: #f6c343;
	--sc-value-text: var(--sissou-secondary, #3f2514);
	--sc-gold: #f6c343;
	--sc-gold-text: var(--sissou-secondary, #3f2514);
	--sc-me: var(--sissou-tertiary, #2b6cb0);
	--sc-prize: #fff3c4;
	--sc-deco: "🍪 🍪";
	--sc-font: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
	position: relative; overflow: hidden; isolation: isolate;
	margin-bottom: 16px; padding: 22px 18px 18px; border-radius: 20px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, var(--sc-bg1) 0%, var(--sc-bg2) 50%, var(--sc-bg3) 100%);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}
/* Coups de pinceau en haut à gauche, comme une affiche de match. */
.sr-score::before, .sr-score::after { content: ""; position: absolute; z-index: -1; left: -30px; height: 26px; width: 62%; border-radius: 4px; transform: rotate(-9deg); opacity: .95; }
.sr-score::before { top: 2px; background: linear-gradient(90deg, var(--sc-stripe1), color-mix(in srgb, var(--sc-stripe1) 30%, transparent)); }
.sr-score::after { top: 30px; width: 40%; height: 10px; background: linear-gradient(90deg, var(--sc-stripe2), transparent); }
/* Décor du thème (flocons, citrouilles, cœurs…) en filigrane en haut à droite. */
.sr-score-deco { position: absolute; z-index: -1; top: 6px; right: 10px; font-size: 44px; line-height: 1; letter-spacing: 6px; opacity: .28; transform: rotate(8deg); pointer-events: none; white-space: nowrap; }
.sr-score-deco::before { content: var(--sc-deco); }
.sr-score-head { display: grid; gap: 2px; margin: 18px 0 12px; }
.sr-score-kicker { justify-self: start; font-family: var(--sc-font); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .72em; background: var(--sc-kicker); color: #fff; padding: 3px 12px 3px 10px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.sr-score-title { font-family: var(--sc-font); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.7em; line-height: 1.05; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.sr-score-head small { color: rgba(255, 255, 255, .85); font-weight: 600; }
.sr .sr-score-desc { color: rgba(255, 255, 255, .92); margin: 0 0 12px; }
.sr .sr-score-prize { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px dashed var(--sc-prize); font-weight: 700; }
.sr-score-prize span { font-family: var(--sc-font); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--sc-prize); letter-spacing: 1px; }

.sr-score-rows { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 7px; }
.sr-score-rows li, .sr-score-me { display: grid !important; grid-template-columns: 46px minmax(0, 1fr) 118px; align-items: stretch; gap: 5px; min-height: 42px; margin: 0 !important; padding: 0 !important; list-style: none !important; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); animation: sr-slide .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 70ms); }
.sr-score-rows li::before, .sr-score-rows li::marker { content: none; }
@keyframes sr-slide { from { opacity: 0; transform: translateX(-30px) skewX(-8deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sr-score-rows li { animation: none; } }

.sr-score-rank, .sr-score-name, .sr-score-value { display: flex; align-items: center; grid-row: 1; font-family: var(--sc-font); font-style: italic; font-weight: 900; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.sr-score-rank { grid-column: 1; justify-content: center; font-size: 1.45em; background: var(--sc-rank); color: var(--sc-rank-text); }
.sr-score-name { grid-column: 2; gap: 6px; padding: 0 18px; min-width: 0; font-size: 1.02em; letter-spacing: .4px; color: #fff; background: linear-gradient(90deg, var(--sc-bar1), var(--sc-bar2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-score-name i { font-style: normal; }
.sr-score-name em { font-style: italic; font-size: .7em; background: #fff; color: var(--sc-me); padding: 2px 7px; border-radius: 3px; letter-spacing: 1px; }
.sr-score-value { grid-column: 3; justify-content: flex-end; padding: 0 18px 0 14px; font-size: 1.35em; background: linear-gradient(180deg, var(--sc-value1), var(--sc-value2)); color: var(--sc-value-text); font-variant-numeric: tabular-nums; }

.sr-score-rows li.is-top1 { min-height: 54px; }
.sr-score-rows li.is-top1 .sr-score-rank { background: var(--sc-gold); color: var(--sc-gold-text); font-size: 1.8em; }
.sr-score-rows li.is-top1 .sr-score-name { font-size: 1.2em; }
.sr-score-rows li.is-top1 .sr-score-value { font-size: 1.6em; }
.sr-score-rows li.is-top2 .sr-score-rank { background: #dfe5ea; color: #333; }
.sr-score-rows li.is-top3 .sr-score-rank { background: #d08a4e; color: #fff; }
.sr-score-rows li.is-me .sr-score-name { background: linear-gradient(90deg, var(--sc-me), color-mix(in srgb, var(--sc-me) 60%, #000)); }

.sr-score-me { margin-top: 12px !important; padding-top: 12px !important; border-top: 2px dashed rgba(255, 255, 255, .35); filter: none; animation: none; }
.sr-score-me .sr-score-name { background: rgba(0, 0, 0, .2); }
.sr-score-me .sr-score-value { background: #fff; color: var(--sc-bar2); }
.sr .sr-score-note { margin: 8px 0 0; font-size: .85em; color: rgba(255, 255, 255, .85); }
.sr .sr-score-empty { text-align: center; padding: 18px; margin: 0; border-radius: 14px; background: rgba(0, 0, 0, .15); }
.sr-score-empty b { font-family: var(--sc-font); font-style: italic; text-transform: uppercase; font-size: 1.3em; color: var(--sc-prize); }

/* ---------- Thèmes ---------- */
.sr-score--brown { --sc-bg1: #6b4a36; --sc-bg2: var(--sissou-secondary, #3f2514); --sc-bg3: #24140a; --sc-stripe1: var(--sissou-primary, #ed6c23); --sc-kicker: var(--sissou-tertiary, #2b6cb0); --sc-bar1: #6b4a36; --sc-bar2: #2a170c; --sc-value1: #f6a26b; --sc-value2: var(--sissou-primary, #ed6c23); --sc-value-text: #fff; --sc-prize: #f6c343; }
.sr-score--noel { --sc-bg1: #e03a3e; --sc-bg2: #b3121b; --sc-bg3: #5c0a0e; --sc-stripe1: #1f7a3a; --sc-stripe2: #f6c343; --sc-kicker: #1f7a3a; --sc-rank: #1f7a3a; --sc-bar1: #1d6b36; --sc-bar2: #0d3b1d; --sc-value1: #ffe7a0; --sc-value2: #f6c343; --sc-value-text: #5c0a0e; --sc-me: #f6c343; --sc-prize: #ffe7a0; --sc-deco: "❄ 🎄 ✨"; }
.sr-score--halloween { --sc-bg1: #5a2d82; --sc-bg2: #2b1840; --sc-bg3: #0e0a14; --sc-stripe1: #ff7a00; --sc-stripe2: #8bc34a; --sc-kicker: #ff7a00; --sc-rank: #7b2cbf; --sc-bar1: #3a3a3a; --sc-bar2: #151515; --sc-value1: #ffb057; --sc-value2: #ff7a00; --sc-value-text: #1a1a1a; --sc-gold: #c6f06a; --sc-gold-text: #1a1a1a; --sc-me: #8bc34a; --sc-prize: #ffb057; --sc-deco: "🎃 🦇 🕸"; }
.sr-score--valentin { --sc-bg1: #ff6b9a; --sc-bg2: #e63973; --sc-bg3: #8a1038; --sc-stripe1: #fff; --sc-stripe2: #8a1038; --sc-kicker: #8a1038; --sc-rank: #ff8fab; --sc-rank-text: #8a1038; --sc-bar1: #b0174f; --sc-bar2: #6d0a2f; --sc-value1: #fff; --sc-value2: #ffe0ea; --sc-value-text: #c2185b; --sc-me: #6d0a2f; --sc-prize: #ffe0ea; --sc-deco: "❤ 💕 💘"; }
.sr-score--rose { --sc-bg1: #ffc2da; --sc-bg2: #f06ea6; --sc-bg3: #b8336a; --sc-stripe1: #fff; --sc-stripe2: #b8336a; --sc-kicker: #b8336a; --sc-rank: #8e1f4f; --sc-bar1: #c9407a; --sc-bar2: #8e1f4f; --sc-value1: #fff; --sc-value2: #ffe3ef; --sc-value-text: #b8336a; --sc-gold: #fff; --sc-gold-text: #b8336a; --sc-me: #5e1235; --sc-prize: #fff; --sc-deco: "🎗 💗 🎗"; }
.sr-score--summer { --sc-bg1: #48cae4; --sc-bg2: #0096c7; --sc-bg3: #023e8a; --sc-stripe1: #ffd60a; --sc-stripe2: #ff6b6b; --sc-kicker: #ff6b6b; --sc-rank: #ff6b6b; --sc-bar1: #0353a4; --sc-bar2: #012a5e; --sc-value1: #fff3a3; --sc-value2: #ffd60a; --sc-value-text: #023e8a; --sc-me: #ff9f1c; --sc-prize: #ffd60a; --sc-deco: "☀ 🌴 🍦"; }
.sr-score--winter { --sc-bg1: #d6ecf8; --sc-bg2: #7fb3d5; --sc-bg3: #2f5d8a; --sc-stripe1: #fff; --sc-stripe2: #a9d6f5; --sc-kicker: #1d3557; --sc-rank: #457b9d; --sc-bar1: #2f5d8a; --sc-bar2: #1d3557; --sc-value1: #fff; --sc-value2: #e3f2fd; --sc-value-text: #1d3557; --sc-gold: #fff; --sc-gold-text: #1d3557; --sc-me: #5aa9e6; --sc-prize: #fff; --sc-deco: "❄ ❅ ❆"; }
.sr-score--patrick { --sc-bg1: #3cb563; --sc-bg2: #1f8a3d; --sc-bg3: #0b4d20; --sc-stripe1: #f6c343; --sc-stripe2: #fff; --sc-kicker: #f97316; --sc-rank: #f97316; --sc-bar1: #136b2e; --sc-bar2: #0a3d1a; --sc-value1: #ffe7a0; --sc-value2: #f6c343; --sc-value-text: #0a3d1a; --sc-me: #f97316; --sc-prize: #ffe7a0; --sc-deco: "☘ 🍀 ☘"; }
.sr-score--paques { --sc-bg1: #c4b5fd; --sc-bg2: #8b5cf6; --sc-bg3: #5b21b6; --sc-stripe1: #fde047; --sc-stripe2: #6ee7b7; --sc-kicker: #10b981; --sc-rank: #34d399; --sc-rank-text: #064e3b; --sc-bar1: #6d28d9; --sc-bar2: #4c1d95; --sc-value1: #fef9c3; --sc-value2: #fde047; --sc-value-text: #4c1d95; --sc-gold: #f9a8d4; --sc-gold-text: #4c1d95; --sc-me: #ec4899; --sc-prize: #fef08a; --sc-deco: "🐣 🥚 🌷"; }

@media (max-width: 480px) {
	.sr-score { padding: 18px 12px 14px; }
	.sr-score-rows li, .sr-score-me { grid-template-columns: 38px minmax(0, 1fr) 84px; min-height: 38px; }
	.sr-score-name { padding: 0 12px; font-size: .92em; }
	.sr-score-value { padding: 0 12px 0 10px; font-size: 1.15em; }
	.sr-score-rows li.is-top1 .sr-score-name { font-size: 1em; }
	.sr-score-rows li.is-top1 .sr-score-value { font-size: 1.3em; }
	.sr-score-title { font-size: 1.4em; }
	.sr-score-deco { font-size: 30px; }
}

/* ------------------------------------------------------------------
 * Mon compte (page WooCommerce) au style Sissou.
 * Tout est sous body.sissou-moncompte (classe ajoutée par l'extension sur la page Mon compte).
 * ------------------------------------------------------------------ */
body.sissou-moncompte { --sa-dark: var(--sissou-secondary, #3f2514); --sa-accent: var(--sissou-primary, #ed6c23); --sa-blue: var(--sissou-tertiary, #2b6cb0); --sa-cream: #fdfbf6; --sa-line: #eadfd3; --sa-muted: #7b6f66; --sa-yellow: #f3b64a; }
body.sissou-moncompte .woocommerce { color: var(--sa-dark); font-family: var(--sissou-font-body, inherit); }
body.sissou-moncompte .woocommerce h2, body.sissou-moncompte .woocommerce h3 { font-family: var(--sissou-font-head, inherit); color: var(--sa-dark); }

/* Mise en page : menu à gauche, contenu à droite (menu en haut sur mobile).
   On ne touche qu'au menu et au contenu eux-mêmes, jamais aux blocs qui les entourent (Divi). */
body.sissou-moncompte .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: flow-root; } /* le contenu ne déborde jamais sur le pied de page */
body.sissou-moncompte .woocommerce-MyAccount-navigation { float: left !important; width: 230px !important; margin: 0 !important; }
body.sissou-moncompte .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 0 0 262px !important; display: flow-root; }

/* Menu : pastilles. */
body.sissou-moncompte .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.sissou-moncompte .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; list-style: none; }
body.sissou-moncompte .woocommerce-MyAccount-navigation li::before { display: none; }
body.sissou-moncompte .woocommerce-MyAccount-navigation a { display: block; padding: 11px 18px; border-radius: 30px; color: var(--sa-dark) !important; font-weight: 600; text-decoration: none; transition: background .15s; }
body.sissou-moncompte .woocommerce-MyAccount-navigation a:hover { background: var(--sa-cream); }
body.sissou-moncompte .woocommerce-MyAccount-navigation li.is-active a { background: var(--sa-accent); color: #fff !important; }
body.sissou-moncompte .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 10px !important; padding-top: 10px !important; border-top: 1px dashed var(--sa-line) !important; }
body.sissou-moncompte .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--sa-muted) !important; font-weight: 500; }

@media (max-width: 980px) {
	body.sissou-moncompte .woocommerce-MyAccount-navigation { float: none !important; width: auto !important; margin: 0 0 20px !important; }
	body.sissou-moncompte .woocommerce-MyAccount-content { margin: 0 !important; }
	/* Menu en bande de pastilles qui défile horizontalement. */
	body.sissou-moncompte .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	body.sissou-moncompte .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.sissou-moncompte .woocommerce-MyAccount-navigation a { white-space: nowrap; border: 1px solid var(--sa-line); padding: 8px 16px; font-size: 14px; }
	body.sissou-moncompte .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--sa-accent); }
	body.sissou-moncompte .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 !important; border: 0 !important; }
}

/* Contenu : cartes, formulaires, boutons. */
body.sissou-moncompte .woocommerce-MyAccount-content > p:first-child, body.sissou-moncompte .woocommerce-MyAccount-content .woocommerce-notices-wrapper + p { margin-top: 0; }
body.sissou-moncompte .woocommerce-MyAccount-content mark { background: #fff4dc; color: var(--sa-dark); padding: 1px 6px; border-radius: 6px; }
body.sissou-moncompte .woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
body.sissou-moncompte .woocommerce form .form-row label { font-weight: 600; margin-bottom: 6px; display: block; line-height: 1.3; }
body.sissou-moncompte .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
body.sissou-moncompte .woocommerce form .form-row input.input-text, body.sissou-moncompte .woocommerce form .form-row textarea, body.sissou-moncompte .woocommerce form .form-row select, body.sissou-moncompte .woocommerce .select2-container .select2-selection { border: 1px solid var(--sa-line) !important; border-radius: 12px !important; padding: 12px 14px !important; background: #fff !important; color: var(--sa-dark) !important; font-size: 16px !important; line-height: 1.3 !important; box-shadow: none !important; width: 100% !important; box-sizing: border-box; }
body.sissou-moncompte .woocommerce .select2-container .select2-selection { height: auto !important; }
body.sissou-moncompte .woocommerce form .form-row input.input-text:focus, body.sissou-moncompte .woocommerce form .form-row textarea:focus { border-color: var(--sa-accent) !important; outline: 2px solid color-mix(in srgb, var(--sa-accent) 25%, transparent); }
body.sissou-moncompte .woocommerce fieldset { border: 1px solid var(--sa-line); border-radius: 18px; padding: 18px 20px 6px; margin: 20px 0; }
body.sissou-moncompte .woocommerce fieldset legend { font-weight: 700; padding: 0 8px; }
body.sissou-moncompte .woocommerce-MyAccount-content .button, body.sissou-moncompte .woocommerce-form-login .button, body.sissou-moncompte .woocommerce-form-register .button, body.sissou-moncompte .woocommerce-ResetPassword .button { background: var(--sissou-cta, var(--sa-accent)) !important; color: var(--sissou-cta-text, #fff) !important; border: 0 !important; border-radius: 30px !important; padding: 12px 24px !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; display: inline-block; cursor: pointer; transition: transform .15s, filter .15s; }
body.sissou-moncompte .woocommerce-MyAccount-content .button:hover, body.sissou-moncompte .woocommerce-form-login .button:hover, body.sissou-moncompte .woocommerce-form-register .button:hover, body.sissou-moncompte .woocommerce-ResetPassword .button:hover { transform: translateY(-1px); filter: brightness(1.05); padding: 12px 24px !important; }
body.sissou-moncompte .woocommerce .button::after { display: none !important; } /* flèche Divi */
body.sissou-moncompte .woocommerce-message, body.sissou-moncompte .woocommerce-info, body.sissou-moncompte .woocommerce-error { border-radius: 14px; background: var(--sa-cream) !important; color: var(--sa-dark) !important; border: 1px solid var(--sa-line) !important; border-left: 5px solid var(--sa-accent) !important; padding: 14px 18px !important; }
body.sissou-moncompte .woocommerce-error { border-left-color: #c0392b !important; }
body.sissou-moncompte .woocommerce-message::before, body.sissou-moncompte .woocommerce-info::before, body.sissou-moncompte .woocommerce-error::before { display: none; }
body.sissou-moncompte .woocommerce-message .button, body.sissou-moncompte .woocommerce-info .button { float: right; margin-left: 12px; padding: 8px 18px !important; }

/* Commandes : tableau sur ordinateur, cartes sur mobile. */
body.sissou-moncompte table.woocommerce-orders-table { border: 1px solid var(--sa-line) !important; border-radius: 18px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; width: 100%; background: #fff; }
body.sissou-moncompte table.woocommerce-orders-table th { background: var(--sa-cream); font-weight: 700; padding: 12px 14px !important; border: 0 !important; text-align: left; }
body.sissou-moncompte table.woocommerce-orders-table td { padding: 12px 14px !important; border: 0 !important; border-top: 1px solid var(--sa-line) !important; vertical-align: middle; }
body.sissou-moncompte table.woocommerce-orders-table td a:not(.button) { color: var(--sa-accent); font-weight: 700; }
body.sissou-moncompte table.woocommerce-orders-table .button { padding: 7px 16px !important; font-size: 13px !important; margin: 2px 4px 2px 0; }
body.sissou-moncompte table.woocommerce-orders-table .button:hover { padding: 7px 16px !important; }
@media (max-width: 768px) {
	body.sissou-moncompte table.woocommerce-orders-table, body.sissou-moncompte table.woocommerce-orders-table tbody { display: block; border: 0 !important; background: none; overflow: visible; }
	body.sissou-moncompte table.woocommerce-orders-table thead { display: none; }
	body.sissou-moncompte table.woocommerce-orders-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
	body.sissou-moncompte table.woocommerce-orders-table td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; background: none !important; }
	body.sissou-moncompte table.woocommerce-orders-table td::before { content: attr(data-title); display: block; float: none !important; font-size: 12px; font-weight: 600; color: var(--sa-muted); text-transform: uppercase; letter-spacing: .03em; }
	body.sissou-moncompte table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number { font-size: 1.15em; }
	body.sissou-moncompte table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; }
	body.sissou-moncompte table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { display: none; }
}

/* Détail d'une commande et adresses. */
body.sissou-moncompte .woocommerce-order-details, body.sissou-moncompte .woocommerce-customer-details, body.sissou-moncompte .sissou-order-fulfillment, body.sissou-moncompte .woocommerce-Address { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 18px 20px; margin: 0 0 18px; }
body.sissou-moncompte .woocommerce-order-details table.shop_table { border: 0 !important; margin: 0; }
body.sissou-moncompte .woocommerce-order-details table.shop_table th, body.sissou-moncompte .woocommerce-order-details table.shop_table td { border-left: 0 !important; border-right: 0 !important; padding: 10px 4px !important; }
body.sissou-moncompte .woocommerce-customer-details address { border: 0 !important; padding: 0 !important; font-style: normal; }
body.sissou-moncompte .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
body.sissou-moncompte .woocommerce-Addresses::before, body.sissou-moncompte .woocommerce-Addresses::after { display: none; }
body.sissou-moncompte .woocommerce-Addresses .woocommerce-Address { float: none !important; width: auto !important; margin: 0; }
body.sissou-moncompte .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
body.sissou-moncompte .woocommerce-Address-title h2, body.sissou-moncompte .woocommerce-Address-title h3 { font-size: 1.1em; margin: 0 0 8px; padding: 0; }
body.sissou-moncompte .woocommerce-Address-title .edit { float: none !important; color: var(--sa-accent); font-weight: 700; font-size: .9em; }
body.sissou-moncompte .woocommerce-Address address { font-style: normal; }

/* Accueil du compte. */
.sa-dash { display: grid; gap: 22px; }
.sa-kicker { margin: 0 0 4px !important; padding: 0 !important; color: var(--sa-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.sa-hello h2 { margin: 0 0 6px; padding: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.sa-hello p:last-child { margin: 0; padding: 0; color: var(--sa-muted); }
.sa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
body.sissou-moncompte .sa-dash .sa-card { display: grid !important; gap: 6px; align-content: start; background: #fff; border: 1px solid var(--sa-line); border-radius: 20px; padding: 20px; color: var(--sa-dark) !important; text-decoration: none !important; }
body.sissou-moncompte .sa-dash a.sa-card--points { background: var(--sa-accent); border-color: var(--sa-accent); color: #fff !important; transition: transform .15s; }
.sa-card--points:hover { transform: translateY(-2px); }
.sa-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.sa-big { font-family: var(--sissou-font-head, inherit); font-size: 46px; line-height: 1; font-weight: 800; }
.sa-bar { display: block; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); overflow: hidden; margin: 4px 0; }
.sa-bar i { display: block; height: 100%; background: #fff; border-radius: 10px; }
.sa-more { margin-top: 6px; font-weight: 700; color: inherit; text-decoration: none; }
body.sissou-moncompte .sa-dash .sa-card a.sa-more { color: var(--sa-accent) !important; }
body.sissou-moncompte .sa-dash a.sa-card--points * { color: #fff !important; }
.sa-order-num { font-family: var(--sissou-font-head, inherit); font-size: 24px; }
.sa-status { justify-self: start; background: #fff4dc; color: var(--sa-dark); border-radius: 30px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.sa-status--completed { background: #e3f4e4; color: #2e7d32; }
.sa-status--cancelled, .sa-status--failed, .sa-status--refunded { background: #f3efea; color: var(--sa-muted); }
.sa-muted { color: var(--sa-muted); font-size: .92em; }
.sa-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
body.sissou-moncompte .sa-dash a.sa-link { display: flex !important; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--sa-cream); border: 1px solid var(--sa-line); color: var(--sa-dark) !important; font-weight: 700; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.sa-link:hover { transform: translateY(-2px); border-color: var(--sa-accent); }
.sa-link span { font-size: 1.4em; }
body.sissou-moncompte .sa-dash a.sa-link--main { background: var(--sissou-cta, var(--sa-accent)); border-color: transparent; color: var(--sissou-cta-text, #fff) !important; }

/* Connexion / création de compte. */
.sa-intro { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.sa-intro h2 { margin: 0 0 14px; padding: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.sa-intro ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sa-intro li { background: var(--sa-cream); border: 1px solid var(--sa-line); border-radius: 30px; padding: 7px 14px; font-size: 14px; font-weight: 600; list-style: none !important; }
body.sissou-moncompte #customer_login { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
body.sissou-moncompte #customer_login::before, body.sissou-moncompte #customer_login::after { display: none; }
body.sissou-moncompte #customer_login > div { float: none !important; width: auto !important; margin: 0; }
body.sissou-moncompte #customer_login > div, body.sissou-moncompte .woocommerce > .woocommerce-form-login, body.sissou-moncompte .woocommerce-ResetPassword { background: #fff; border: 1px solid var(--sa-line); border-radius: 22px; padding: 24px; }
body.sissou-moncompte #customer_login > .u-column2 { background: var(--sa-cream); }
body.sissou-moncompte #customer_login h2 { font-size: 1.4em; margin: 0 0 14px; padding: 0; }
body.sissou-moncompte .woocommerce form.login, body.sissou-moncompte .woocommerce form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0; }
body.sissou-moncompte .woocommerce > .woocommerce-form-login { max-width: 460px; margin: 0 auto; }
body.sissou-moncompte .woocommerce-LostPassword a, body.sissou-moncompte .woocommerce-privacy-policy-text a { color: var(--sa-accent); }
body.sissou-moncompte .woocommerce-form-login__rememberme { display: flex !important; margin: 0 0 14px; }
body.sissou-moncompte .woocommerce-form-login .form-row .button { float: none !important; margin: 0; }
@media (max-width: 600px) {
	.sa-intro ul { display: grid; justify-content: stretch; text-align: left; }
	.sa-intro li { border-radius: 14px; }
}

/* ------------------------------------------------------------------
 * Mon compte sur fond orange (Sissou → Réglages → Apparence → Page « Mon compte »).
 * ------------------------------------------------------------------ */
body.sissou-moncompte--orange #main-content, body.sissou-moncompte--orange #main-content .container { background: var(--sissou-primary, #ed6c23); }
body.sissou-moncompte--orange #main-content .container::before { display: none; } /* trait vertical de la barre latérale Divi */
body.sissou-moncompte--orange #main-content .main_title { display: none; } /* « Salut Prénom » sert de titre */
body.sissou-moncompte--orange .woocommerce-MyAccount-content > p, body.sissou-moncompte--orange .woocommerce > p, body.sissou-moncompte--orange .woocommerce form .form-row label, body.sissou-moncompte--orange .woocommerce fieldset legend { color: #fff; }
body.sissou-moncompte--orange #customer_login label, body.sissou-moncompte--orange .woocommerce > .woocommerce-form-login label, body.sissou-moncompte--orange .woocommerce-ResetPassword label, body.sissou-moncompte--orange .woocommerce-ResetPassword > p { color: var(--sa-dark); }
body.sissou-moncompte--orange .woocommerce fieldset { border-color: rgba(255, 255, 255, .5); }
/* Menu : liens blancs, page active en brun. */
body.sissou-moncompte--orange .woocommerce-MyAccount-navigation a { color: #fff !important; }
body.sissou-moncompte--orange .woocommerce-MyAccount-navigation a:hover { background: rgba(255, 255, 255, .15); }
body.sissou-moncompte--orange .woocommerce-MyAccount-navigation li.is-active a { background: var(--sa-dark); color: #fff !important; border-color: var(--sa-dark); }
body.sissou-moncompte--orange .woocommerce-MyAccount-navigation-link--customer-logout { border-top-color: rgba(255, 255, 255, .5) !important; }
body.sissou-moncompte--orange .woocommerce-MyAccount-navigation-link--customer-logout a { color: rgba(255, 255, 255, .85) !important; }
@media (max-width: 980px) {
	body.sissou-moncompte--orange .woocommerce-MyAccount-navigation a { border-color: rgba(255, 255, 255, .6); }
}
/* Titres et textes d'accueil. */
body.sissou-moncompte--orange .sa-kicker { color: #fff4dc; }
body.sissou-moncompte--orange .sa-hello p:last-child { color: #fff; }
/* Cartes orange : bordure claire pour les détacher du fond. */
body.sissou-moncompte--orange .sa-dash a.sa-card--points, body.sissou-moncompte--orange .sr-card--dark { border: 2px solid #fff4dc; box-shadow: 0 10px 24px rgba(63, 37, 20, .18); }
body.sissou-moncompte--orange .sa-card, body.sissou-moncompte--orange .sr-card { box-shadow: 0 10px 24px rgba(63, 37, 20, .12); }
/* Connexion. */
body.sissou-moncompte--orange .sa-intro h2 { color: #fff; }

/* Mot de passe : règle affichée et jauge bien visible. */
.sa-password-help { background: #fff4dc; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--sa-dark, #3f2514); margin: 0 0 14px !important; }
body.sissou-moncompte .woocommerce-password-strength { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: left; }
body.sissou-moncompte .woocommerce-password-strength.short, body.sissou-moncompte .woocommerce-password-strength.bad { background: #fdecea; color: #a52a1c; }
body.sissou-moncompte .woocommerce-password-strength.good { background: #fff4dc; color: #8a5a00; }
body.sissou-moncompte .woocommerce-password-strength.strong { background: #e3f4e4; color: #2e7d32; }
body.sissou-moncompte .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--sa-dark, #3f2514); }
body.sissou-moncompte--orange .woocommerce-ResetPassword .woocommerce-password-hint { color: var(--sa-dark, #3f2514); }
