/* Deux apparences incluses pour le même moteur de forum. */

html[data-theme="theme-clear"] {
  --ink: #14213d;
  --muted: #59657a;
  --line: #cfc8bb;
  --panel: #fbf8f0;
  --soft: #f1ecdf;
  --brand: #1d66b1;
  --brand-dark: #142f5c;
  --surface-alt: #e9e2d4;
  --surface-strong: #dcd3c2;
  --field: #fffdf7;
  color-scheme: light;
  background-color: var(--soft);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(29, 102, 177, .08), transparent 24rem),
    repeating-linear-gradient(135deg, rgba(20, 33, 61, .022) 0 1px, transparent 1px 7px);
}

html[data-theme="theme-clear"] body { background: transparent; }
html[data-theme="theme-clear"] button,
html[data-theme="theme-clear"] .button {
  border-radius: .2rem;
  border-width: 1px 1px 3px;
  box-shadow: 0 4px 0 rgba(20, 33, 61, .22), 0 8px 18px rgba(20, 33, 61, .12);
  transform: translateY(-1px);
}
html[data-theme="theme-clear"] button:active,
html[data-theme="theme-clear"] .button:active {
  box-shadow: 0 1px 0 rgba(20, 33, 61, .25);
  transform: translateY(2px);
}
html[data-theme="theme-clear"] button.secondary,
html[data-theme="theme-clear"] .button.secondary { background: var(--field); }

html[data-theme="theme-dark"] {
  --ink: #faf8f3;
  --muted: #bbc3d0;
  --line: #4c5361;
  --panel: #303641;
  --soft: #252a32;
  --brand: #67a9ed;
  --brand-dark: #91c4f5;
  --danger: #ff8d86;
  --success: #78ddb0;
  --warning: #ffc27d;
  --surface-alt: #383f4b;
  --surface-strong: #424a58;
  --field: #292f38;
  color-scheme: dark;
  color: var(--ink);
  background-color: var(--soft);
  background-image:
    radial-gradient(circle at 82% 8%, rgba(103, 169, 237, .13), transparent 25rem),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 8px);
}

html[data-theme="theme-dark"] body { background: transparent; }
html[data-theme="theme-dark"] a { color: var(--brand-dark); }
html[data-theme="theme-dark"] button,
html[data-theme="theme-dark"] .button {
  border-color: #79b4ee;
  border-radius: 999px;
  background: #3979ba;
  color: #fff;
  box-shadow: none;
}
html[data-theme="theme-dark"] button.secondary,
html[data-theme="theme-dark"] .button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #788293;
}
html[data-theme="theme-dark"] .link-button { color: var(--brand-dark); background: transparent; }
html[data-theme="theme-dark"] .site-header,
html[data-theme="theme-dark"] .site-footer { background: rgba(37, 42, 50, .94); }
html[data-theme="theme-dark"] .forum-network-invitation{background:#1267e9}
html[data-theme="theme-dark"] .brand { color: var(--ink); }
html[data-theme="theme-dark"] .category > header { background: #1f4771; }
html[data-theme="theme-dark"] .post-author,
html[data-theme="theme-dark"] .badge-gallery > span,
html[data-theme="theme-dark"] .mini-badges span,
html[data-theme="theme-dark"] .member-directory .member-row,
html[data-theme="theme-dark"] table,
html[data-theme="theme-dark"] th,
html[data-theme="theme-dark"] .post-attachments,
html[data-theme="theme-dark"] .radio-metrics-large { background: var(--surface-alt); }
html[data-theme="theme-dark"] input,
html[data-theme="theme-dark"] select,
html[data-theme="theme-dark"] textarea {
  background: var(--field);
  color: var(--ink);
  border-color: #697385;
}
html[data-theme="theme-dark"] input::placeholder,
html[data-theme="theme-dark"] textarea::placeholder { color: #aeb7c5; }
html[data-theme="theme-dark"] .flash.info { background: #263d55; border-color: #5085b7; }
html[data-theme="theme-dark"] .flash.success { background: #203f34; border-color: #3c956f; }
html[data-theme="theme-dark"] .flash.error { background: #512e32; border-color: #b65b62; }
html[data-theme="theme-dark"] .flash.warning { background: #4d3c25; border-color: #b98742; }
html[data-theme="theme-dark"] .role,
html[data-theme="theme-dark"] .status-planned,
html[data-theme="theme-dark"] .entitlement-inactive { background: #454d5b; color: #f5f6f8; }
html[data-theme="theme-dark"] .role-owner,
html[data-theme="theme-dark"] .status-quote { background: #5a4725; color: #ffe2a8; }
html[data-theme="theme-dark"] .role-admin,
html[data-theme="theme-dark"] .status-request { background: #284a68; color: #cfe9ff; }
html[data-theme="theme-dark"] .role-moderator,
html[data-theme="theme-dark"] .status-included,
html[data-theme="theme-dark"] .entitlement-included,
html[data-theme="theme-dark"] .entitlement-active { background: #23503e; color: #c9f7df; }
html[data-theme="theme-dark"] .archived { background: #4f3626; color: #ffd7b1; }
html[data-theme="theme-dark"] .profile-avatar { border-color: var(--surface-strong); }

@media (prefers-reduced-motion: no-preference) {
  button, .button { transition: background-color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .1s ease; }
}
