@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-display: block; src: url('/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #07130f;
  --surface: #11281f;
  --surface-2: #1a3a2e;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #12a06e;
  --accent-hover: #15b57d;
  --gold: #f2cf7a;
  --text: #f4faf7;
  --muted: #a3bdb2;
  --danger: #ff8a95;
  --ok: #6fe0b0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #0e3427 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.6;
}
a { color: var(--gold); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* En-tête */
header { padding: 22px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 44px;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(180deg, #fff4d8 0%, #f2cf7a 55%, #c9952e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 800; }
header nav a:hover { color: var(--text); }

/* Bloc principal */
.intro { padding-top: 12px; max-width: 760px; }
@media (min-width: 860px) { .intro { padding-top: 34px; } }
/* Sur téléphone, le formulaire vient juste après le titre (arrivée par le QR code de la TV) */
.hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 6px 0 40px; }
.hero #send { order: -1; }
@media (min-width: 860px) { .hero { grid-template-columns: 1fr 1fr; align-items: start; } .hero #send { order: 0; } }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-weight: 900; margin: 0 0 14px; }
h1 span { color: var(--gold); }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
label { display: block; font-weight: 800; margin: 16px 0 6px; }
input[type=text], input[type=url], input[type=password], input[type=email] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: #0b1f18;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus { border-color: var(--accent); }
#code { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 36px; letter-spacing: 8px; text-align: center; text-transform: uppercase; padding: 8px; }

.switch { display: flex; gap: 8px; margin-top: 18px; background: #0b1f18; border-radius: 14px; padding: 5px; }
.switch label { flex: 1; margin: 0; text-align: center; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch input:checked + span { color: #fff; }
.switch label:has(input:checked) { background: var(--surface-2); color: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hidden { display: none !important; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); font-size: 15px; margin-top: 18px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

button {
  width: 100%;
  margin-top: 20px;
  font: inherit;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  padding: 15px;
  cursor: pointer;
}
button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: wait; }
#status { min-height: 26px; margin: 14px 0 0; font-weight: 800; }
#status.ok { color: var(--ok); }
#status.error { color: var(--danger); }
.small { font-size: 14px; color: var(--muted); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b.n {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
}
.tv {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0b1d17;
  padding: 18px;
  text-align: center;
}
.tv .code { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 48px; letter-spacing: 10px; color: var(--gold); }

section { padding: 26px 0; border-top: 1px solid var(--line); }
h2 { font-size: 26px; font-weight: 900; margin: 0 0 14px; }
.notice { background: rgba(242, 207, 122, 0.08); border: 1px solid rgba(242, 207, 122, 0.3); border-radius: 18px; padding: 18px 20px; }
details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 30px 0 50px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); margin-right: 16px; }

/* Pages légales */
.doc { padding-bottom: 40px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--gold); color: var(--muted); background: rgba(242, 207, 122, 0.06); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--gold); }
.doc .scroll { overflow-x: auto; }

/* Espace « Mon compte » */
header nav a.on { color: var(--gold); }
.center { text-align: center; }
.status { min-height: 24px; margin: 12px 0 0; font-weight: 800; }
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }
.account { padding-bottom: 50px; }
.account h1 { margin: 0; font-size: 32px; }
.account h2 { margin: 0 0 6px; font-size: 20px; }
.auth-card { max-width: 460px; margin: 20px auto 16px; }
.tabs-line { display: flex; gap: 6px; background: #0b1f18; border-radius: 14px; padding: 5px; }
.tabs-line .tab-btn { margin: 0; padding: 10px; font-size: 16px; background: transparent; color: var(--muted); border-radius: 10px; }
.tabs-line .tab-btn.on { background: var(--surface-2); color: #fff; }
.lead-sm { color: var(--muted); margin: 16px 0 0; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 4px; }
.account-head p { margin: 0; }
button.ghost { background: transparent; border: 2px solid var(--line); color: var(--text); }
button.ghost:hover { border-color: var(--accent); background: transparent; }
button.sm { width: auto; margin: 0; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.account-head button.ghost { width: auto; margin: 0; padding: 9px 16px; font-size: 15px; }
button.danger { background: transparent; border: 2px solid var(--danger); color: var(--danger); width: auto; display: block; margin-top: 12px; padding: 9px 16px; font-size: 15px; }
button.danger:hover { background: rgba(255, 138, 149, 0.1); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#p-link { border-color: rgba(242, 207, 122, 0.35); }
.inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.inline input { flex: 1 1 180px; width: auto; }
.inline button { width: auto; margin: 0; padding: 12px 20px; font-size: 16px; }
#link-code { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: 5px; text-transform: uppercase; padding: 6px 12px; flex: 0 1 170px; }
.rows { list-style: none; margin: 12px 0 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li > div { min-width: 0; }
.rows li .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows li.empty { color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex: none; }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; }
.tag { font-size: 12px; font-weight: 800; color: var(--gold); border: 1px solid rgba(242, 207, 122, 0.4); border-radius: 999px; padding: 1px 8px; }
.sub-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.actions-row { display: flex; gap: 10px; }
.actions-row button { flex: 1; }
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #0b1f18; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; }
textarea:focus { border-color: var(--accent); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.color { margin: 0; cursor: pointer; }
.color input { position: absolute; opacity: 0; pointer-events: none; }
.color i { display: block; width: 34px; height: 34px; border-radius: 10px; border: 3px solid transparent; }
.color input:checked + i { border-color: #fff; }
.color input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.danger-zone { margin-top: 20px; }
@media (max-width: 560px) {
  .rows li { flex-direction: column; align-items: flex-start; }
  .rows li > div { width: 100%; }
  .row { grid-template-columns: 1fr; }
  .inline button { width: 100%; }
}

/* Navigation et pages */
header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 18px; }
header nav a { margin-left: 0; }
header nav a.cta { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 10px; }
header nav a.cta:hover, header nav a.cta.on { background: var(--accent-hover); color: #fff; }
@media (max-width: 560px) { header nav { gap: 4px 12px; font-size: 15px; } header nav a[href="/envoyer"] { display: none; } }
.page { padding-bottom: 40px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); margin: 10px 0 8px; }
.account-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.account-cta h2 { margin-bottom: 4px; }
.account-cta div { flex: 1 1 400px; }
a.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 900; padding: 13px 22px; border-radius: 14px; }
a.btn:hover { background: var(--accent-hover); }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 26px; }
.dev { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.dev.on { border-color: rgba(18, 160, 110, 0.6); }
.dev-name { display: block; font-size: 18px; margin-bottom: 6px; }
.tag.soon { color: var(--muted); border-color: var(--line); }
.feat { padding-left: 20px; color: var(--muted); }
.feat b { color: var(--text); }
.contact { text-align: center; margin: 10px 0 20px; }
.contact p { margin: 6px 0; }
.contact .mail { font-size: clamp(22px, 5vw, 30px); font-weight: 900; }

/* Page de connexion */
.auth { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 10px 0 30px; }
@media (min-width: 900px) { .auth { grid-template-columns: 1.05fr 1fr; gap: 60px; padding-top: 40px; } }
.auth-pitch h1 { margin-bottom: 12px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.perks .ico svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perks b { display: block; }
.perks span { color: var(--muted); font-size: 15px; }
.auth .auth-card { max-width: none; margin: 0; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); border-color: rgba(242, 207, 122, 0.18); }
.auth-card h2 { font-size: 22px; margin: 22px 0 0; }
.auth-card form label:first-of-type { margin-top: 18px; }
.auth-note { text-align: center; margin: 14px 0 0; }
@media (max-width: 899px) { .auth-pitch .perks { display: none; } .auth-pitch .lead { margin-bottom: 0; } }

/* Accueil vitrine */
.home section { border-top: 0; padding-top: 34px; padding-bottom: 34px; }
.home-hero { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; padding-top: 18px !important; }
@media (min-width: 960px) { .home-hero { grid-template-columns: 1fr 1.08fr; gap: 50px; padding-top: 44px !important; } }
.kicker { color: var(--accent-hover); font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin: 0 0 10px; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 26px; }
a.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--text); }
a.btn.ghost:hover { border-color: var(--accent); background: transparent; }
.code-box { max-width: 420px; }
.code-box label { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.code-row { display: flex; gap: 10px; }
.code-row input { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: 5px; text-transform: uppercase; padding: 6px 14px; }
.code-row input.bad { border-color: var(--danger); }
.code-row button { width: auto; margin: 0; padding: 12px 20px; font-size: 16px; }
.tv-frame { margin: 0; padding: 10px 10px 14px; background: #050c09; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 207, 122, 0.12); position: relative; }
.tv-frame::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: 30%; height: 10px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #0c1a15; }
.tv-frame img, .gallery img { display: block; width: 100%; height: auto; border-radius: 12px; }
.home h2 { margin-bottom: 22px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feature b { display: block; font-size: 18px; margin: 12px 0 4px; }
.feature span { color: var(--muted); font-size: 15px; }
.feature .ico, .perks .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--line); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.how3 { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how3 li { background: var(--surface); border-radius: 18px; padding: 20px; }
.how3 b { display: block; }
.how3 b.n { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--gold); display: grid; place-items: center;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.how3 span { color: var(--muted); font-size: 15px; }
.final-cta { text-align: center; padding-bottom: 50px !important; }
@media (max-width: 560px) { .home-ctas .btn { width: 100%; text-align: center; } }
.home-hero h1 { font-size: clamp(32px, 3.4vw, 44px); }

/* Tableau de bord du compte */
.account { padding-bottom: 60px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 10px; }
@media (min-width: 900px) { .dash { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; } .dash-side { position: sticky; top: 20px; } }
.dash-side { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; min-width: 0; }
.dash-user i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 20px; }
.dash-user div { min-width: 0; }
.dash-user b { display: block; }
.dash-user span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 800; }
.dash-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.dash-nav a.on { background: var(--surface-2); color: #fff; }
.dash-nav svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-nav a.on svg { stroke: var(--gold); }
.dash-nav em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 0 8px; }
.dash-nav em:empty { display: none; }
.dash-side #logout { width: 100%; margin-top: 12px; }
@media (max-width: 899px) {
  .dash-side { padding: 10px; }
  .dash-user, .dash-side #logout { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dash-nav a { flex: none; padding: 9px 12px; font-size: 15px; }
  .dash-nav em { display: none; }
}
.dash-main { min-width: 0; }
.dash-main > .status:empty { display: none; }
.tab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-head h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 4px; }
.tab-head p { margin: 0; }
button.btn-sm { width: auto; margin: 0; padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.cards { display: grid; gap: 10px; }
.item-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.item-main { flex: 1; min-width: 0; }
.item-main b { display: block; }
.item-main .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; font-size: 12px; font-weight: 900; color: var(--gold); background: rgba(242, 207, 122, 0.1); border-radius: 8px; padding: 6px 8px; min-width: 54px; text-align: center; }
.badge.tv { color: var(--ok); background: rgba(111, 224, 176, 0.1); }
@media (max-width: 560px) { .item-card { flex-wrap: wrap; } .item-card .row-actions { width: 100%; } .item-card .row-actions button { flex: 1; } }
.empty-state { text-align: center; padding: 36px 20px; background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.15); border-radius: 18px; }
.empty-state p { max-width: 460px; margin: 6px auto 16px; }
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.profile-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; color: var(--text); font-size: 16px; font-weight: 800; }
.profile-card:hover { background: var(--surface-2); border-color: var(--accent); }
.profile-card i { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-style: normal; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 42px; font-weight: 400; color: #fff; }
.profile-card.add i { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.25); color: var(--muted); }
.profile-card.add { color: var(--muted); }
.profile-card .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 20px; }
.profile-card .edit-hint { font-size: 13px; color: var(--muted); font-weight: 600; }
.link-panel { margin: 0 0 16px; }
.mini-steps { margin: 6px 0 4px; padding-left: 20px; color: var(--muted); }
.pin-state { display: flex; align-items: center; gap: 14px; }
.pin-state b { display: block; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 5px rgba(111, 224, 176, 0.15); }
ul.plain { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.danger-panel { border-color: rgba(255, 138, 149, 0.3); }
.danger-panel button.danger { margin-top: 8px; }

/* Fenêtres */
dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 24px; border: 1px solid rgba(242, 207, 122, 0.2);
  border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
dialog::backdrop { background: rgba(3, 10, 8, 0.75); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 4px; font-size: 24px; }
dialog .actions-row { margin-top: 18px; }
dialog .actions-row button { margin: 0; }
dialog .del-profile { width: 100%; margin-top: 14px; }
.pro-preview { display: flex; justify-content: center; margin: 10px 0 0; }
.pro-preview i { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-style: normal; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 50px; color: #fff; }
.toggle { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; cursor: pointer; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .knob { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #0b1f18; border: 2px solid var(--line); position: relative; transition: background 0.15s; }
.toggle .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.toggle input:checked + .knob { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .knob::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + .knob { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle input:disabled + .knob { opacity: 0.4; }
.toggle b { display: block; }
.toggle small { display: block; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; min-height: 52px; background: #0b1f18; border: 2px solid var(--line); border-radius: 12px; cursor: text; }
.chips:focus-within { border-color: var(--accent); }
.chips input { flex: 1 1 160px; border: 0 !important; background: transparent !important; padding: 6px !important; font-size: 16px !important; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 14px; }
.chip button { width: 22px; height: 22px; margin: 0; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 15px; line-height: 1; }
.chip button:hover { background: var(--danger); }

/* Envoi rapide */
.send-page section { border-top: 0; }
.send-head { max-width: 760px; padding: 26px 0 8px; }
.send-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.send-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 20px; }
@media (min-width: 900px) { .send-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; } }
.send-card { padding: 28px; border-color: rgba(242, 207, 122, 0.18); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.send-card > label:first-child { margin-top: 0; }
.send-help { display: grid; gap: 22px; }
.tv-mini { padding: 8px 8px 12px; background: #050c09; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); position: relative; margin-bottom: 10px; }
.tv-mini::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 26%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #0c1a15; }
.tv-screen { aspect-ratio: 16 / 7; border-radius: 12px; background: radial-gradient(ellipse at 30% 20%, #0e3427 0%, #07130f 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tv-screen span { font-size: 13px; color: var(--muted); }
.tv-screen b { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: clamp(38px, 5vw, 56px); letter-spacing: 8px; color: var(--gold); line-height: 1.1; }
.steps.compact { gap: 12px; }
.steps.compact li { font-size: 15px; color: var(--muted); }
.steps.compact li b:not(.n) { color: var(--text); }
.steps.compact b.n { width: 30px; height: 30px; font-size: 18px; }
.send-account { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; }
.send-account span { color: var(--muted); font-size: 15px; }
.send-account a { font-weight: 800; margin-top: 4px; }
@media (max-width: 899px) { .send-help .tv-mini { display: none; } }
