/* Refonte du site (28/10/2026) : chargée APRÈS style.css. Même DA (couleurs en variables, IBM Plex, logo [·]),
   avec animations légères (transform / opacity uniquement), coupées si l'appareil demande moins d'animations.
   Lisible et utilisable de 360 px à 1920 px : pas de défilement horizontal, textes ≥ 12 px, cibles tactiles ≥ 40 px sur téléphone. */

:root { --radius: 14px; --ease: cubic-bezier(.2, .7, .2, 1); --shadow: 0 18px 50px rgba(0, 0, 0, .35); }
/* Texte « atténué » : assez contrasté pour du petit texte (≥ 4,5:1 sur le fond et les panneaux, dans chaque thème) */
:root:not([data-theme="clair"]):not([data-event]) { --dim: #8b8a84; }
:root[data-event="halloween"] { --dim: #958a91; }
:root[data-event="noel"] { --dim: #8c978f; }
:root[data-theme="clair"] { --shadow: 0 18px 50px rgba(30, 30, 20, .12); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-size: 15px; line-height: 1.5; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, canvas, svg { max-width: 100%; }

/* Changement de page : le contenu arrive en douceur */
.shell.enter > main { animation: page-in .45s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Apparition au défilement (fx.js ajoute .in) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Boutons ---------- */
.btn { transition: transform .15s var(--ease), filter .15s, box-shadow .2s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.glow { box-shadow: 0 0 0 0 transparent, 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.glow:hover { box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- En-tête ---------- */
header.top { transition: background .2s; }
.top-in { flex-wrap: nowrap; gap: 20px; }
.logo { background: transparent; border: 0; color: var(--text); padding: 6px 4px; font-family: inherit; flex: none; }
.logo:hover .mark b { transform: scale(1.4); }
.mark b { transition: transform .25s var(--ease); }
.nav { align-items: center; min-width: 0; }
.nav button { transition: color .15s, background .15s; white-space: nowrap; }
.nav button:hover { color: var(--text); }
.nav-cta { display: none; }
.status b { font-weight: 400; }
.status i { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.top-right { flex-wrap: nowrap; margin-left: auto; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--edge2); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.user img { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .user-name { display: none; }
}
/* Tablette et téléphone : menu dans un tiroir */
@media (max-width: 960px) {
  .top-in { padding: 10px 16px; gap: 12px; }
  .menu-btn { display: inline-flex; }
  .top-cta { display: none; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; z-index: 19; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px;
    background: var(--panel); border-bottom: 1px solid var(--line3); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility 0s .25s;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .2s; }
  .nav button { min-height: 48px; text-align: left; font-size: 16px; padding: 0 14px; border-radius: 10px; }
  .nav-cta { display: inline-flex; margin-top: 8px; min-height: 48px; }
  .nav { flex-wrap: nowrap; }
}
@media (max-width: 520px) {
  .status { display: none; }
  .logo { font-size: 18px; }
}

/* ---------- Pied de page ---------- */
.site-foot a { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Accueil ---------- */
main.home { max-width: none; padding: 0 0 96px; gap: 0; }
.hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line3); }
.hero2::before { content: ''; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; background: radial-gradient(60% 60% at 75% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(40% 50% at 10% 80%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero2-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero2-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.pill-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge2); background: color-mix(in srgb, var(--panel) 80%, transparent); font: 12px var(--mono); color: var(--soft); backdrop-filter: blur(6px); }
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 2.4s infinite; }
.hero2-title { margin: 0; font-size: clamp(44px, 7.5vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.grad { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--text)) 60%, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero2-sub { margin: 0; color: var(--soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 560px; text-wrap: pretty; }
.counters { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 12px; }
.counters div { display: flex; flex-direction: column; } .counters b { font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .counters span { font: 12px var(--mono); color: var(--muted); }

/* Démo de conversation */
.demo { width: 100%; max-width: 480px; justify-self: end; border: 1px solid var(--edge2); border-radius: 16px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.demo-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line3); }
.demo-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--edge-hi); } .demo-top i:first-child { background: #ff7b72; } .demo-top i:nth-child(2) { background: #f0c674; } .demo-top i:nth-child(3) { background: var(--accent); }
.demo-top span { margin-left: 8px; font: 13px var(--mono); color: var(--muted); }
.demo-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.demo-msg { display: flex; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.demo-msg.in { opacity: 1; transform: none; }
.demo-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--chip); color: var(--text); }
.demo-av.bot { background: var(--accent); color: var(--on-accent); }
.demo-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.demo-n { display: flex; gap: 6px; align-items: center; } .demo-n b { font-size: 14px; } .demo-n em { font: 600 12px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-style: normal; }
.demo-b p { margin: 0; font-size: 14px; }
.demo-card, .demo-rank, .demo-alert { border-left: 3px solid var(--accent); background: var(--panel2); border-radius: 6px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.demo-card > div:last-child, .demo-rank, .demo-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.demo-card small, .demo-rank small, .demo-alert small { color: var(--muted); font-size: 12px; }
.demo-art { width: 46px; height: 60px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 22px; color: #1a1a17; background: linear-gradient(160deg, #ffe08a, #f39c12); box-shadow: 0 0 18px rgba(243, 156, 18, .45); }
.demo-btn { margin-top: 2px; font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--chip); }
.demo-bar { width: 100%; min-width: 160px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .demo-bar i { display: block; height: 100%; width: 80%; background: var(--accent); border-radius: 4px; transform-origin: left; }
.demo-msg.in .demo-bar i { animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.demo-alert { border-left-color: var(--danger); }

/* Modules qui défilent */
.marquee { padding: 26px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; border-bottom: 1px solid var(--line3); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--soft); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Blocs de l'accueil */
.block { max-width: 1200px; margin: 0 auto; padding: 88px 24px 0; width: 100%; display: flex; flex-direction: column; gap: 32px; }
.block-h { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 640px; }
.block-h h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.block-h p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card { grid-column: span 1; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.bento-card.wide { grid-column: span 2; }
.bento-card.wide:last-child { grid-column: 1 / -1; }
.bento-card::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bento-card:hover { border-color: var(--edge-hi); transform: translateY(-3px); }
.bento-card:hover::after { opacity: 1; }
.bento-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: var(--accent-bg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.bento-card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.bento-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.block.split { flex-direction: row; align-items: center; gap: 56px; }
.block.split > * { flex: 1; min-width: 0; }
.block.split.rev { flex-direction: row-reverse; }
.cards3 { display: flex; justify-content: center; align-items: center; min-height: 300px; perspective: 900px; }
.tcard { width: 168px; flex: none; aspect-ratio: 3 / 4.2; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; border: 2px solid; box-shadow: var(--shadow); transition: transform .35s var(--ease); background: var(--panel2); }
.tcard + .tcard { margin-left: -46px; }
.tcard:nth-child(1) { transform: rotate(-9deg) translateY(10px); z-index: 1; }
.tcard:nth-child(2) { transform: translateY(-14px); z-index: 2; }
.tcard:nth-child(3) { transform: rotate(9deg) translateY(10px); z-index: 1; }
.cards3:hover .tcard:nth-child(1) { transform: rotate(-14deg) translate(-26px, 14px); }
.cards3:hover .tcard:nth-child(3) { transform: rotate(14deg) translate(26px, 14px); }
.cards3:hover .tcard:nth-child(2) { transform: translateY(-24px) scale(1.04); }
.tcard-art { flex: 1; border-radius: 9px; display: grid; place-items: center; font-size: 48px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.tcard b { font-size: 15px; } .tcard small { font: 12px var(--mono); color: var(--muted); }
.tcard.leg { border-color: #f39c12; } .tcard.leg .tcard-art { background: linear-gradient(160deg, #ffcf6b, #e67e22 70%); }
.tcard.epi { border-color: #a066ff; } .tcard.epi .tcard-art { background: linear-gradient(160deg, #c39bff, #6f3dd6 70%); }
.tcard.rare { border-color: #3fa9f5; } .tcard.rare .tcard-art { background: linear-gradient(160deg, #8fd3ff, #1f6fc4 70%); }

.dash-mock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel2); opacity: 0; transform: translateX(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d); }
.dash-mock.in .mock-row { opacity: 1; transform: none; }
.mock-row span { font-size: 18px; } .mock-row b { flex: 1; font-weight: 500; }
.mock-switch { width: 38px; height: 22px; border-radius: 11px; background: var(--edge2); position: relative; }
.mock-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-accent); transition: left .3s var(--ease) .6s; }
.mock-switch.on { background: var(--accent); } .dash-mock.in .mock-switch.on::after { left: 19px; }

.steps2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps2 li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps2 em { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 16px var(--mono); font-style: normal; }
.steps2 b { font-size: 17px; } .steps2 p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 22px var(--mono); color: var(--accent); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }
.faq { gap: 12px; }

.cta2 { max-width: 1152px; margin: 96px auto 0; width: calc(100% - 48px); border-radius: 22px; padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel) 70%); }
.cta2 h2 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; letter-spacing: -.04em; }
.cta2 p { margin: 0; color: var(--soft); font-size: 16px; }
.cta2 .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .hero2-in { grid-template-columns: 1fr; padding: 56px 20px 48px; gap: 40px; }
  .demo { justify-self: stretch; max-width: none; animation: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card.wide { grid-column: span 2; }
  .block.split, .block.split.rev { flex-direction: column; align-items: stretch; gap: 32px; }
  .steps2 { grid-template-columns: 1fr; }
  .block { padding: 64px 20px 0; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .counters { gap: 24px; }
  .tcard { width: 128px; }
  .tcard + .tcard { margin-left: -38px; }
  .cards3 { min-height: 240px; }
  .cta2 { width: calc(100% - 32px); padding: 40px 20px; margin-top: 64px; }
  .demo-body { min-height: 330px; }
}

/* ---------- Pages Commandes, Docs, Pourquoi ---------- */
.row { transition: background .15s; } .row:hover { background: var(--panel2); }
.why-group, .table, .box, .card, .step { transition: border-color .2s; }
.card:hover { border-color: var(--edge-hi); }
@media (max-width: 760px) {
  main.cmds, main.why { padding: 32px 16px 72px; }
  .row .n { word-break: break-word; }
}

/* ---------- Tableau de bord : barre latérale repliable ---------- */
.side-top { display: flex; gap: 6px; align-items: center; }
.side-top select.guild { flex: 1; min-width: 0; margin: 0 0 0 4px; width: auto; }
.side-toggle { flex: none; width: 40px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--soft); cursor: pointer; font-size: 16px; }
.side-toggle:hover { color: var(--text); border-color: var(--edge-hi); }
.side-open-btn { display: none; }
aside.side { transition: width .25s var(--ease), padding .25s var(--ease); }
@media (min-width: 961px) {
  aside.side { position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 64px); overflow-y: auto; }
  body.side-collapsed aside.side { width: 64px; padding: 20px 10px; overflow: hidden; }
  body.side-collapsed aside.side > :not(.side-top), body.side-collapsed .side-top select { display: none; }
  body.side-collapsed .side-toggle span { display: inline-block; transform: rotate(180deg); }
}
.nitem { transition: background .15s, color .15s; }
.nitem.on { box-shadow: inset 2px 0 0 var(--accent); }
.content > * { min-width: 0; }
.switch { transition: background .2s var(--ease); } .switch::after { transition: left .2s var(--ease); }

/* Tablette et téléphone : le menu du serveur se déplie avec un bouton */
@media (max-width: 960px) {
  main.dash { flex-direction: column; flex-wrap: nowrap; }
  aside.side { width: 100%; border-right: 0; border-bottom: 1px solid var(--line3); padding: 12px 16px; gap: 10px; position: static; max-height: none; }
  .side-toggle { display: none; }
  .side-top select.guild { margin: 0; }
  .side-open-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
  .side-open-btn small { font: 12px var(--mono); color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  aside.side .nsec, aside.side .searchbtn, aside.side .checkup { display: none; }
  body.side-open aside.side .nsec, body.side-open aside.side .searchbtn { display: flex; }
  body.side-open .side-open-btn { border-color: var(--accent); }
  .nsec { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nsec .label { width: 100%; padding: 6px 2px 2px; }
  .nitem { min-height: 42px; padding: 0 12px; background: var(--panel2); border: 1px solid var(--line); }
  .nitem.on { box-shadow: none; border-color: var(--accent); }
  .nitem i { display: none; } .nitem span { flex: none; }
  .content { padding: 24px 16px 120px; width: 100%; }
}

/* ---------- Lisibilité : aucun texte sous 12 px ---------- */
.label, .pill, kbd, small, .perm, .msg-n em, .why-yes, .why-no, .search em, .nitem small, .mchip small, .state, .chips small, .field label small.count, .ef .unit, .pv-level small, .pv-stats small, .tpl-catname, .ov-level, .pv-card-b > small, .demo-n em, .preview-h span, .dc-head em, .dc-thumb span, .yaxis span, .tpl-head em, .xaxis span { font-size: 12px !important; }

/* ---------- Téléphone : cibles tactiles confortables ---------- */
@media (max-width: 767px) {
  .btn, button.btn, a.btn { min-height: 44px; }
  .link, .back, .plain, .chip, .pick, .sfilter, .mchip, .seg button, .dom button, .icon-btn, .ov-more, .adder button { min-height: 40px; display: inline-flex; align-items: center; }
  /* Liens dans le texte : zone de clic agrandie sans changer la mise en page */
  .content a:not(.btn), .md a, .center a:not(.btn), main.why a:not(.btn), main.cmds a:not(.btn) { padding: 12px 0; margin: -12px 0; }
  .eco-tabs button, .tabs button, .content .row-actions button, .addbar .chip, .games button { min-height: 40px; }
  /* Case à cocher : toute la ligne est cliquable (label), la case elle-même grandit */
  .check { min-height: 44px; align-items: center; } .check input { width: 22px; height: 22px; margin: 0; flex: none; }  .names input, .nm input, .xrole input { min-height: 44px; }
  .switch { width: 52px; height: 32px; border-radius: 16px; } .switch::after { top: 3px; left: 3px; width: 26px; height: 26px; } .switch.on::after { left: 23px; }
  .theme-pick > summary { width: 44px; height: 44px; }
  .swatch { height: 42px; }
  .site-foot a { min-height: 40px; }
  .field select, .field input, .field textarea, .ef .ctl, .ef input, .inline input, .search input, select { min-height: 44px; font-size: 16px; }
  .ef .ctl { max-width: 100%; min-width: 0; width: 100%; }
  .bar { left: 12px; right: 12px; transform: none; bottom: 12px; flex-wrap: wrap; justify-content: space-between; }
  .toast { left: 12px; right: 12px; transform: none; max-width: none; }
}

/* ---------- Moins d'animations demandé : tout est immobile ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], .demo-msg, .mock-row { opacity: 1 !important; transform: none !important; }
}

/* ---------- Polices des images (fournies avec le bot, licence SIL OFL) : pour montrer chaque police dans le choix ---------- */
@font-face { font-family: 'BotPoppins'; src: url('/fonts/Poppins-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BotBebas'; src: url('/fonts/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BotRighteous'; src: url('/fonts/Righteous-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BotLobster'; src: url('/fonts/Lobster-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BotPacifico'; src: url('/fonts/Pacifico-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BotPixel'; src: url('/fonts/PressStart2P-Regular.ttf') format('truetype'); font-display: swap; }

/* ---------- Page Images ---------- */
.st-jump { gap: 6px; }
.st-jump .mchip { text-decoration: none; }
.st-image { overflow: hidden; scroll-margin-top: 80px; }
.st-bg { display: flex; gap: 18px; padding: 16px 20px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line3); }
.st-bg-thumb { width: 180px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px dashed var(--edge); display: grid; place-items: center; background: var(--panel2); text-align: center; padding: 6px; }
.st-bg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-bg-thumb span { font-size: 12px; color: var(--muted); }
.st-bg-b { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.st-bg-b p { margin: 0; color: var(--soft); font-size: 14px; }
.st-bg-b small { color: var(--muted); }
.st-card { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line2); }
.st-card:first-of-type { border-top: 0; }
.st-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-card-h b { font-size: 15px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.st-fields { display: flex; flex-direction: column; gap: 12px; }
.st-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.st-field small { color: var(--muted); }
.st-field select, .st-field input[type=text] { background: var(--input); border: 1px solid var(--edge); border-radius: 8px; color: var(--text); padding: 9px 10px; font: 14px var(--mono); outline: 0; min-height: 40px; }
.st-field input[type=color] { width: 64px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--edge); background: var(--input); cursor: pointer; }
.st-colors { display: flex; gap: 18px; flex-wrap: wrap; }
.st-sample { font-size: 20px !important; color: var(--text); padding: 6px 2px 0; }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.st-preview { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.st-preview-h { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-preview img { width: 100%; height: auto; border-radius: 8px; display: block; }
.st-skeleton { height: 160px; border-radius: 8px; background: linear-gradient(90deg, var(--line2) 25%, var(--line) 50%, var(--line2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.st-err { color: var(--danger); min-height: 0; }
.st-embed-img { max-width: 100%; border-radius: 8px; display: block; margin-top: 6px; }
@media (max-width: 860px) { .st-grid { grid-template-columns: 1fr; } .st-bg-thumb { width: 100%; } }

/* ---------- Aperçus des modules : vraies photos et vraies images ---------- */
img.dc-avatar { object-fit: cover; border-radius: 50%; }
.pv-real-img { max-width: 100%; border-radius: 8px; display: block; margin-top: 4px; }
.pv-real-img.tall { max-height: 360px; object-fit: cover; }

/* ---------- Profil du bot : carte comme dans Discord ---------- */
.bp-card { max-width: 380px; border-radius: 16px; overflow: hidden; background: #232428; color: #f2f3f5; border: 1px solid #2e2f34; box-shadow: var(--shadow); }
.bp-banner { height: 120px; background: var(--accent); }
.bp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-avatar { width: 92px; height: 92px; border-radius: 50%; border: 6px solid #232428; margin: -46px 0 0 16px; background: #313338; display: grid; place-items: center; overflow: hidden; position: relative; }
.bp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-body { padding: 8px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.bp-name { font-size: 20px; overflow-wrap: anywhere; }
.bp-body small { color: #b5bac1; font-size: 13px; } .bp-body small em { font: 600 12px var(--mono); font-style: normal; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.bp-sep { height: 1px; background: #3f4147; margin: 10px 0; }
.bp-label { font: 700 12px var(--mono); color: #b5bac1; text-transform: uppercase; letter-spacing: .04em; }
.bp-bio { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #dbdee1; }
.bp-file { padding: 14px 20px; border-top: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-file > span { font-size: 14px; } .bp-file small { color: var(--muted); }
.bp .field input, .bp .field textarea { font-family: inherit; }

/* En-tête : entre 961 et 1200 px, l'état du bot laisse la place au menu (sinon ils se chevauchent une fois connecté) */
@media (max-width: 1200px) { .status { display: none; } }
