/* Rhuwa Paint, espace client : connexion, tableau de bord, badges, préférences (chargé sur tout le site) */

.mk3 { --blob: 48% 52% 60% 40% / 50% 42% 58% 50%; --blob2: 58% 42% 45% 55% / 45% 58% 42% 55%; --panel-acc: rgba(33,19,44,.92); }

/* ---------- préférences du client appliquées à tout le site ---------- */
body[data-anim="off"] .mk3 *, body[data-anim="off"] .mk3 *::before, body[data-anim="off"] .mk3 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body[data-anim="reduced"] .mk3 *, body[data-anim="reduced"] .mk3 *::before, body[data-anim="reduced"] .mk3 *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
body[data-anim="off"] .decor, body[data-anim="off"] .grain { display: none; }

/* ---------- pastille du compte dans la navbar ---------- */
.account-btn .acc-dot { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--blob); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); transition: border-radius .5s var(--back), transform .35s var(--back); }
.account-btn:hover .acc-dot { border-radius: var(--blob2); transform: rotate(-8deg); }

/* ---------- pastilles d'état ---------- */
.acc-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 6px; border-radius: 40% 60% 55% 45% / 60% 50% 50% 40%; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.08); color: var(--ink); }
.acc-pill::before { content: ""; width: 7px; height: 7px; border-radius: var(--blob); background: currentColor; flex: 0 0 auto; }
.acc-pill.lg { font-size: 13.5px; padding: 8px 16px 9px; }
.acc-pill.magenta { background: rgba(var(--mg), .2); color: #ffb0da; }
.acc-pill.blue { background: rgba(143,184,255,.16); color: #bcd4ff; }
.acc-pill.lavender { background: rgba(179,157,255,.17); color: #d5c9ff; }
.acc-pill.teal { background: rgba(46,196,182,.16); color: #8ff5e0; }
.acc-pill.green { background: rgba(79,209,161,.15); color: #9ff0cf; }
.acc-pill.amber { background: rgba(245,194,107,.15); color: #ffdca0; }
.acc-pill.coral { background: rgba(240,127,134,.16); color: #ffc0c6; }
.acc-pill.grey { background: rgba(179,157,255,.08); color: var(--muted); }

/* ---------- structure de l'espace client ---------- */
.acc { padding-bottom: 104px; }
.acc-hero { display: flex; align-items: center; gap: 30px; padding: 56px 0 40px; }
.acc-avatar { position: relative; flex: 0 0 auto; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 62%, #140a1c) 100%); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--c) 80%, transparent); color: #fff; font-family: var(--font-head); font-size: 40px; font-weight: 800; transform: rotate(-6deg); transition: border-radius .7s var(--back), transform .5s var(--back); }
.acc-avatar > span { position: relative; z-index: 1; transform: rotate(6deg); text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.acc-avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(104deg, rgba(255,255,255,.1) 0 2px, transparent 2px 7px); mix-blend-mode: overlay; }
.acc-avatar:hover { border-radius: var(--blob2); transform: rotate(4deg); }
.acc-avatar-drip { position: absolute; left: 58%; bottom: -14px; width: 13px; height: 22px; background: var(--c); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; }
.acc-avatar-drip::after { content: ""; position: absolute; left: 1px; bottom: -10px; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.acc-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.acc-hero-text .page-title { font-size: 40px; }
.acc-hero-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: 0 0 auto; }
.acc-since { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.acc-since svg { width: 15px; height: 15px; color: var(--lavender); }
.acc-logout { margin: 0; }

.acc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.acc-tabs { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 4px; }
.acc-tab { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s, transform .4s var(--back); }
.acc-tab::before { content: ""; position: absolute; inset: 2px -4px; z-index: -1; border-radius: var(--blob); background: var(--tc); opacity: 0; transform: scaleX(.6) rotate(-2deg); transition: opacity .3s, transform .5s var(--back); }
.acc-tab:hover { color: var(--ink); transform: translateX(4px) rotate(-1.2deg); }
.acc-tab:hover::before { opacity: .16; transform: scaleX(1) rotate(-1.5deg); }
.acc-tab.is-on { color: #fff; }
.acc-tab.is-on::before { opacity: .78; transform: scaleX(1) rotate(-1.5deg); box-shadow: 0 14px 28px -16px var(--tc); }
.acc-tab-ic { width: 34px; height: 34px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob2); background: color-mix(in srgb, var(--tc) 22%, transparent); color: color-mix(in srgb, var(--tc) 55%, #fff); transition: background .3s, color .3s; }
.acc-tab.is-on .acc-tab-ic { background: rgba(20,10,28,.28); color: #fff; }
.acc-tab-ic svg { width: 16px; height: 16px; }
.acc-tab-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.acc-tab-n { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-tab.is-on .acc-tab-n { color: rgba(255,255,255,.85); }
.acc-tab-new { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--blob); background: var(--coral); color: #2a0b12; font-size: 11px; font-weight: 800; animation: accPulse 2.4s ease-in-out infinite; }
@keyframes accPulse { 50% { transform: scale(1.14) rotate(-8deg); } }

.acc-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.acc-block { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: var(--r); background: var(--panel-acc); box-shadow: 0 30px 60px -32px rgba(0,0,0,.8); min-width: 0; }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.acc-head > div { min-width: 0; flex: 1 1 260px; }
.acc-h { position: relative; display: inline-block; margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; z-index: 0; }
.acc-h::after { content: ""; position: absolute; z-index: -1; left: -6px; bottom: 1px; width: min(78%, 180px); height: 11px; background: linear-gradient(90deg, rgba(var(--mg), .75), rgba(179,157,255,.45)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7c12-4 40-5 70-4 30 0 60 1 84 2 3 1 3 4 0 4-26 2-58 1-88 1S14 11 4 10c-3 0-4-2-2-3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7c12-4 40-5 70-4 30 0 60 1 84 2 3 1 3 4 0 4-26 2-58 1-88 1S14 11 4 10c-3 0-4-2-2-3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .75; }
.acc-h.sm { font-size: 19px; }
.acc-soft { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.acc-soft.small { font-size: 13px; margin: 0; }
.acc-soft b { color: var(--ink); font-weight: 600; }
.acc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.acc-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.acc .link-more { flex: 0 0 auto; margin-top: 6px; }

/* chiffres clés : taches de couleur */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.acc-stat { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 2px; padding: 26px 26px 24px; border-radius: var(--r); background: var(--panel-acc); box-shadow: 0 30px 60px -32px rgba(0,0,0,.8); transition: transform .45s var(--back); }
.acc-stat:hover { transform: rotate(-1.5deg); }
.acc-stat b { font-family: var(--font-head); font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.acc-stat span:not(.acc-stat-blob) { font-size: 13.5px; color: var(--muted); }
.acc-stat-blob { position: absolute; z-index: -1; right: -26px; top: -34px; width: 132px; height: 120px; border-radius: var(--blob); background: var(--sc); opacity: .42; transition: transform .7s var(--back), border-radius .7s var(--back); }
.acc-stat-blob::after { content: ""; position: absolute; left: 30%; bottom: -18px; width: 14px; height: 26px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: var(--sc); }
.acc-stat:hover .acc-stat-blob { transform: translate(-8px, 6px) rotate(12deg); border-radius: var(--blob2); }

/* vide */
.acc-empty { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: var(--r); background: rgba(255,255,255,.03); }
.acc-empty-drop { --dc: #b8307a; flex: 0 0 auto; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: color-mix(in srgb, var(--dc) 26%, transparent); color: color-mix(in srgb, var(--dc) 45%, #fff); transform: rotate(-8deg); }
.acc-empty-drop svg { width: 28px; height: 28px; transform: rotate(8deg); }
.acc-empty > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.acc-empty b { font-family: var(--font-head); font-size: 17px; }
.acc-empty p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- commandes ---------- */
.ord-list { display: flex; flex-direction: column; gap: 10px; }
.ord-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 150px 100px 18px; grid-template-areas: "th main frise state total go"; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; border-radius: var(--r); background: rgba(255,255,255,.035); transition: background .25s, transform .45s var(--back); }
.ord-row:hover { background: rgba(255,255,255,.065); transform: rotate(-.6deg); }
.ord-thumbs { grid-area: th; display: flex; padding-left: 4px; }
.ord-thumbs img { width: 46px; height: 58px; object-fit: cover; border-radius: var(--r); box-shadow: 0 10px 20px -10px rgba(0,0,0,.9); transform: rotate(-4deg); transition: transform .45s var(--back); }
.ord-thumbs img + img { margin-left: -24px; transform: rotate(5deg); }
.ord-thumbs img + img + img { transform: rotate(-2deg); }
.ord-row:hover .ord-thumbs img { transform: rotate(-8deg) translateY(-2px); }
.ord-row:hover .ord-thumbs img + img { transform: rotate(8deg) translateX(6px); }
.ord-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ord-main b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.ord-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-row .frise { grid-area: frise; }
.ord-state { grid-area: state; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ord-pay { font-size: 11.5px; color: #ffdca0; }
.ord-total { grid-area: total; text-align: right; font-family: var(--font-head); font-size: 17px; font-weight: 700; white-space: nowrap; }
.ord-go { grid-area: go; color: var(--lavender); display: flex; transition: transform .35s var(--back); }
.ord-go svg { width: 16px; height: 16px; }
.ord-row:hover .ord-go { transform: translateX(4px); }

/* frise d'étapes peinte */
.frise { position: relative; --dot: 22px; padding-top: 2px; }
.frise-track { position: absolute; left: 10%; right: 10%; top: calc(2px + var(--dot) / 2 - 5px); height: 10px; border-radius: 40% 60% 50% 50% / 50%; background: rgba(255,255,255,.07); }
.frise-fill { position: absolute; left: -2px; top: -4px; bottom: -4px; width: calc(var(--p) + 4px); border-radius: 45% 55% 60% 40% / 50%; background: linear-gradient(90deg, var(--magenta), var(--lavender)); transition: width 1.2s var(--out); }
.frise.painted .frise-fill { background: none; }
.frise-track canvas { position: absolute; left: -14px; top: -16px; pointer-events: none; }
.frise-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.frise-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.frise-drop { width: var(--dot); height: var(--dot); border-radius: var(--blob); background: #2d1c3d; box-shadow: inset 0 -3px 6px rgba(0,0,0,.35); transition: transform .5s var(--back), background .4s; }
.frise-steps li:nth-child(2n) .frise-drop { border-radius: var(--blob2); }
.frise-steps li.is-done .frise-drop { background: var(--magenta-hi); }
.frise-steps li.is-now .frise-drop { background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--lavender) 40%, #7b5ee0 100%); transform: scale(1.3) rotate(-10deg); box-shadow: 0 0 0 6px rgba(179,157,255,.16), 0 10px 22px -8px rgba(179,157,255,.8); animation: friseNow 2.8s ease-in-out infinite; }
@keyframes friseNow { 50% { box-shadow: 0 0 0 10px rgba(179,157,255,.07), 0 10px 22px -8px rgba(179,157,255,.8); transform: scale(1.36) rotate(6deg); } }
.frise-steps b { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.frise-steps li.is-done b, .frise-steps li.is-now b { color: var(--ink); }
.frise-steps small { font-size: 11.5px; color: var(--lavender); margin-top: -4px; }
.frise-caption { display: none; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.frise-caption b { color: var(--ink); }
.frise.mini { --dot: 11px; }
.frise.mini .frise-track { height: 5px; top: calc(2px + var(--dot) / 2 - 2.5px); }
.frise.mini .frise-fill { top: -2px; bottom: -2px; }
.frise.mini .frise-steps li.is-now .frise-drop { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(179,157,255,.18); animation: none; }
.frise.is-cancelled .frise-fill { width: 0; }
.frise.is-cancelled .frise-drop { background: rgba(240,127,134,.25); }

/* détail d'une commande */
.acc-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--lavender); transition: transform .35s var(--back), color .25s; }
.acc-back svg { width: 15px; height: 15px; }
.acc-back:hover { color: #fff; transform: translateX(-4px); }
.od-head { align-items: center; margin-bottom: 6px; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.od-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.od-lines { display: flex; flex-direction: column; gap: 14px; }
.od-line { display: flex; align-items: center; gap: 16px; }
.od-img { flex: 0 0 auto; width: 64px; height: 80px; overflow: hidden; border-radius: var(--r); box-shadow: 0 14px 26px -14px rgba(0,0,0,.9); transition: transform .4s var(--back); }
.od-img:hover { transform: rotate(-4deg); }
.od-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.od-info b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.od-info small { font-size: 12.5px; color: var(--muted); }
.od-line strong { font-family: var(--font-head); font-size: 15px; white-space: nowrap; }
.od-note { padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.035); }
.od-note small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); }
.od-note p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.acc-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; font-size: 14px; line-height: 1.5; }
.acc-kv dt { color: var(--muted); }
.acc-kv dd { margin: 0; overflow-wrap: anywhere; }
.copyable { cursor: pointer; color: #8ff5e0; transition: color .2s; }
.copyable:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.od-track { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); background: rgba(46,196,182,.1); }
.od-track-ic { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: rgba(46,196,182,.22); color: #8ff5e0; }
.od-track-ic svg { width: 18px; height: 18px; }
.od-track-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.od-track-text small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.od-track-text b { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.od-ins { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: rgba(245,194,107,.08); }
.od-ins > b { font-size: 14px; }
.od-ins p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.od-docs { display: flex; flex-direction: column; gap: 8px; }
.od-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.04); transition: background .25s, transform .4s var(--back); }
.od-doc:hover { background: rgba(var(--mg), .16); transform: rotate(-1deg); }
.od-doc > span:first-child { width: 38px; height: 38px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob2); background: rgba(179,157,255,.16); color: var(--lavender); }
.od-doc > span:nth-child(2) { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.od-doc b { font-size: 14px; }
.od-doc small { font-size: 12px; color: var(--muted); }
.od-doc svg { width: 17px; height: 17px; }
.od-doc > svg { color: var(--lavender); }
.acc-help { display: flex; align-items: center; gap: 12px; padding: 4px 6px; font-size: 13.5px; color: var(--muted); transition: transform .35s var(--back); }
.acc-help svg { width: 18px; height: 18px; color: var(--magenta-soft); }
.acc-help b { color: var(--magenta-soft); font-weight: 600; }
.acc-help:hover { transform: translateX(4px); }
.acc-callout { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.55; }
.acc-callout svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.acc-callout.coral { background: rgba(240,127,134,.12); }
.acc-callout.coral svg { color: var(--coral); }
.acc-callout a { color: var(--magenta-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- devis et messages ---------- */
.q-list, .msg-list { display: flex; flex-direction: column; gap: 10px; }
.q-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: rgba(255,255,255,.035); transition: background .25s; }
.q-row.is-open { background: linear-gradient(100deg, rgba(46,196,182,.14), rgba(255,255,255,.035) 60%); }
.q-ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: rgba(179,157,255,.14); color: var(--lavender); }
.q-row.is-open .q-ic { background: rgba(46,196,182,.24); color: #8ff5e0; }
.q-ic svg { width: 18px; height: 18px; }
.q-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.q-main b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.q-main small { font-size: 12.5px; color: var(--muted); }
.q-total { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-head); font-size: 17px; font-weight: 700; white-space: nowrap; }
.q-total small { font-family: var(--font-body); font-size: 11.5px; font-weight: 400; color: var(--muted); }
.q-row .btn { align-self: center; }

.msg-item { border-radius: var(--r); background: rgba(255,255,255,.035); transition: background .25s; }
.msg-item[open] { background: rgba(255,255,255,.055); }
.msg-item summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.msg-item summary::-webkit-details-marker { display: none; }
.msg-ic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob2); background: color-mix(in srgb, var(--mc) 22%, transparent); color: color-mix(in srgb, var(--mc) 50%, #fff); }
.msg-ic svg { width: 17px; height: 17px; }
.msg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg-main b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-main small { font-size: 12px; color: var(--muted); }
.msg-chev { color: var(--muted); display: flex; transition: transform .35s var(--back); }
.msg-chev svg { width: 16px; height: 16px; }
.msg-item[open] .msg-chev { transform: rotate(180deg); }
.msg-body { padding: 0 18px 18px 74px; }
.msg-body p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-body small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--lavender); }

/* ---------- badges ---------- */
.medal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 10px 14px; text-align: center; transition: transform .45s var(--back); }
.medal:hover { transform: rotate(-2.5deg); }
.medal-disc { position: relative; width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.medal-paint { position: absolute; inset: 0; border-radius: var(--blob); background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--bc) 50%, #fff) 0%, var(--bc) 46%, color-mix(in srgb, var(--bc) 58%, #140a1c) 100%); box-shadow: 0 20px 38px -16px color-mix(in srgb, var(--bc) 85%, transparent), inset 0 -8px 16px rgba(0,0,0,.22); transform: rotate(-6deg); transition: border-radius .7s var(--back), transform .6s var(--back); }
.medal-paint::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(106deg, rgba(255,255,255,.12) 0 2px, transparent 2px 7px); mix-blend-mode: overlay; }
.medal:nth-child(3n+2) .medal-paint { border-radius: var(--blob2); transform: rotate(5deg); }
.medal:hover .medal-paint { border-radius: var(--blob2); transform: rotate(4deg) scale(1.04); }
.medal-ic { position: relative; z-index: 1; display: flex; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.medal-ic svg { width: 40px; height: 40px; stroke-width: 1.8; }
.medal-drip { position: absolute; left: 60%; bottom: -12px; width: 12px; height: 20px; background: color-mix(in srgb, var(--bc) 80%, #140a1c); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; }
.medal-drip::after { content: ""; position: absolute; left: 1px; bottom: -9px; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.medal-text { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.medal-label { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; }
.medal-text small { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 190px; }
.medal-date { font-style: normal; font-size: 11.5px; color: var(--lavender); }
.medal-bar { display: block; width: 120px; height: 6px; margin-top: 4px; border-radius: 40% 60% 50% 50% / 50%; background: rgba(255,255,255,.08); overflow: hidden; }
.medal-bar i { display: block; height: 100%; border-radius: inherit; background: var(--bc); min-width: 4px; }
/* non obtenus : silhouette esquissée */
.medal.is-locked .medal-paint { background: repeating-linear-gradient(118deg, rgba(179,157,255,.1) 0 3px, rgba(179,157,255,.035) 3px 8px); box-shadow: inset 0 -8px 16px rgba(0,0,0,.25); }
.medal.is-locked .medal-paint::after { display: none; }
.medal.is-locked .medal-ic { color: rgba(179,164,194,.5); filter: none; }
.medal.is-locked .medal-label { color: var(--muted); }
.medal.is-locked:hover .medal-paint { background: repeating-linear-gradient(118deg, color-mix(in srgb, var(--bc) 30%, transparent) 0 3px, rgba(179,157,255,.04) 3px 8px); }
.medal.is-locked:hover .medal-ic { color: color-mix(in srgb, var(--bc) 60%, #fff); }
/* nouveau : peint sous vos yeux */
#medalGrid .medal.is-new .medal-paint { clip-path: inset(0 100% 0 0); }
#medalGrid .medal.is-new .medal-ic { transform: scale(0) rotate(-40deg); }
#medalGrid .medal.is-new .medal-drip { transform: scaleY(0); transform-origin: top; }
#medalGrid .medal.is-new.revealed .medal-paint { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--out), border-radius .7s var(--back), transform .6s var(--back); }
#medalGrid .medal.is-new.revealed .medal-ic { transform: none; transition: transform .7s var(--back) .75s; }
#medalGrid .medal.is-new.revealed .medal-drip { transform: none; transition: transform .6s var(--out) 1s; }
#medalGrid .medal.is-new::before { content: "Nouveau"; position: absolute; top: 4px; left: calc(50% + 24px); z-index: 3; padding: 3px 9px 4px; border-radius: 40% 60% 55% 45% / 60% 50% 50% 40%; background: var(--coral); color: #2a0b12; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transform: rotate(8deg) scale(0); transition: transform .5s var(--back) 1.1s; }
#medalGrid .medal.is-new.revealed::before { transform: rotate(8deg) scale(1); }
.medal-disc canvas.medal-stroke { position: absolute; left: -24px; top: -18px; pointer-events: none; z-index: 2; }
.splat { position: absolute; z-index: 4; width: 9px; height: 9px; border-radius: var(--blob); background: var(--bc); pointer-events: none; }
.medal.sm { gap: 10px; padding: 8px 4px; width: 128px; }
.medal.sm .medal-disc { width: 62px; height: 62px; }
.medal.sm .medal-ic svg { width: 26px; height: 26px; }
.medal.sm .medal-drip { width: 9px; height: 14px; bottom: -9px; }
.medal.sm .medal-drip::after { width: 7px; height: 7px; bottom: -6px; }
.medal.sm .medal-label { font-size: 13.5px; }
.medal.sm small { display: none; }
.medal-row { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 16px; margin-top: 6px; }
.badge-score { display: flex; align-items: baseline; gap: 6px; padding: 10px 18px; border-radius: var(--blob); background: rgba(179,157,255,.14); }
.badge-score b { font-family: var(--font-head); font-size: 30px; line-height: 1; }
.badge-score small { font-size: 13px; color: var(--muted); }
.badge-fresh { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--r); background: rgba(240,127,134,.13); font-size: 14px; font-weight: 600; }
.badge-fresh svg { width: 18px; height: 18px; color: var(--coral); }
.acc-next { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--bc) 12%, transparent); }
.acc-next-ic { width: 50px; height: 50px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob2); background: repeating-linear-gradient(118deg, color-mix(in srgb, var(--bc) 45%, transparent) 0 3px, color-mix(in srgb, var(--bc) 20%, transparent) 3px 8px); color: #fff; }
.acc-next-ic svg { width: 22px; height: 22px; }
.acc-next-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.acc-next-text small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-next-text b { font-family: var(--font-head); font-size: 16px; }
.acc-next-text em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.acc-next .medal-bar { width: 100%; max-width: 320px; }

/* raccourcis */
.acc-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-shortcuts a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.04); transition: background .3s, transform .45s var(--back); }
.acc-shortcuts a:hover { background: color-mix(in srgb, var(--sc) 20%, transparent); transform: rotate(-1.8deg); }
.acc-shortcuts span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: color-mix(in srgb, var(--sc) 24%, transparent); color: color-mix(in srgb, var(--sc) 45%, #fff); margin-bottom: 4px; }
.acc-shortcuts span svg { width: 18px; height: 18px; }
.acc-shortcuts b { font-size: 14px; }
.acc-shortcuts small { font-size: 12.5px; color: var(--muted); }

/* ---------- profil, adresses ---------- */
.acc-static { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--r); background: rgba(255,255,255,.03); font-size: 14px; min-width: 0; }
.acc-static span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-static a { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--magenta-soft); }
.acc-colors { border: none; padding: 0; margin: 0; min-width: 0; }
.acc-colors legend { padding: 0; margin-bottom: 12px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 12px; }
.paint-swatch { position: relative; cursor: pointer; }
.paint-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.paint-swatch span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--blob); background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 50%, #fff) 0%, var(--c) 50%, color-mix(in srgb, var(--c) 60%, #140a1c) 100%); transition: transform .45s var(--back), border-radius .6s var(--back); }
.paint-swatch:nth-child(2n) span { border-radius: var(--blob2); }
.paint-swatch:hover span { transform: rotate(-12deg) scale(1.08); }
.paint-swatch input:checked + span { transform: scale(1.18) rotate(-10deg); box-shadow: 0 10px 22px -8px var(--c); }
.paint-swatch input:checked + span::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.paint-swatch input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 3px; }
.addr-list { display: flex; flex-direction: column; gap: 16px; }
.addr { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: rgba(255,255,255,.035); transition: background .3s, box-shadow .3s; }
.addr.is-default { background: rgba(var(--mg), .09); box-shadow: inset 3px 0 0 var(--magenta-hi); }
.addr-top { display: flex; align-items: flex-end; gap: 16px; }
.addr-label { flex: 1 1 auto; min-width: 0; }
.addr-default { display: inline-flex; align-items: center; gap: 9px; padding: 12px 4px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.addr-default input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addr-dot { width: 18px; height: 18px; border-radius: var(--blob); background: rgba(255,255,255,.1); transition: background .25s, transform .4s var(--back); }
.addr-default input:checked + .addr-dot { background: var(--magenta-hi); transform: rotate(-12deg) scale(1.12); }
.addr-default input:focus-visible + .addr-dot { outline: 2px solid var(--lavender); outline-offset: 2px; }
.addr-remove { width: 42px; height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--muted); transition: background .25s, color .25s, transform .35s var(--back); }
.addr-remove svg { width: 17px; height: 17px; }
.addr-remove:hover { background: rgba(240,127,134,.16); color: #ffc0c6; transform: rotate(-6deg); }

/* ---------- préférences ---------- */
.pref { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border-radius: var(--r); background: rgba(255,255,255,.028); }
.pref-ic { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: color-mix(in srgb, var(--pc) 22%, transparent); color: color-mix(in srgb, var(--pc) 45%, #fff); }
.pref:nth-child(2n) .pref-ic { border-radius: var(--blob2); }
.pref-ic svg { width: 20px; height: 20px; }
.pref-text b { display: block; font-size: 15px; font-weight: 600; }
.pref-text small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pref-saved { font-size: 12.5px; font-weight: 600; color: #8ff5e0; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--back); display: inline-flex; align-items: center; gap: 6px; }
.pref-saved.show { opacity: 1; transform: none; }
.seg { position: relative; isolation: isolate; display: inline-flex; padding: 5px; border-radius: var(--r); background: rgba(255,255,255,.05); }
.seg-opt { position: relative; z-index: 1; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: block; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.seg-opt input:checked + span { color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: -2px; }
.seg-paint { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 5px; width: 0; border-radius: var(--blob); background: var(--pc); box-shadow: 0 10px 20px -10px var(--pc); transition: left .5s var(--back), width .5s var(--back), border-radius .6s; }
.seg:not(.ready) .seg-opt input:checked + span { background: var(--pc); border-radius: var(--blob); }
.acc-switch { position: relative; display: inline-block; width: 54px; height: 30px; cursor: pointer; flex: 0 0 auto; }
.acc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-track { position: absolute; inset: 0; border-radius: 45% 55% 50% 50% / 55% 50% 50% 45%; background: rgba(255,255,255,.1); transition: background .3s; }
.acc-track::after { content: ""; position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; border-radius: var(--blob); background: #cbbfd8; transition: transform .45s var(--back), background .3s; }
.acc-switch input:checked + .acc-track { background: var(--pc, var(--magenta)); }
.acc-switch input:checked + .acc-track::after { transform: translateX(24px) rotate(90deg); background: #fff; }
.acc-switch input:focus-visible + .acc-track { box-shadow: 0 0 0 2px var(--lavender); }

/* ---------- sécurité, données ---------- */
.pw { position: relative; }
.mk3 .pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--muted); transition: color .2s, background .2s; }
.pw-eye:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.pw-eye svg { width: 17px; height: 17px; }
.pw-meter { display: block; height: 5px; margin-top: 2px; border-radius: 40% 60% 50% 50% / 50%; background: rgba(255,255,255,.06); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: var(--w, 0%); background: var(--mc, var(--coral)); border-radius: inherit; transition: width .45s var(--out), background .3s; }
.field label small { font-size: 11px; color: var(--lavender); margin-left: 6px; letter-spacing: 0; }
.data-block { flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
.data-ic { width: 60px; height: 60px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: rgba(46,196,182,.2); color: #8ff5e0; }
.data-ic svg { width: 24px; height: 24px; }
.data-text { flex: 1 1 320px; min-width: 0; }
.danger-block { background: linear-gradient(160deg, rgba(240,127,134,.1), var(--panel-acc) 55%); }
.btn-ghost.danger { color: #ffc0c6; --fill: rgba(240,127,134,.5); }
.danger-confirm { display: flex; flex-direction: column; gap: 18px; }
.btn.danger-go { background: #b8364f; --fill: #d44b66; box-shadow: 0 12px 28px -14px rgba(212,75,102,.8); }

/* ---------- connexion et inscription : panneau peint ---------- */
.auth-wrap { padding-top: 44px; padding-bottom: 104px; }
.auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 660px; border-radius: var(--r); box-shadow: 0 50px 90px -46px rgba(0,0,0,.9); }
.auth-art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px 54px 52px; border-radius: var(--r) 0 0 var(--r); background: radial-gradient(110% 80% at 12% 0%, rgba(184,48,122,.42), transparent 62%), radial-gradient(90% 80% at 100% 100%, rgba(138,112,232,.38), transparent 62%), #1c0f28; }
.auth-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-canvas canvas { position: absolute; display: block; }
.auth-drip { position: absolute; top: 0; z-index: -1; width: 16px; height: 70px; border-radius: 0 0 50% 50% / 0 0 26% 26%; background: var(--magenta-hi); transform-origin: top; animation: authDrip 7s var(--out) both; }
.auth-drip::after { content: ""; position: absolute; left: 1px; bottom: -12px; width: 14px; height: 16px; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%; background: inherit; }
.auth-drip.d1 { left: 18%; height: 96px; }
.auth-drip.d2 { left: 23%; width: 10px; height: 54px; background: #d2489a; animation-delay: .4s; }
.auth-drip.d3 { right: 16%; width: 13px; height: 120px; background: #8a70e8; animation-delay: .9s; }
@keyframes authDrip { from { transform: scaleY(.1); } }
.auth-art-inner { position: relative; display: flex; flex-direction: column; gap: 6px; }
.auth-title { margin: 14px 0 12px; font-size: 54px; line-height: 1.02; font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 30px rgba(20,10,28,.6); }
.auth-title em { font-style: normal; background: linear-gradient(100deg, #ffc2e3 0%, #ec7bb8 35%, #cdbdff 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-intro { margin: 0 0 28px; max-width: 440px; font-size: 15px; line-height: 1.7; color: #e3d6ee; text-shadow: 0 1px 14px rgba(20,10,28,.9); }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.auth-perks li { display: flex; align-items: flex-start; gap: 12px; }
.perk-drop { width: 42px; height: 42px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: color-mix(in srgb, var(--c) 30%, rgba(20,10,28,.5)); color: color-mix(in srgb, var(--c) 40%, #fff); transform: rotate(-6deg); transition: transform .45s var(--back), border-radius .6s var(--back); }
.auth-perks li:nth-child(2n) .perk-drop { border-radius: var(--blob2); transform: rotate(5deg); }
.auth-perks li:hover .perk-drop { transform: rotate(-14deg) scale(1.08); border-radius: var(--blob2); }
.perk-drop svg { width: 18px; height: 18px; }
.auth-perks b { display: block; font-size: 13.5px; font-weight: 600; }
.auth-perks small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: #d2c6df; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px 52px; border-radius: 0 var(--r) var(--r) 0; background: rgba(33,19,44,.97); }
.auth-switch { position: relative; isolation: isolate; align-self: flex-start; display: inline-flex; padding: 5px; border-radius: var(--r); background: rgba(255,255,255,.05); }
.auth-switch a { position: relative; z-index: 1; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s; }
.auth-switch a[aria-selected="true"] { color: #fff; }
.auth-switch-paint { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 5px; width: 0; border-radius: var(--blob); background: var(--magenta); box-shadow: 0 12px 24px -12px rgba(var(--mg), .9); transition: left .55s var(--back), width .55s var(--back), border-radius .6s; }
.auth-switch:not(.ready) a[aria-selected="true"] { background: var(--magenta); border-radius: var(--blob); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form[hidden] { display: none; }
.auth-form-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.auth-form-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.auth-form .field > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-link { font-size: 12px; font-weight: 600; color: var(--magenta-soft); letter-spacing: 0; transition: color .2s; }
.field-link:hover { color: #fff; }
.auth-form .check-line { position: relative; font-size: 12.5px; color: var(--muted); }
.auth-form .check-line.has-error { color: #ffc0cc; }
.mk3 .btn.auth-submit { align-self: stretch; margin-top: 4px; padding-top: 16px; padding-bottom: 16px; }
.auth-alt { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--magenta-soft); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.auth-err { margin: -4px 0 0; padding: 12px 14px; border-radius: var(--r); background: rgba(255,107,129,.12); color: #ffd0da; font-size: 13px; line-height: 1.5; }
.auth-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.auth-sent[hidden] { display: none; }
.auth-sent h2 { margin: 0; font-size: 26px; }
.auth-sent p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.auth-sent-drop { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: var(--blob); background: rgba(46,196,182,.22); color: #8ff5e0; transform: rotate(-8deg); }
.auth-sent-drop.coral { background: rgba(240,127,134,.2); color: #ffc0c6; }
.auth-sent-drop svg { width: 28px; height: 28px; }

/* ---------- toast « Nouveau badge débloqué » (toutes les pages) ---------- */
.badge-toast { position: fixed; right: 28px; bottom: 92px; z-index: 960; display: flex; align-items: center; gap: 16px; max-width: 420px; padding: 14px 16px 14px 14px; border-radius: var(--r); background: #24132f; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); opacity: 0; transform: translateY(24px) rotate(-3deg); pointer-events: none; transition: opacity .4s, transform .6s var(--back); }
.badge-toast.show { opacity: 1; transform: rotate(-1deg); pointer-events: auto; }
.badge-toast .bt-disc { position: relative; width: 58px; height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.badge-toast .bt-disc::before { content: ""; position: absolute; inset: 0; border-radius: var(--blob); background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--bc) 50%, #fff) 0%, var(--bc) 46%, color-mix(in srgb, var(--bc) 58%, #140a1c) 100%); clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--out) .15s; box-shadow: 0 12px 24px -10px var(--bc); }
.badge-toast.show .bt-disc::before { clip-path: inset(0 0 0 0); }
.badge-toast .bt-disc svg { position: relative; width: 26px; height: 26px; color: #fff; transform: scale(0); transition: transform .6s var(--back) .7s; }
.badge-toast.show .bt-disc svg { transform: none; }
.badge-toast .bt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.badge-toast .bt-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: var(--coral); }
.badge-toast .bt-text b { font-family: var(--font-head); font-size: 16px; }
.badge-toast .bt-text a { font-size: 12.5px; font-weight: 600; color: var(--magenta-soft); }
.badge-toast .bt-text a:hover { color: #fff; }
.badge-toast .bt-x { align-self: flex-start; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--muted); }
.badge-toast .bt-x:hover { color: #fff; background: rgba(255,255,255,.07); }
.badge-toast .bt-x svg { width: 14px; height: 14px; }

/* ---------- panier et confirmation : liens vers le compte ---------- */
.mk3 .acc-invite { display: flex; flex-direction: row; align-items: center; gap: 16px 18px; flex-wrap: wrap; padding: 26px 28px; }
.acc-invite .btn { align-self: center; }
.acc-invite .acc-empty-drop { width: 58px; height: 58px; }
.acc-invite .acc-empty-drop svg { width: 22px; height: 22px; }
.acc-invite > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.acc-invite b { font-family: var(--font-head); font-size: 17px; }
.acc-invite p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cart-account-note { display: flex; align-items: center; gap: 10px; margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.cart-account-note .acc-dot { width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--blob); color: #fff; font-size: 11px; font-weight: 700; }
.cart-account-note a { color: var(--magenta-soft); font-weight: 600; }

/* ---------- écrans plus étroits ---------- */
@media (max-width: 1180px) {
  .ord-row { grid-template-columns: 96px minmax(0, 1fr) 130px auto 18px; grid-template-areas: "th main state total go" "th frise frise frise frise"; row-gap: 12px; }
  .ord-row .frise { max-width: 320px; }
  .od-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .acc-layout { grid-template-columns: 1fr; gap: 24px; }
  .acc-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .acc-tabs::-webkit-scrollbar { display: none; }
  .acc-tab { flex: 0 0 auto; padding: 8px 14px 8px 8px; }
  .acc-tab:hover { transform: rotate(-1.2deg); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { border-radius: var(--r) var(--r) 0 0; padding: 48px 40px 40px; min-height: 0; }
  .auth-panel { border-radius: 0 0 var(--r) var(--r); }
  .acc-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .acc-hero { flex-wrap: wrap; gap: 20px; padding: 36px 0 26px; }
  .acc-avatar { width: 72px; height: 72px; font-size: 30px; }
  .acc-hero-text .page-title { font-size: 30px; }
  .acc-hero-side { margin-left: 0; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .acc-block { padding: 22px 18px; gap: 18px; }
  .acc-stats { gap: 10px; }
  .acc-stat { padding: 18px 14px 16px; }
  .acc-stat b { font-size: 32px; }
  .acc-stat span:not(.acc-stat-blob) { font-size: 12px; }
  .acc-stat-blob { width: 84px; height: 76px; right: -22px; top: -26px; }
  .acc-empty { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .ord-row { grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: "th main total" "th state state" "frise frise frise"; gap: 10px 14px; padding: 14px; }
  .ord-row .frise { max-width: none; }
  .ord-thumbs img { width: 38px; height: 48px; }
  .ord-thumbs img + img { margin-left: -22px; }
  .ord-go { display: none; }
  .ord-state { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .frise-steps b, .frise-steps small { display: none; }
  .frise-caption { display: block; }
  .ord-word { display: none; }
  .frise { --dot: 18px; }
  .q-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic main total" "pill pill btn"; gap: 12px 14px; }
  .q-ic { grid-area: ic; width: 40px; height: 40px; }
  .q-main { grid-area: main; }
  .q-total { grid-area: total; }
  .q-row .acc-pill { grid-area: pill; justify-self: start; }
  .q-row .btn { grid-area: btn; }
  .msg-item summary { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 12px; padding: 14px; }
  .msg-item summary .acc-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .msg-chev { grid-column: 3; grid-row: 1; }
  .msg-ic { width: 36px; height: 36px; }
  .msg-body { padding: 0 14px 16px; }
  .medal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .medal-disc { width: 84px; height: 84px; }
  .medal-ic svg { width: 32px; height: 32px; }
  .medal-bar { width: 100px; }
  .pref { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; padding: 14px; }
  .pref-ic { width: 42px; height: 42px; }
  .pref > .seg { grid-column: 1 / -1; display: flex; }
  .pref > .seg .seg-opt { flex: 1 1 0; text-align: center; }
  .seg-opt span { padding: 9px 8px; font-size: 12.5px; }
  .addr { padding: 16px; }
  .addr-top { flex-wrap: wrap; }
  .addr-label { flex: 1 1 100%; }
  .addr-default { flex: 1 1 auto; padding: 6px 2px; }
  .auth-wrap { padding-top: 20px; }
  .auth-art { padding: 40px 22px 30px; }
  .auth-title { font-size: 38px; }
  .auth-perks { grid-template-columns: 1fr; gap: 14px; }
  .auth-panel { padding: 30px 20px 34px; gap: 22px; }
  .auth-form-head h2 { font-size: 24px; }
  .auth-switch { align-self: stretch; }
  .auth-switch a { flex: 1 1 0; text-align: center; padding: 10px 8px; }
  .badge-toast { left: 16px; right: 16px; bottom: 84px; max-width: none; }
  .data-block { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #medalGrid .medal.is-new .medal-paint { clip-path: none; }
  #medalGrid .medal.is-new .medal-ic, #medalGrid .medal.is-new .medal-drip { transform: none; }
  .auth-drip, .acc-tab-new, .frise-steps li.is-now .frise-drop { animation: none; }
}
body[data-anim="off"] #medalGrid .medal.is-new .medal-paint { clip-path: none; }
body[data-anim="off"] #medalGrid .medal.is-new .medal-ic, body[data-anim="off"] #medalGrid .medal.is-new .medal-drip { transform: none; }

/* note de confirmation d'email */
.acc-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: color-mix(in srgb, #e0a13a 15%, transparent); font-size: 14px; line-height: 1.5; }
.acc-note > svg { width: 18px; height: 18px; color: #f3c46c; flex: 0 0 auto; }
.acc-note > span { flex: 1 1 260px; }
.acc-note.ok { background: color-mix(in srgb, #26a89c 16%, transparent); }
.acc-note.ok > svg { color: #5eead4; }

/* ---------- v1.3 : photo de profil ---------- */
.acc-dot, .acc-avatar, .acc-photo-prev { position: relative; overflow: hidden; }
.acc-dot img, .acc-photo-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.acc-avatar.has-img { overflow: visible; }
.acc-avatar > img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 0 0 4px var(--c); }
.acc-avatar.has-img::after { z-index: 3; opacity: .35; }
.acc-avatar.has-img > span { opacity: 0; }
.acc-photo .acc-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.acc-photo-row { display: flex; align-items: center; gap: 20px; }
.acc-photo-prev { flex: none; width: 88px; height: 88px; display: grid; place-items: center; border-radius: var(--blob); background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 62%, #140a1c) 100%); color: #fff; font-family: var(--font-head); font-size: 34px; font-weight: 800; transform: rotate(-5deg); box-shadow: 0 18px 36px -18px var(--c); transition: border-radius .6s var(--back), transform .4s var(--back); }
.acc-photo-prev:hover { border-radius: var(--blob2); transform: rotate(4deg); }
.acc-photo-prev.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(20,10,28,.55); border-radius: inherit; animation: accPulse 1s ease-in-out infinite alternate; }
@keyframes accPulse { from { opacity: .4; } to { opacity: 1; } }
.acc-photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.acc-photo-side .acc-soft { margin: 0; font-size: 13px; }
.acc-photo-pick { cursor: pointer; }
.acc-photo-del { background: none; border: 0; padding: 0; color: var(--magenta-soft); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .acc-photo-row { align-items: flex-start; gap: 14px; } .acc-photo-prev { width: 72px; height: 72px; font-size: 28px; } }
