[hidden] { display: none !important; }
:root {
  --bg: #0E1014; --side: #13161C; --card: #161920; --card2: #1C2029; --line: #2A2F3A; --line2: #3A4150;
  --text: #ECEEF2; --muted: #A1A9B8; --soft: #C9CED8;
  --accent: #F5A524; --accent-ink: #1A1204; --blue: #7DB2FF; --danger: #FF8A80; --danger-bg: #3A1D1D;
  --on-bg: #2A2312; --on-fg: #F7C873; --active: #232834;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[v-cloak] { display: none; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 28px; } h2 { font-size: 18px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.btn { height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 500 14px inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #566074; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { background: var(--danger-bg); border-color: #6B2E2E; color: var(--danger); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }

input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
textarea { height: 80px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Connexion */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 380px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 20px; }
.error { color: var(--danger); margin: 0; }

/* Mise en page */
.layout { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 230px; max-width: 100%; background: var(--side); border-right: 1px solid var(--line); padding: 24px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 10px 18px; }
.sidebar a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.sidebar a.nav:hover { color: var(--text); }
.sidebar a.nav.active { background: var(--active); color: var(--text); font-weight: 600; }
.nav-title { margin: 18px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.user-box { margin-top: auto; padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 60px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 700px) { .main { padding: 20px 16px 40px; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); position: static; height: auto; overflow: visible; } }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; gap: 6px; }
.kpi .v { font-family: "Space Grotesk", Inter, sans-serif; font-size: 32px; font-weight: 600; }
.kpi .v small { font-size: 16px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #6B7280; flex: none; }
.dot.on { background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #1F232B; color: var(--muted); }
.pill.on { background: var(--on-bg); color: var(--on-fg); }

.table-box { overflow-x: auto; margin: 0 -22px -22px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 22px; } th:last-child, td:last-child { padding-right: 22px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--blue); border-radius: 3px; }
.bar.big { height: 8px; } .bar.big > div { background: var(--accent); }
.empty { text-align: center; padding: 30px; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }

.now { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.now .title { font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; font-weight: 600; word-break: break-word; }
.stat .v { font-family: "Space Grotesk", Inter, sans-serif; font-size: 26px; font-weight: 600; }
audio { width: 300px; max-width: 100%; }
dl.info { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 12px; margin: 0; }
dl.info dt { color: var(--muted); } dl.info dd { margin: 0; word-break: break-all; }
code.block { display: block; padding: 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--soft); font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }

.list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #22262F; }
.drop { padding: 20px; border: 1px dashed var(--line2); border-radius: 10px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--text); background: var(--on-bg); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--on-bg); color: var(--on-fg); }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; z-index: 20; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 30; max-width: calc(100vw - 40px); }
.toast { padding: 12px 16px; border-radius: 10px; background: #232834; border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.err { background: var(--danger-bg); color: var(--danger); border-color: #6B2E2E; }
.center { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* Onglets, playlists, musique */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #232834; color: var(--soft); }
.badge.off { background: var(--danger-bg); color: var(--danger); }
.badge.sched { background: #16304D; color: #9CC7FF; }
.badge.warn { background: #4A3A12; color: #F5C451; }
/* Tickets */
.ticket-row { cursor: pointer; }
.ticket-row:hover td { background: var(--card2); }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-msg { padding: 12px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.ticket-msg.staff { background: var(--on-bg); border-color: var(--accent); }
.ticket-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket-msg-body { white-space: pre-wrap; line-height: 1.5; }
/* Aide */
.help-body { margin-top: 10px; line-height: 1.6; color: var(--soft); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--accent); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
/* Pied de page */
.app-footer { margin-top: auto; padding: 22px 8px 6px; text-align: center; color: var(--muted); font-size: 12px; }
/* Grille de permissions (collaborateurs) */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
/* Bannière d'annonce (message aux clients) */
.announce-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; line-height: 1.45; }
.announce-banner.info { background: #16304D; border-color: #2A5A8C; color: #CFE4FF; }
.announce-banner.maintenance { background: #4A3A12; border-color: #7A5E1E; color: #F5D98A; }
.announce-ico { font-size: 20px; flex: 0 0 auto; }
.announce-msg { flex: 1; white-space: pre-wrap; }
.announce-x { flex: 0 0 auto; background: transparent; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.announce-x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.chip { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 999px; font-size: 12px; background: #232834; color: var(--soft); }
.bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; }
.type-opt { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; font-size: 14px; }
.type-opt.on { border-color: var(--accent); background: var(--on-bg); }
.type-opt input, .day input, .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.days { flex-direction: row; flex-wrap: wrap; }
.days legend { width: 100%; }
.day { flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
.day.on { border-color: var(--accent); background: var(--on-bg); }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }

/* Sous-menu Médias */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13px; }
.subnav a:hover { color: var(--text); }
.subnav a.active { background: #232834; color: var(--text); border-color: var(--line2); }
.subnav .count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--soft); font-size: 12px; text-align: center; }
.cb { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.dup-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dup-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--card2); }
.dup-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.dup-row .chip { margin-left: 6px; }

/* Page publique, pochettes */
.cover-lg { width: 120px; height: 120px; border-radius: 12px; background: #232834; overflow: hidden; flex: none; }
.cover-lg img, .cover-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-sm { width: 40px; height: 40px; border-radius: 6px; background: #232834; overflow: hidden; flex: none; }
.asset-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.asset-row:first-of-type { border-top: 0; padding-top: 0; }
.asset-thumb { width: 160px; height: 90px; border-radius: 8px; background: #232834; display: grid; place-items: center; overflow: hidden; flex: none; }
.asset-thumb.cover { width: 90px; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.day-col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 120px; }
.slot { padding: 8px 10px; border-radius: 8px; background: #16304D; color: #D6E7FF; font-size: 13px; }
label.btn { flex-direction: row; color: var(--text); font-size: 13px; }

/* Formulaires des réglages */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 24px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label > .small { color: var(--muted); }
.form-grid legend { color: var(--text); font-size: 13px; margin-bottom: 8px; }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; font-size: 17px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.check { align-items: flex-start; }

/* Statistiques */
.tabs { overflow-y: hidden; }
.kpis .kpi .v { font-size: 28px; }
.chart { display: flex; gap: 8px; height: 220px; }
.chart svg { flex: 1; width: 100%; height: 100%; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; min-width: 28px; padding-bottom: 4px; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding-left: 36px; }
.chart .area { fill: rgba(245, 165, 36, .18); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stat-row { display: flex; flex-direction: column; gap: 4px; }
.kpis.k6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Podcasts */
.pod-card { text-decoration: none; color: var(--text); flex-direction: row; align-items: center; gap: 14px; }
.pod-card:hover { border-color: var(--line2); }
.pod-thumb { width: 64px; height: 64px; border-radius: 10px; background: #232834; overflow: hidden; flex: none; }
.pod-thumb.lg { width: 140px; height: 140px; }
.pod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
table.compact td { padding-top: 7px; padding-bottom: 7px; } table.compact .btn.sm { height: 28px; }

/* Liste d'envoi, un fichier par ligne */
.upq { display: flex; flex-direction: column; gap: 10px; }
.upq-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.upq-list li { display: flex; flex-direction: column; gap: 4px; }
.upq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.upq-list .bar { height: 10px; }
.upq-attente .upq-name { color: var(--muted); }
.upq-envoi .bar > div { background: #5B6EE1; }
.upq-ok .upq-name, .upq-ok .upq-state { color: #4CC38A; }
.upq-ok .bar > div { background: #2E9E6A; }
.upq-refuse .upq-name, .upq-refuse .upq-state { color: var(--danger); }
.upq-refuse .bar > div { background: #8B2E2E; }
.upload-pill { display: flex; flex-direction: column; margin: 12px 4px 0; padding: 10px 12px; border-radius: 10px; background: var(--on-bg); color: var(--on-fg); text-decoration: none; font-size: 12px; font-weight: 500; }
.upload-pill:hover { color: var(--text); }

/* Apparence du panneau : logo et arrière-plan */
.brand-logo { max-height: 44px; max-width: 200px; object-fit: contain; display: block; }
.login .brand-logo { max-height: 64px; max-width: 280px; }
.app-bg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
body.with-bg .layout, body.with-bg .login-wrap { position: relative; z-index: 1; background: transparent; }
body.with-bg .sidebar { background: rgba(19, 22, 28, .82); backdrop-filter: blur(6px); }
body.with-bg .card { background: rgba(22, 25, 32, .92); }
.brand-preview { min-height: 90px; border: 1px dashed var(--line2); border-radius: 10px; display: grid; place-items: center; padding: 12px; background: var(--bg); }
.brand-preview img { max-height: 80px; max-width: 100%; object-fit: contain; }
.brand-preview.bg { min-height: 150px; background-size: cover; background-position: center; }

/* Lecteur de l'Aperçu */
.mini-player { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding: 10px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); max-width: 560px; }
.mp-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.mp-play:hover { filter: brightness(1.08); }
.mp-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mp-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.mp-eq span { width: 3px; height: 20px; border-radius: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(.2); opacity: .5; }
.mini-player.playing .mp-eq span { animation: mpeq 1s ease-in-out infinite; opacity: 1; }
.mp-eq span:nth-child(2) { animation-delay: -.45s; } .mp-eq span:nth-child(3) { animation-delay: -.75s; } .mp-eq span:nth-child(4) { animation-delay: -.2s; } .mp-eq span:nth-child(5) { animation-delay: -.6s; }
@keyframes mpeq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mini-player.playing .mp-eq span { animation: none; transform: scaleY(.7); } }
.mp-status { flex: 1 1 140px; min-width: 0; }
.mp-vol { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); flex: none; }
.mp-vol input { width: 110px; height: auto; padding: 0; border: 0; background: none; accent-color: var(--accent); }

/* Widgets */
.widget-card { gap: 14px; }
.widget-preview { border-radius: 12px; border: 1px dashed var(--line2); padding: 10px; background: var(--bg); }
.widget-preview.clair { background: #EEF0F3; }
.widget-preview.transparent { background: repeating-conic-gradient(#20242c 0 25%, #191c23 0 50%) 0 0 / 16px 16px; }
.widget-preview iframe { display: block; width: 100%; border: 0; border-radius: 10px; }

/* Modifications en attente (comme AzuraCast) */
.pending-banner { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #3A2A08; border: 1px solid #6B4E12; color: #F7C873; text-decoration: none; }
.pending-banner span { color: #E8C98A; font-size: 13px; }
.pending-banner:hover { border-color: var(--accent); }
.pending-mark { margin-left: auto; color: var(--accent); font-weight: 700; }
.apply-card { gap: 12px; }

/* Présence des clients */
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5A6070; margin-right: 6px; vertical-align: 1px; }
.online-dot.on { background: #4CC38A; box-shadow: 0 0 0 3px rgba(76, 195, 138, .18); }
.presence { white-space: nowrap; }

/* Musique : vue par dossiers */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.crumbs .link { font-weight: 600; }
.folder-row td { background: rgba(245, 165, 36, .04); }
.folder-name { font-weight: 700; color: var(--text); text-decoration: none; font-size: 14px; padding: 0; }
.folder-name:hover { color: var(--accent); }

/* Lecteur de l'Aperçu : sourdine */
.mute-btn { background: none; border: 0; padding: 4px; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.mute-btn:hover { color: var(--text); }
.mute-btn:focus-visible { outline: 2px solid var(--accent); }
.vol-pct { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.vol-pct.off { opacity: .45; text-decoration: line-through; }

/* Alertes */
.toggle { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #3A4050; position: relative; cursor: pointer; transition: background .15s; margin: 0; padding: 0; border: 0; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset.opts { border: 1px solid var(--line, #2A2F3B); border-radius: 10px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
fieldset.opts legend { padding: 0 6px; font-size: 13px; color: var(--muted); }

/* Double authentification */
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 200px; height: 200px; box-sizing: content-box; }
.qr svg { display: block; width: 200px; height: 200px; }
.recovery { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; margin: 10px 0; color: var(--text); }

/* Essai gratuit */
.trial-banner { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #13283A; border: 1px solid #24506E; color: #BFE0FF; }
.trial-banner span { font-size: 13px; color: #A9CDEB; }

/* Guide de démarrage */
.guide { border-color: #4A3A12; background: linear-gradient(180deg, #1E1A10, var(--card)); }
.guide-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.guide-bar div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.guide-steps li:last-child { border-bottom: 0; }
.guide-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--card2); border: 1px solid var(--line2); flex: none; }
.guide-steps li.done .guide-num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.guide-steps li.done strong { color: var(--muted); text-decoration: line-through; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== Thèmes du panneau (au choix de chaque client) ===================== */
/* Minuit — bleu nuit profond */
:root[data-theme="minuit"] {
  --bg: #0A0F1E; --side: #0D1326; --card: #121A30; --card2: #19233E; --line: #26324F; --line2: #36456A;
  --text: #EAF0FF; --muted: #9FB0CE; --soft: #C6D2EA;
  --accent: #5B9CFF; --accent-ink: #061024; --blue: #8FC0FF; --danger: #FF9A94; --danger-bg: #3A1D2A;
  --on-bg: #10233F; --on-fg: #9EC6FF; --active: #1C2A48;
}
/* Ardoise — gris neutre */
:root[data-theme="ardoise"] {
  --bg: #15171A; --side: #1A1D21; --card: #1F2327; --card2: #262B30; --line: #343A40; --line2: #454C54;
  --text: #ECEEF0; --muted: #A7AEB6; --soft: #CBD1D8;
  --accent: #8AB4F8; --accent-ink: #0A1526; --blue: #8AB4F8; --danger: #F28B82; --danger-bg: #3A2320;
  --on-bg: #22303F; --on-fg: #9CC0F0; --active: #2B3137;
}
/* Océan — turquoise sombre */
:root[data-theme="ocean"] {
  --bg: #07151A; --side: #0A1D24; --card: #0E2630; --card2: #143442; --line: #1E4553; --line2: #2C5E70;
  --text: #E6F6FA; --muted: #93B6C0; --soft: #BEE0E8;
  --accent: #27D4B5; --accent-ink: #042019; --blue: #5FD0E6; --danger: #FF9A8F; --danger-bg: #3A2320;
  --on-bg: #0C3A33; --on-fg: #7FE8D3; --active: #16404F;
}
/* Mauve — violet doux */
:root[data-theme="mauve"] {
  --bg: #120E1C; --side: #171124; --card: #1D1630; --card2: #261D40; --line: #352A55; --line2: #48396F;
  --text: #F0EAFF; --muted: #B3A6D0; --soft: #D4C9EC;
  --accent: #C084FC; --accent-ink: #1C0A33; --blue: #B49BFF; --danger: #FF93B0; --danger-bg: #351A2A;
  --on-bg: #2A1840; --on-fg: #D3AEFF; --active: #2C2150;
}
/* Clair — fond blanc */
:root[data-theme="clair"] {
  --bg: #F4F6FA; --side: #FFFFFF; --card: #FFFFFF; --card2: #EFF3F9; --line: #DCE3EC; --line2: #C6D0DD;
  --text: #1B2230; --muted: #5C6676; --soft: #39434F;
  --accent: #E08600; --accent-ink: #FFFFFF; --blue: #2563EB; --danger: #C62828; --danger-bg: #FBE4E4;
  --on-bg: #FFF3DA; --on-fg: #8A5A00; --active: #E7EDF6;
}
:root[data-theme="clair"] input, :root[data-theme="clair"] select, :root[data-theme="clair"] textarea { background: #FFFFFF; }
:root[data-theme="clair"] .qr { border: 1px solid var(--line); }

/* Sélecteur de thème (Mon compte) */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.theme-swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card2); cursor: pointer; color: var(--text); font: inherit; }
.theme-swatch:hover { border-color: var(--line2); }
.theme-swatch.on { border-color: var(--accent); }
.theme-chip { width: 100%; height: 44px; border-radius: 8px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.08); }
.theme-chip span { width: 20px; height: 20px; border-radius: 50%; }
.theme-name { font-size: 13px; font-weight: 600; }
