/* Pages d'accès de Salestorm A.I. : mêmes couleurs que l'app (thème Bureau ; Nuit pro quand l'appareil est en
   sombre), une colonne centrée, champs et boutons à la même hauteur. */
:root {
  color-scheme: light;
  --bg: #f2f3f5; --surface: #ffffff; --surface-2: #eceef2; --line: #d9dce3; --text: #151922; --muted: #505a6b;
  --faint: #747d8f; --accent: #1f4bb8; --accent-fond: #e5ebf8; --sur-accent: #ffffff; --live: #16764b;
  --warn: #94590a; --danger: #b02236; --danger-fond: #fbe9ec; --info-fond: #e8f3ee;
  --body: Roboto, "Noto Sans", system-ui, sans-serif; --mono: "Roboto Mono", ui-monospace, monospace;
  --radius: 8px; --radius-sm: 6px; --ctl: 42px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #13151a; --surface: #1a1d24; --surface-2: #22262f; --line: #2e333e; --text: #e7e9ee; --muted: #a1a8b6;
    --faint: #7a8292; --accent: #7fa1ff; --accent-fond: #22304f; --sur-accent: #0f1320; --live: #5ec29a;
    --warn: #ddb064; --danger: #ee7b8b; --danger-fond: #3a1f26; --info-fond: #1b2e27;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; }
main { margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
  display: grid; gap: 18px; }
main.etroit { max-width: 460px; }
main.large { max-width: 1080px; }
.tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 0 6px; }
main.etroit .tete { justify-content: center; }
.logo { display: block; color: var(--accent); line-height: 0; }
.logo svg { height: 58px; width: auto; max-width: 100%; }
main.large .logo svg { height: 46px; }
.logo svg path { fill: currentColor; }
.logo svg path[stroke] { fill: none; stroke: currentColor; }
.logo svg path.sec { fill: var(--muted); }
.logo svg rect.sec-trait { fill: none; stroke: var(--muted); }
.liens { display: flex; gap: 6px; flex-wrap: wrap; }
.liens a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); }
.liens a:hover { background: var(--surface-2); color: var(--text); }
main.etroit .liens { width: 100%; justify-content: center; }
.carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; min-width: 0; }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: 22px; } h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
p { margin: 0; }
.intro, .aide, .bas { color: var(--muted); }
.aide { font-size: 13px; }
.bas { font-size: 14px; }
a { color: var(--accent); }
.formulaire { display: grid; gap: 14px; }
.formulaire.rangee { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.champ { display: grid; gap: 6px; }
.champ > span:first-child { font-size: 13.5px; font-weight: 500; }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 12px; min-height: var(--ctl); width: 100%; }
textarea { padding: 10px 12px; font: 13.5px/1.5 var(--mono); resize: vertical; background: var(--surface-2); }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { font: 500 14.5px/1 var(--body); min-height: var(--ctl); padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: background .14s, border-color .14s; }
.btn:hover { background: var(--surface-2); }
.btn.principal { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.btn.principal:hover { filter: brightness(1.06); background: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-fond); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.message { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--info-fond); }
.message.erreur { background: var(--danger-fond); color: var(--danger); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.infos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.infos dt { color: var(--muted); } .infos dd { margin: 0; min-width: 0; overflow-wrap: break-word; }
.copie { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copie code { font: 600 20px/1 var(--mono); letter-spacing: .04em; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--accent-fond); color: var(--text); }
.defile { overflow-x: auto; margin: 0 -24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
th, td { padding: 10px 24px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 24px; }
tbody tr:last-child td { border-bottom: 0; }
td.boutons { text-align: right; white-space: nowrap; }
td.boutons .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
td.vide { color: var(--muted); }
.en-ligne { display: inline; margin: 0 0 0 6px; }
.compte { font: 500 12.5px/1 var(--body); color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 4px 9px; }
.pastille { font: 600 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; margin-left: 6px; }
.pastille.en-ligne-p { color: var(--live); border-color: currentColor; }
.etat.actif { color: var(--live); } .etat.suspendu { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
  .defile { margin: 0; overflow: visible; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  tbody tr:last-child { border-bottom: 0; }
  td, th:first-child, td:first-child { padding: 3px 0; border: 0; }
  td[data-titre]::before { content: attr(data-titre) " : "; color: var(--muted); }
  td.boutons { text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .en-ligne { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
