/* ======================================================
   Pingly — direction artistique « banquise »
   Vecteur plat, contours d'encre, ombres pleines.
   Aucune ombre floue, aucun dégradé décoratif.
====================================================== */
:root {
  color-scheme: light;

  /* --- jetons banquise --- */
  --ink: #111218;
  --ink-soft: #414A5C;
  --ink-mute: #5F6B7D;
  --sky: #DFF3FF;
  --ice: #FFFFFF;
  --ice-1: #F8FCFF;
  --ice-2: #DDF2FF;
  --ice-3: #C7E7FA;
  --ice-4: #A9D4F2;
  --water: #1976D2;
  --water-ink: #1565C0;
  --lav: #8B5CF6;
  --lav-soft: #D9C7FF;
  --sun: #FFA52F;
  --sun-deep: #F08C00;
  --sun-soft: #FFEEDA;

  --line: 2px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --pop-lift: 5px 5px 0 var(--ink);
  --pop-press: 1px 1px 0 var(--ink);

  --display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* --- correspondances de l'ancien système --- */
  --bg: var(--sky);
  --bg-2: var(--ice);
  --panel: var(--ice);
  --panel-2: var(--ice-1);
  --panel-3: var(--ice-2);
  --border: #BBDCF2;
  --border-2: var(--ink);
  --accent: var(--water-ink);
  --accent-strong: var(--sun);
  --accent-hover: var(--sun-deep);
  --accent-soft: var(--ice-2);
  --accent-line: var(--ink);
  --signal: var(--water);
  --signal-hover: var(--water-ink);
  --signal-soft: var(--ice-2);
  --signal-line: var(--water);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --muted-2: var(--ink-mute);
  --good: var(--water-ink);
  --bad: var(--ink);
  --warn: var(--sun-deep);

  --radius: 16px;
  --r-sm: 10px;
  --r-md: 10px;
  --r-lg: 22px;
  --r-pill: 99px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-card: var(--pop);
  --shadow-lift: var(--pop-lift);
  --shadow-float: 6px 6px 0 var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: var(--sans); color: var(--text); }
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ice-4); border: 2px solid var(--ink); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--water); }
::-webkit-scrollbar-track { background: var(--ice-1); }
* { scrollbar-color: var(--ice-4) var(--ice-1); }
::selection { background: var(--sun-soft); color: var(--ink); }
input, textarea, select { caret-color: var(--water); }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
b, strong { font-weight: 700; }

/* ---------- Public navbar ---------- */
.navbar { position: fixed; top: 0; z-index: 50; width: 100%; border-bottom: var(--line); background: var(--ice); padding: .85rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.nav-spacer { height: 5rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: var(--line); }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.55rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; flex: 1; }
.dnavbar-item { font-size: .875rem; font-weight: 600; color: var(--ink-soft); transition: color .12s var(--ease); background: none; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.dnavbar-item:hover { color: var(--ink); }
.premium-pill { background: var(--sun-soft); color: var(--ink); border: var(--line); box-shadow: var(--pop-sm); padding: .38rem .8rem; border-radius: 99px; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; gap: .35rem; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.premium-pill:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-lift); }
.premium-pill:active { transform: translate(2px, 2px); box-shadow: var(--pop-press); }
.nav-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-user { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; border: var(--line); }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown .chevron { display: inline-block; transition: transform .15s var(--ease); font-size: .7em; }
.dropdown[open] .chevron { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + .7rem); right: 0; min-width: 230px; background: var(--ice); border: var(--line); border-radius: 16px; padding: .5rem; box-shadow: var(--pop); display: flex; flex-direction: column; gap: .15rem; z-index: 60; }
.dropdown-menu a { padding: .5rem .75rem; border-radius: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.dropdown-menu a:hover { background: var(--ice-2); color: var(--ink); }
/* la liste des fonctionnalites est longue : en une colonne elle depasse l'ecran */
.dropdown-wide { left: 50%; right: auto; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: .1rem .35rem; min-width: 0; width: max-content; max-width: min(760px, calc(100vw - 3rem));
  max-height: min(64vh, 480px); overflow-y: auto; }
.dropdown-wide > a:first-child { grid-column: 1 / -1; font-weight: 700;
  border-bottom: 2px solid var(--ice-3); border-radius: 10px 10px 0 0; margin-bottom: .2rem; }
@media (max-width: 960px) { .dropdown-wide { grid-template-columns: 1fr; width: 100%; } }

/* ---------- Buttons ---------- */
.dbtn { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; border-radius: 10px; padding: .55rem 1.1rem; font-size: .875rem; font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--ice); border: var(--line); box-shadow: var(--pop-sm); cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease); font-family: inherit; }
.dbtn:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-lift); }
.dbtn:active { transform: translate(2px, 2px); box-shadow: var(--pop-press); }
.dbtn-large { min-height: 3rem; font-size: 1.05rem; padding: .6rem 1.6rem; border-radius: 16px; box-shadow: var(--pop); }
.dbtn-primary { background: var(--ice-4); }
.dbtn-primary:hover { background: #8FC5EC; }
.dbtn-sun { background: var(--sun); color: var(--ink); }
.dbtn-sun:hover { background: var(--sun-deep); }
.dbtn-gray { background: var(--ice); }
.dbtn-gray:hover { background: var(--ice-1); }
.dbtn-danger { background: var(--sun-soft); }
.dbtn-danger:hover { background: #FFE1BC; }
.dbtn-ghost { background: transparent; box-shadow: none; color: var(--ink-soft); }
.dbtn-ghost:hover { background: var(--ice-1); color: var(--ink); box-shadow: none; transform: none; }
.dbtn-ghost:active { transform: translate(1px, 1px); box-shadow: none; }
.dbtn[disabled], .dbtn:disabled { background: var(--ice-1); color: var(--ink-mute); border-color: var(--ink-mute);
  box-shadow: 2px 2px 0 var(--ink-mute); opacity: 1; cursor: not-allowed; transform: none; }

/* ---------- Hero / public ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: var(--line); }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--ink) 1px, transparent 0); background-size: 34px 34px; opacity: .05; }
.orb { display: none; }
.hero-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 4.5rem 1.5rem 6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.hero-avatar-wrap { position: relative; width: 128px; height: 128px; animation: float 5s ease-in-out infinite; }
.hero-avatar-wrap .halo, .hero-avatar-wrap .ring1, .hero-avatar-wrap .ring2 { display: none; }
.hero-avatar-wrap img { position: relative; width: 128px; height: 128px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: var(--pop); background: var(--ice); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-title { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(2.6rem, 7vw, 4.2rem); color: var(--ink); }
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; line-height: 1.55; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.section { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.section + .section { padding-top: 0; }
.section-title { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--ink); margin-bottom: 1.5rem; text-align: center; }
.trusted { text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--ink-soft); padding: 2.5rem 1rem 0; }
.trusted b { color: var(--ink); font-size: 1.35rem; font-family: var(--display); }
.koya-panel { background: var(--ice); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); }
.feature-card { display: grid; grid-template-columns: 3fr 4fr; gap: 2rem; padding: 2rem; align-items: center; }
.feature-card h3 { font-size: 1.55rem; font-weight: 700; color: var(--ink); margin-bottom: .7rem; }
.feature-card p { color: var(--ink-soft); line-height: 1.55; font-size: .95rem; max-width: 72ch; }
.feature-card .visual { font-size: 4.5rem; text-align: center; background: var(--ice-2); border: var(--line); border-radius: var(--radius); padding: 2.2rem; }
.feature-card.reverse { grid-template-columns: 4fr 3fr; }
.feature-card.reverse .visual { order: -1; }
.features-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.glass-card { background: var(--ice); border: var(--line); box-shadow: var(--pop-sm); border-radius: 16px; padding: 1rem; transition: transform .12s var(--ease), box-shadow .12s var(--ease); position: relative; }
.glass-card:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-lift); }
.glass-card .arrow { position: absolute; top: .8rem; right: .9rem; opacity: 0; transition: opacity .12s var(--ease), transform .12s var(--ease); color: var(--water-ink); }
.glass-card:hover .arrow { opacity: 1; transform: translateX(3px); }
.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.chip-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--ice-2); border: var(--line); border-radius: 10px; font-size: 1.1rem; margin-bottom: .6rem; }
.page-head { text-align: center; padding: 3.5rem 1.5rem 1rem; }
.page-head h1 { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.page-head p { color: var(--ink-soft); margin-top: .6rem; }

/* ---------- Commands / status / guild list reuse ---------- */
.cmd-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.cmd-sidebar { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1rem; }
.filter-card { padding: 1rem; }
.filter-card h4 { font-size: .8rem; letter-spacing: .02em; color: var(--ink-soft); font-weight: 700; margin-bottom: .6rem; display: flex; justify-content: space-between; }
.filter-card .count { font-variant-numeric: tabular-nums; background: var(--ice-2); border: var(--line); color: var(--ink); border-radius: 99px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; }
.filter-btn { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--ink-soft); font-family: inherit; font-size: .875rem; font-weight: 600; padding: .45rem .6rem; border-radius: 10px; cursor: pointer; }
.filter-btn:hover { background: var(--ice-1); color: var(--ink); }
.filter-btn.active { background: var(--ice-2); border: var(--line); padding: calc(.45rem - 2px) calc(.6rem - 2px); color: var(--ink); }
.search-input { width: 100%; background: var(--ice-1); border: var(--line); border-radius: 10px; color: var(--ink); padding: .75rem 1rem; font-family: inherit; font-size: .95rem; margin-bottom: 1rem; }
.cmd-card { padding: 1rem 1.25rem; margin-bottom: 1rem; cursor: pointer; }
.cmd-card summary { list-style: none; display: flex; align-items: center; gap: .8rem; }
.cmd-card summary::-webkit-details-marker { display: none; }
.cmd-name { font-weight: 800; font-family: ui-monospace, monospace; color: var(--water-ink); }
.cmd-desc { color: var(--ink-soft); font-size: .875rem; flex: 1; }
.cmd-card .chev { transition: transform .15s var(--ease); color: var(--ink-mute); }
.cmd-card[open] .chev { transform: rotate(180deg); }
.cmd-body { border-top: 2px solid var(--ice-3); margin-top: .8rem; padding-top: .8rem; color: var(--ink-soft); font-size: .875rem; line-height: 1.65; }
.mention { background: var(--ice-2); color: var(--water-ink); border-radius: 6px; padding: .05rem .35rem; font-weight: 700; }
.cat-title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .8rem; color: var(--ink); }
.status-banner { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1rem 1.5rem; border: var(--line); box-shadow: var(--pop); border-radius: var(--radius); font-weight: 700; font-size: 1.05rem; margin-bottom: 2rem; }
.status-banner.ok { background: var(--ice-2); color: var(--ink); }
.status-banner.down { background: var(--sun-soft); color: var(--ink); }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-tile { padding: 1.4rem; text-align: center; }
.stat-tile .num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-tile .lbl { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.guild-card { padding: 1.1rem; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "icon main" "act act"; align-items: center; gap: .55rem .9rem; }
.guild-card img, .guild-card .noicon { grid-area: icon; width: 48px; height: 48px; border-radius: 14px; border: var(--line); background: var(--ice-2); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.guild-card .gmain { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.guild-card .gname { font-size: .95rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card .gact { grid-area: act; width: 100%; justify-content: center; }

/* ---------- Toggle ---------- */
.toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: var(--ice-1); border: var(--line); border-radius: 99px; transition: background .15s var(--ease); cursor: pointer; }
.toggle .slider::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--ice); border: var(--line); top: 4px; left: 4px; transition: transform .15s var(--ease); }
.toggle input:checked + .slider { background: var(--water); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:focus-visible + .slider { outline: 3px solid var(--lav); outline-offset: 3px; }

/* ---------- Footer ---------- */
footer { background: var(--ice); border-top: var(--line); padding: 2.5rem 2rem; margin-top: auto; }
.footer-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer-col h5 { font-weight: 800; font-family: var(--display); margin-bottom: .8rem; font-size: 1rem; }
.footer-col a { display: block; font-size: .875rem; font-weight: 500; color: var(--ink-soft); padding: .25rem 0; }
.footer-col a:hover { color: var(--water-ink); }
.footer-bottom { max-width: 80rem; margin: 2.5rem auto 0; color: var(--ink-mute); font-size: .875rem; }

/* ======================================================
   GUILD DASHBOARD (sidebar layout)
====================================================== */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: var(--ice); border-right: var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sb-guild { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.1rem; border-bottom: 2px solid var(--ice-3); }
.sb-guild img, .sb-guild .noicon { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; border: var(--line); background: var(--ice-2); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sb-guild .info { overflow: hidden; }
.sb-guild .gname { font-weight: 800; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-guild .gmeta { font-size: .72rem; color: var(--ink-mute); }
.sb-back { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--ice-3); }
.sb-back:hover { color: var(--water-ink); }
a.sb-brand { padding: .8rem 1.1rem; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
a.sb-brand img { width: 26px !important; height: 26px !important; min-width: 26px; max-width: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--ink); }
a.sb-brand .home { margin-left: auto; font-family: var(--sans); font-size: .68rem; font-weight: 600; color: var(--ink-mute); }
a.sb-brand:hover { color: var(--water-ink); }
a.sb-brand:hover .home { color: var(--water-ink); }
.sb-links { display: flex; flex-wrap: wrap; gap: .45rem .9rem; padding: .8rem 1.2rem; border-top: 2px solid var(--ice-3); }
.sb-links a.sb-back { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: none; font-size: .75rem; }
.sic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.sb-item .ic { display: flex; align-items: center; justify-content: center; }
.sb-item .sic { width: 18px; height: 18px; display: block; }
.sb-links .sic { width: 14px; height: 14px; }
a.sb-brand .sic { width: 18px; height: 18px; }
h1 .sic, h2 .sic, h3 .sic { vertical-align: -0.1em; }
.m-ic .sic, .tk-stat .sic { width: 1.15em; height: 1.15em; }
.sb-links a.logout { color: var(--ink); font-weight: 700; }
.sb-links a.logout:hover { color: var(--sun-deep); }
.sb-nav { padding: .8rem .7rem; flex: 1; }
.sb-section { font-size: .72rem; letter-spacing: .02em; color: var(--ink-mute); font-weight: 700; padding: 1rem .6rem .4rem; }
.sb-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 2px solid transparent; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); position: relative; transition: background .12s var(--ease), color .12s var(--ease); }
.sb-item .ic { width: 20px; text-align: center; }
.sb-item:hover { background: var(--ice-1); color: var(--ink); }
.sb-item.active { background: var(--ice-2); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.led { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ink); }
.led.on { background: var(--water); }
.led.off { background: var(--ice); }
.crumb:hover { color: var(--water-ink) !important; }
.ic-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .4rem .6rem; background: var(--ice-1); border: var(--line); border-radius: 10px; font-size: .82rem; font-weight: 600; }
.ic-row input[type=color] { width: 38px; height: 26px; border: none; background: none; border-radius: 8px; cursor: pointer; padding: 0; }
input[type=range] { accent-color: var(--water); }
input[type=checkbox], input[type=radio] { accent-color: var(--water); }
.seg label:has(input:checked) span { color: var(--ink); }
.bg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .55rem; }
.bg-thumb { aspect-ratio: 1024/420; border-radius: 10px; border: var(--line); background-size: cover; background-position: center; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); background-color: var(--ice-1); transition: box-shadow .12s var(--ease), transform .12s var(--ease); }
.bg-thumb:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-sm); }
.bg-thumb.sel { box-shadow: var(--pop-sm); outline: 3px solid var(--water); outline-offset: 2px; }
.reward-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 2px solid var(--ice-3); }
.reward-row:last-of-type { border-bottom: none; }
.trig-type { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem; border: var(--line); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; background: var(--ice); transition: background .12s var(--ease); }
.trig-type:has(input:checked) { background: var(--ice-2); box-shadow: var(--pop-sm); }
.trig-type input { margin-top: .2rem; }
.trig-type .tt-name { font-weight: 700; font-size: .92rem; }
.trig-type .tt-desc { color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }
.sb-foot { padding: 1rem 1.2rem; border-top: 2px solid var(--ice-3); font-size: .75rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.sb-foot img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); }

.content { padding: 2rem 3rem 4rem; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.topbar h1 { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }
.topbar .sub { color: var(--ink-soft); font-size: .9rem; margin-top: .2rem; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }

.saved-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--ice-2); border: var(--line); color: var(--ink); padding: .8rem 1.2rem; border-radius: 10px; font-weight: 700; font-size: .9rem; z-index: 80; box-shadow: var(--pop); animation: slideup .2s var(--ease); }
@keyframes slideup { from { transform: translateY(16px); opacity: 0; } }

.card { background: var(--ice); border: var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--pop); }
.card > h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.card > .hint { color: var(--ink-soft); font-size: .85rem; margin: .3rem 0 1.1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.kpi { background: var(--ice); border: var(--line); box-shadow: var(--pop); border-radius: var(--radius); padding: 1.2rem 1.3rem; position: relative; overflow: hidden; }
.kpi::after { display: none; }
.kpi .k-ic { font-size: 1.3rem; }
.kpi .k-num { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin-top: .4rem; font-variant-numeric: tabular-nums; }
.kpi .k-lbl { font-size: .8rem; color: var(--ink-soft); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.tile { background: var(--ice); border: var(--line); box-shadow: var(--pop); border-radius: var(--radius); padding: 1.3rem; display: block; transition: transform .12s var(--ease), box-shadow .12s var(--ease); position: relative; }
.tile:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-lift); }
.tile:active { transform: translate(2px, 2px); box-shadow: var(--pop-press); }
.tile .t-ic { width: 42px; height: 42px; border-radius: 10px; border: var(--line); background: var(--ice-2); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: .8rem; }
.tile h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.tile p { color: var(--ink-soft); font-size: .82rem; margin-top: .3rem; line-height: 1.5; }

/* form rows / inputs */
.row { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 2px solid var(--ice-3); }
.row:last-child { border-bottom: none; }
.row .r-main { flex: 1; }
.row .r-label { font-weight: 700; font-size: .92rem; }
.row .r-sub { color: var(--ink-soft); font-size: .78rem; margin-top: .15rem; }
input[type=number], input[type=text], input[type=search], input[type=email], input[type=url], input[type=password], input[type=time], input[type=date], select.field { background: var(--ice-1); border: var(--line); color: var(--ink); border-radius: 10px; padding: .5rem .7rem; font-family: inherit; font-size: .9rem; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=password] { min-width: 200px; }
input::placeholder { color: var(--ink-mute); }
select.field { min-width: 220px; cursor: pointer; }
.row input.narrow { min-width: 0; width: 8rem; }
.row input.wide { min-width: 0; width: min(340px, 100%); }
.swatch-wrap { display: inline-flex; align-items: center; gap: .5rem; }
.swatch { width: 26px; height: 26px; border-radius: 8px; flex: none; border: var(--line); background: var(--ice-2); }
.seg { display: inline-flex; background: var(--ice-1); border: var(--line); border-radius: 10px; padding: .2rem; gap: .2rem; }
.seg label { padding: .4rem .9rem; border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.seg input { display: none; }
.seg-wrap { display: flex; flex-wrap: wrap; max-width: 100%; }
.seg input:checked + span { color: var(--ink); }
.seg label:has(input:checked) { background: var(--ice-3); color: var(--ink); box-shadow: var(--pop-sm); }

/* module rows */
.mod-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: var(--line); box-shadow: var(--pop-sm); border-radius: var(--radius); margin-bottom: .9rem; background: var(--ice); }
.mod-row .m-ic { width: 40px; height: 40px; border-radius: 10px; border: var(--line); background: var(--ice-2); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.mod-row .m-main { flex: 1; min-width: 0; }
.mod-row .m-name { font-weight: 800; font-size: .95rem; }
.mod-row .m-sub { color: var(--ink-soft); font-size: .78rem; }

/* events checkbox grid */
.ev-group { margin-bottom: 1.6rem; }
.ev-group-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.ev-group-head .e-ic { font-size: 1.1rem; }
.ev-group-head h3 { font-size: 1.05rem; font-weight: 700; }
.ev-group-head .bulk { margin-left: auto; display: flex; gap: .4rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.ev-item { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border: var(--line); border-radius: 10px; background: var(--ice); cursor: pointer; transition: background .12s var(--ease), box-shadow .12s var(--ease); user-select: none; }
.ev-item:hover { background: var(--ice-1); }
.ev-item.on { background: var(--ice-2); box-shadow: var(--pop-sm); }
.ev-item .cbx { width: 20px; height: 20px; border-radius: 6px; border: var(--line); background: var(--ice); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; transition: background .12s var(--ease); }
.ev-item.on .cbx { background: var(--water); color: #fff; }
.ev-item .e-label { font-size: .84rem; font-weight: 600; flex: 1; }
.badge { font-size: .68rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--ice-1); border: 2px solid var(--ink); color: var(--ink); letter-spacing: 0; }
.badge.warn { background: var(--sun-soft); color: var(--ink); }
.badge.on { background: var(--ice-2); color: var(--ink); }
.badge.off { background: var(--ice); color: var(--ink-soft); }

/* chips / lists */
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--ice-1); border: var(--line); border-radius: 99px; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; }
.chip .x { cursor: pointer; color: var(--ink-soft); font-weight: 800; }
.chip .x:hover { color: var(--sun-deep); }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ink); }
.list-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 2px solid var(--ice-3); }
.list-row:last-child { border-bottom: none; }
.list-row .l-main { flex: 1; font-size: .9rem; font-weight: 600; }
.empty { color: var(--ink-soft); font-size: .88rem; padding: 1.1rem; text-align: center; border: 2px dashed var(--ice-4); border-radius: 10px; background: var(--ice-1); }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.role-select-box { max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .45rem; }
.role-opt { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border: var(--line); border-radius: 10px; background: var(--ice); cursor: pointer; font-size: .84rem; font-weight: 600; }
.role-opt:has(input:checked) { background: var(--ice-2); box-shadow: var(--pop-sm); }
.role-opt input { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 90; width: 280px; transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: var(--pop); }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 1.4rem 1.1rem 3rem; }
  .mobile-bar { display: flex !important; }
  .navbar { flex-wrap: wrap; gap: .5rem .7rem; padding: .6rem .8rem; }
  .navbar .wordmark { font-size: 1.2rem; }
  .navbar .brand img { width: 32px; height: 32px; }
  .nav-right { gap: .6rem; margin-left: auto; }
  .nav-links { display: none; }
  .burger { display: inline-flex !important; }
  /* le burger existait mais n'ouvrait rien : aucune regle ne repondait a .open */
  .navbar.open, body.scene-on .navbar.open { border-radius: 22px; padding-bottom: .9rem; }
  .navbar.open .nav-links { display: flex; flex: 0 0 100%; order: 9; flex-direction: column;
    align-items: stretch; text-align: left; gap: .2rem; margin-top: .5rem; padding-top: .6rem;
    border-top: 2px solid var(--ice-3); }
  .navbar.open .nav-links > * { padding: .5rem .7rem; border-radius: 10px; }
  .navbar.open .nav-links > *:hover { background: var(--ice-1); }
  .navbar.open .premium-pill { justify-content: center; margin-top: .3rem; }
  /* garder l'absolu : en flux, le menu ferme se deploie quand meme et pousse toute la page */
  .navbar.open .dropdown-menu { left: 0; right: auto; width: 100%; min-width: 0;
    max-height: 55vh; overflow-y: auto; }
  .feature-card, .feature-card.reverse { grid-template-columns: 1fr; }
  .cmd-layout { grid-template-columns: 1fr; }
}
.mobile-bar { display: none; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: var(--line); position: sticky; top: 0; background: var(--ice); z-index: 40; }
.burger { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.mobile-bar button { background: var(--ice); border: var(--line); color: var(--ink); border-radius: 10px; padding: .35rem .7rem; font-size: 1.1rem; cursor: pointer; box-shadow: var(--pop-sm); }

/* ---------- Announce editor ---------- */
.editor-grid { display: grid; grid-template-columns: 1fr minmax(420px, 560px); gap: 1.8rem; align-items: start; }
@media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-col { min-width: 0; }
.preview-col { position: sticky; top: 1.5rem; }
label.fld { display: block; font-size: .78rem; letter-spacing: 0; color: var(--ink-soft); font-weight: 700; margin: 1rem 0 .4rem; }
.txt, textarea.txt { width: 100%; background: var(--ice-1); border: var(--line); color: var(--ink); border-radius: 10px; padding: .6rem .8rem; font-family: inherit; font-size: .9rem; resize: vertical; }
.txt-count { font-variant-numeric: tabular-nums; text-align: right; font-size: .72rem; color: var(--ink-mute); margin-top: .2rem; }
.embed-builder { border-left: 2px solid var(--ice-3); padding-left: 1rem; margin-top: 1rem; }
.color-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 8px; cursor: pointer; border: 2px solid var(--ink); }
.swatch.sel { outline: 3px solid var(--water); outline-offset: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.efield { border: var(--line); border-radius: 10px; padding: .7rem; margin-bottom: .6rem; background: var(--ice-1); }
.efield .ef-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.efield .ef-head .ef-inline { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-soft); }
.var-hint { font-size: .74rem; color: var(--ink-soft); margin-top: .5rem; line-height: 1.6; }
.var-hint code { background: var(--ice-2); border: 1px solid var(--ice-4); padding: .05rem .35rem; border-radius: 6px; color: var(--water-ink); cursor: pointer; }

/* Discord-style preview — reproduit fidèlement Discord, hors DA */
.dc-wrap { background: #313338; border-radius: var(--radius); padding: 1rem; border: var(--line); box-shadow: var(--pop); }
.dc-preview-lbl { font-size: .72rem; letter-spacing: 0; color: #b5bac1; font-weight: 700; margin-bottom: .6rem; }
.dc-msg { display: flex; gap: .8rem; }
.dc-msg .dc-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: baseline; gap: .5rem; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: .95rem; }
.dc-bot { background: #5865f2; color: #fff; font-size: .6rem; font-weight: 700; padding: .05rem .3rem; border-radius: 4px; text-transform: uppercase; }
.dc-time { font-size: .7rem; color: #949ba4; }
.dc-content { color: #dbdee1; font-size: .92rem; line-height: 1.4; margin-top: .15rem; word-wrap: break-word; white-space: pre-wrap; }
.dc-content .mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 4px; padding: 0 2px; }
.dc-embed { margin-top: .4rem; background: #2b2d31; border-radius: 4px; border-left: 4px solid #1e1f22; padding: .7rem 1rem .7rem .8rem; max-width: 432px; display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.dc-embed .e-thumb { width: 68px; height: 68px; border-radius: 6px; object-fit: cover; }
.dc-eauthor { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: #f2f3f5; margin-bottom: .3rem; }
.dc-eauthor img { width: 22px; height: 22px; border-radius: 50%; }
.dc-etitle { color: #00a8fc; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.dc-etitle.plain { color: #f2f3f5; }
.dc-edesc { color: #dbdee1; font-size: .82rem; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.dc-efields { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.dc-efield { min-width: 100%; }
.dc-efield.inline { min-width: 150px; flex: 1; }
.dc-efield .fn { font-size: .78rem; font-weight: 700; color: #f2f3f5; }
.dc-efield .fv { font-size: .78rem; color: #dbdee1; white-space: pre-wrap; }
.dc-eimage { margin-top: .5rem; grid-column: 1/-1; }
.dc-eimage img { max-width: 100%; border-radius: 6px; }
.dc-efooter { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: #949ba4; margin-top: .5rem; grid-column: 1/-1; }
.dc-efooter img { width: 18px; height: 18px; border-radius: 50%; }
.dc-content b { font-weight: 700; } .dc-content i { font-style: italic; } .dc-content code, .dc-edesc code { background: #1e1f22; padding: 0 3px; border-radius: 3px; font-family: monospace; font-size: .85em; }

/* save bar */
.savebar { position: fixed; left: 280px; right: 0; bottom: 0; background: var(--ice); border-top: var(--line); padding: .85rem 1.5rem; display: flex; align-items: center; gap: 1rem; z-index: 70; transform: translateY(120%); transition: transform .22s var(--ease); }
.savebar.show { transform: translateY(0); }
.savebar .sb-msg { flex: 1; font-weight: 700; font-size: .9rem; }
@media (max-width: 960px) { .savebar { left: 0; } }

/* variable autocomplete */
.var-ac { position: absolute; z-index: 200; background: var(--ice); border: var(--line); border-radius: 10px; box-shadow: var(--pop); padding: .3rem; min-width: 240px; max-height: 260px; overflow-y: auto; display: none; }
.var-ac.show { display: block; }
.var-ac .ac-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; font-size: .84rem; }
.var-ac .ac-item .ac-v { font-family: ui-monospace, monospace; color: var(--water-ink); font-weight: 700; }
.var-ac .ac-item .ac-d { color: var(--ink-soft); font-size: .76rem; margin-left: auto; }
.var-ac .ac-item.sel, .var-ac .ac-item:hover { background: var(--ice-2); }

/* custom confirm modal */
.modal-ov { position: fixed; inset: 0; background: rgba(17, 18, 24, .45); z-index: 300; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-ov.show { display: flex; animation: fadein .12s; }
@keyframes fadein { from { opacity: 0; } }
.modal-box { background: var(--ice); border: var(--line); border-radius: var(--r-lg); padding: 1.6rem; max-width: 420px; width: 100%; box-shadow: 6px 6px 0 var(--ink); animation: slideup .18s var(--ease); }
.modal-box .m-icon { font-size: 2rem; }
.modal-box h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: .6rem 0 .3rem; }
.modal-box p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.modal-box .m-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.4rem; }

.dev-badge { display: inline-flex; align-items: center; gap: .5rem; margin: 0 auto 1rem; padding: .35rem .95rem; border-radius: 99px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--lav-soft); border: var(--line); box-shadow: var(--pop-sm); }
.hero-tagline { font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 2.2rem); font-weight: 700; line-height: 1.2; max-width: 24ch; margin: .2rem auto .7rem; color: var(--ink); }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 62ch; margin: -.6rem auto 2rem; line-height: 1.6; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.duo-card { padding: 1.8rem; position: relative; overflow: hidden; }
.duo-card h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; margin: .9rem 0 .6rem; }
.duo-card p { color: var(--ink-soft); line-height: 1.6; }
.duo-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--ice-2); border: var(--line); color: var(--ink); font-size: 1.5rem; }
.duo-card::after { display: none; }
.dev-panel { padding: 2.4rem 2rem; }
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr; } }
.dev-item { text-align: center; }
.dev-item .d-ic { width: 44px; height: 44px; margin: 0 auto .7rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ice-2); border: var(--line); color: var(--ink); font-size: 1.25rem; }
.dev-item h4 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: .35rem; }
.dev-item p { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

.vp-pop { position: absolute; z-index: 400; display: none; width: 280px; background: var(--ice); border: var(--line); border-radius: 10px; box-shadow: var(--pop); overflow: hidden; }
.vp-pop.show { display: block; }
.vp-head { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; padding: .5rem .55rem; background: var(--ice-1); border-bottom: var(--line); }
.vp-head-l { font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); margin-right: .15rem; }
.vp-chip { font-family: inherit; font-size: .7rem; font-weight: 700; line-height: 1; padding: .28rem .55rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--ice); color: var(--ink-soft); cursor: pointer; transition: background .12s var(--ease), color .12s var(--ease); }
.vp-chip:hover { background: var(--ice-2); color: var(--ink); }
.vp-chip.on { background: var(--water); color: #fff; }
.vp-list { max-height: 260px; overflow-y: auto; padding: .3rem; }
.vp-item { display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; border-radius: 8px; cursor: pointer; font-size: .84rem; }
.vp-item.sel, .vp-item:hover { background: var(--ice-2); }
.vp-v { font-family: ui-monospace, monospace; color: var(--water-ink); font-weight: 700; }
.vp-d { margin-left: auto; color: var(--ink-soft); font-size: .76rem; text-align: right; }
.vp-empty { padding: .65rem .6rem; color: var(--ink-soft); font-size: .8rem; }
.vp-hint { padding: .42rem .6rem; border-top: 2px solid var(--ice-3); color: var(--ink-soft); font-size: .7rem; }

/* ---------- Emoji picker ---------- */
.ep-wrap { position: relative; display: block; }
.ep-wrap > input, .ep-wrap > textarea { width: 100%; padding-right: 2.15rem; }
.ep-btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 8px; border: 2px solid transparent; background: var(--ice-2); color: var(--ink); font-family: inherit; font-size: .95rem; line-height: 1; cursor: pointer; transition: background .12s var(--ease), border-color .12s var(--ease); }
.ep-btn:hover { background: var(--ice-3); border-color: var(--ink); }
.ep-wrap-ta > .ep-btn { top: .4rem; transform: none; }
.ep-pop { position: absolute; z-index: 100000; display: none; width: 336px; max-width: calc(100vw - 16px); background: var(--ice); border: var(--line); border-radius: 10px; box-shadow: var(--pop); overflow: hidden; }
.ep-pop.show { display: block; }
.ep-head { padding: .5rem; background: var(--ice-1); border-bottom: var(--line); }
.ep-search { width: 100%; background: var(--ice); border: var(--line); border-radius: 10px; color: var(--ink); padding: .42rem .6rem; font-family: inherit; font-size: .85rem; }
.ep-tabs { display: flex; gap: .25rem; padding: .4rem .5rem; overflow-x: auto; background: var(--ice-1); border-bottom: var(--line); }
.ep-tab { flex: 0 0 auto; max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: .7rem; font-weight: 700; line-height: 1; padding: .3rem .5rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--ice); color: var(--ink-soft); cursor: pointer; transition: background .12s var(--ease), color .12s var(--ease); }
.ep-tab:hover { background: var(--ice-2); color: var(--ink); }
.ep-tab.on { background: var(--water); color: #fff; }
.ep-recent { display: flex; align-items: center; gap: 2px; padding: .3rem .45rem; overflow-x: auto; background: var(--ice); border-bottom: 2px solid var(--ice-3); }
.ep-recent-l { flex: 0 0 auto; padding-right: .3rem; font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); }
.ep-recent .ep-em { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: .35rem; max-height: 15rem; overflow-y: auto; background: var(--ice); }
.ep-em { display: flex; align-items: center; justify-content: center; height: 2.1rem; padding: 0; border-radius: 8px; border: 2px solid transparent; background: none; color: var(--ink); font-family: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; overflow: hidden; transition: background .1s var(--ease), transform .1s var(--ease); }
.ep-em[data-ep-txt] { font-family: ui-monospace, monospace; font-size: .58rem; font-weight: 700; color: var(--water-ink); }
.ep-em img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.ep-em:hover { background: var(--ice-2); border-color: var(--ink); transform: scale(1.12); }
.ep-em.sel { background: var(--ice-2); border-color: var(--ink); }
.ep-empty { grid-column: 1 / -1; padding: .9rem .6rem; text-align: center; color: var(--ink-soft); font-size: .8rem; }
.ep-retry { margin-top: .55rem; display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-size: .76rem; font-weight: 700; padding: .32rem .8rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--ice-2); color: var(--ink); cursor: pointer; transition: background .12s var(--ease); }
.ep-retry:hover { background: var(--water); color: #fff; }
.ep-foot { padding: .4rem .6rem; background: var(--ice-1); border-top: 2px solid var(--ice-3); color: var(--ink-soft); font-size: .68rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-avatar-wrap, .pulse-dot { animation: none !important; }
}

.mpick { width: 100%; max-width: 420px; }
.mpick:not(.mpick-js) > .mpick-chips, .mpick:not(.mpick-js) > .mpick-head, .mpick:not(.mpick-js) > .mpick-list { display: none; }
.mpick.mpick-js > .mpick-fallback { display: none; }
.mpick-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.mpick-search { flex: 1; min-width: 0 !important; background: var(--ice-1); border: var(--line); color: var(--ink); border-radius: 10px; padding: .45rem .7rem .45rem 2rem; font-family: inherit; font-size: .875rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B7D' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .55rem center; background-size: 15px; }
.mpick-count { font-size: .75rem; color: var(--ink-mute); white-space: nowrap; }
.mpick-clear { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: .75rem; cursor: pointer; padding: .2rem .35rem; border-radius: 6px; }
.mpick-clear:hover { color: var(--ink); background: var(--sun-soft); }
.mpick-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.mpick-chips:empty { display: none; }
.mpick-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--ice-1); border: 2px solid var(--ink); border-radius: 99px; padding: .18rem .5rem .18rem .55rem; font-size: .78rem; color: var(--ink); max-width: 100%; }
.mpick-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick-chip button { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: .95rem; line-height: 1; padding: 0 .1rem; border-radius: 4px; }
.mpick-chip button:hover { color: var(--sun-deep); }
.mpick-list { max-height: 232px; overflow-y: auto; overscroll-behavior: contain; background: var(--ice); border: var(--line); border-radius: 10px; padding: .25rem; }
.mpick-opt { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: .4rem .5rem; color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.mpick-opt:hover, .mpick-opt.cursor { background: var(--ice-1); }
.mpick-opt[aria-selected="true"] { background: var(--ice-2); color: var(--ink); font-weight: 700; }
.mpick-opt[disabled] { color: var(--ink-mute); cursor: not-allowed; }
.mpick-opt .mpick-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick-opt .mpick-why { font-size: .72rem; color: var(--ink-mute); white-space: nowrap; }
.mpick-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }
.mpick-hash { color: var(--ink-mute); flex: none; width: 10px; text-align: center; }
.mpick-tick { flex: none; width: 14px; color: var(--water); opacity: 0; font-size: .8rem; }
.mpick-opt[aria-selected="true"] .mpick-tick { opacity: 1; }
.mpick-empty { padding: .75rem .5rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ======================================================
   Plan, jauges, plafonds — la sémantique de la banquise
   glacé = gratuit · orange = premium · lavande = fondateur
====================================================== */
.plan-card .badge { margin-left: .5rem; vertical-align: middle; }
.plan-card .badge.premium { background: var(--sun-soft); }
.plan-card .badge.founder { background: var(--lav-soft); }
.gauge { display: block; padding: .6rem .75rem; border: var(--line); border-radius: 10px; background: var(--ice); text-decoration: none; color: inherit; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.gauge:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-sm); }
.gauge.gauge-full { background: var(--sun-soft); }
.gauge .g-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.gauge .g-label { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gauge .g-num { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge .g-bar { height: 10px; border-radius: 99px; background: var(--ice-1); border: 2px solid var(--ink); overflow: hidden; }
.gauge .g-bar span { display: block; height: 100%; background: var(--water); transition: width .3s var(--ease); }
.gauge.gauge-warn .g-bar span { background: var(--sun); }
.gauge.gauge-full .g-bar span { background: var(--sun); background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(17, 18, 24, .34) 4px 8px); }
.guild-card .plan-tag { font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--ice); border: 2px solid var(--ink); color: var(--ink); }
.guild-card .plan-tag.premium { background: var(--sun-soft); }
.guild-card .plan-tag.founder { background: var(--lav-soft); }

.cap-pill { display: inline-flex; align-items: center; font-family: var(--display); font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; background: var(--ice-1); border: 2px solid var(--ink); color: var(--ink); margin-left: .5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cap-pill.cap-warn { background: var(--sun-soft); }
.cap-pill.cap-full { background: var(--sun); }
.cap-window { background: var(--sun-soft); }
.cap-window h2 { margin-bottom: .3rem; }

.preview-footer { font-size: .78rem; color: var(--ink-soft); background: var(--ice-1); border: var(--line); border-radius: 10px; padding: .5rem .75rem; min-width: 220px; }

/* ======================================================
   La scène — banquise, manchot, et les profondeurs
   Décor du site public. Fixe, en parallaxe, sous le contenu.
====================================================== */
.page { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
#world { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
#hero-svg { display: block; width: 100%; height: 100vh; }

#depths { position: relative; height: 210vh; overflow: hidden;
  background: linear-gradient(180deg, #0A3E86 0%, #0A3E86 6%, #083268 34%, #052549 66%, #04173A 100%); }
#keel { position: absolute; top: -2px; left: 0; width: 100%; height: 78vh; display: block; }
.rays { position: absolute; top: 0; left: -20%; right: -20%; height: 70vh; opacity: .5; mix-blend-mode: soft-light;
  background:
   linear-gradient(96deg, rgba(255,255,255,.22) 0 2.5%, transparent 2.5% 14%),
   linear-gradient(88deg, rgba(255,255,255,.14) 0 2%, transparent 2% 17%),
   linear-gradient(103deg, rgba(255,255,255,.11) 0 3.5%, transparent 3.5% 23%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.bubble { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.09); }
.mote { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); }
@keyframes rise { to { transform: translateY(-190vh); } }

#penguin { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
#wing-right { animation: wave 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 12% 92%; }
@keyframes wave { 0%, 58%, 100% { transform: rotate(0); } 68% { transform: rotate(-17deg); } 78% { transform: rotate(3deg); } 88% { transform: rotate(-11deg); } }

/* --- une page posée sur la scène --- */
body.scene-on { background: #041B3E; }
body.scene-on .nav-spacer { display: none; }
body.scene-on .navbar { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: none;
  border: var(--line); box-shadow: var(--pop-sm); border-radius: 99px;
  top: 1rem; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 3rem)); padding: .5rem .6rem .5rem 1.1rem; }
body.scene-on .hero { background: none; border-bottom: none; min-height: 100vh; display: flex; align-items: center; }
body.scene-on .hero-grid { display: none; }
body.scene-on .hero-inner { width: 100%; max-width: 1240px; padding: 0 1.5rem;
  display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 20px; text-align: left; }
body.scene-on .hero-copy { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start;
  gap: .8rem; max-width: 640px; background: var(--ice); border: var(--line); box-shadow: var(--pop);
  border-radius: var(--r-lg); padding: 1.6rem 1.8rem; }
body.scene-on .hero-id { display: flex; align-items: center; gap: .75rem; }
body.scene-on .hero-title { font-size: 2.3rem; }
body.scene-on .hero-tagline { font-size: clamp(1.25rem, 2.1vw, 1.7rem); max-width: none; margin: 0; }
body.scene-on .dev-badge { margin: 0; }
body.scene-on .hero-avatar-wrap { width: 52px; height: 52px; animation: none; }
body.scene-on .hero-avatar-wrap img { width: 52px; height: 52px; }
body.scene-on .hero-ctas { justify-content: flex-start; }
body.scene-on .hero-sub { margin: 0; max-width: none; font-size: .98rem; }

/* le contenu redescend sous la ligne d'eau */
body.scene-on .deep { padding-top: 52vh; }
body.scene-on .deep .section-title,
body.scene-on .deep .cat-title,
body.scene-on .deep h2 { color: #fff; }
body.scene-on .deep .section-sub,
body.scene-on .deep .trusted { color: rgba(255,255,255,.86); }
body.scene-on .deep .trusted b { color: #fff; }
body.scene-on footer { background: none; border-top: none; color: rgba(255,255,255,.78); }
body.scene-on footer .wordmark, body.scene-on footer .footer-col h5 { color: #fff; }
body.scene-on footer .footer-col a { color: rgba(255,255,255,.78); }
body.scene-on footer .footer-col a:hover { color: #fff; }
body.scene-on .footer-bottom { color: rgba(255,255,255,.72); }

.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: .1rem;
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .92); text-align: center; }
.scroll-hint b { font-weight: 600; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 900px) {
  /* a 100vh sur un ecran etroit, un dessin 16:9 recadre se retrouve enorme : on baisse la scene */
  #hero-svg { height: 52vh; }
  /* et on la decale sous la barre repliee, sinon la tete du manchot passe derriere */
  body.scene-on #world { top: 13vh; }
  body.scene-inner #world { top: -46vh; }
  body.scene-on .hero { min-height: auto; overflow: visible; align-items: flex-start; padding: 66vh 0 3rem; }
  body.scene-on .hero-inner { grid-template-columns: 1fr; align-content: start; }
  body.scene-on .hero-copy { grid-column: 1; max-width: none; }
  body.scene-on .scroll-hint { display: none; }
  body.scene-on .navbar { top: .6rem; width: calc(100% - 1.6rem); padding: .6rem .8rem; }
  body.scene-on .deep { padding-top: 34vh; }
}
@media (prefers-reduced-motion: reduce) {
  #penguin, #wing-right, .scroll-hint b, .bubble, .mote { animation: none !important; }
}

/* --- pages intérieures : on arrive déjà sous la glace --- */
body.scene-inner #world { top: -92vh; }
body.scene-inner .deep { padding-top: 0; }
body.scene-inner .page-head { padding-top: 7.5rem; }
body.scene-inner .page-head h1 { color: #fff; }
body.scene-inner .page-head p { color: rgba(255, 255, 255, .86); }
body.scene-inner .section > .dnavbar-item { color: rgba(255, 255, 255, .8); }
body.scene-inner .section > .dnavbar-item:hover { color: #fff; }
body.scene-inner #noResult { color: rgba(255, 255, 255, .6) !important; }
body.scene-inner .cmd-sidebar { top: 6rem; }

/* --- ce que le navigateur dessine par defaut : menus et fichiers --- */
select, select.field, select.txt, select.mpick-fallback {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111218' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px;
  padding-right: 2.3rem; }
select[multiple], select[size]:not([size="1"]) {
  appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: .7rem; }
select option { background: var(--ice); color: var(--ink); }

input[type=file] { background: var(--ice-1); border: var(--line); border-radius: 10px;
  padding: .32rem .45rem; font-family: inherit; font-size: .88rem; color: var(--ink); max-width: 100%; }
input[type=file]::file-selector-button { background: var(--ice); border: 2px solid var(--ink);
  border-radius: 8px; padding: .3rem .8rem; margin-right: .65rem; font-family: inherit;
  font-weight: 700; font-size: .82rem; color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ice-2); }

/* --- page de vente : offres, choix du serveur, recapitulatif --- */
.periode-bascule { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.periode-bascule .dbtn.on { background: var(--ice-2); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem; align-items: start; }
.price-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.price-card h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-reco { background: var(--sun-soft); }
.price-actif { box-shadow: var(--pop-lift); transform: translate(-1px, -1px); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price-sub { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.price-tag { display: flex; align-items: baseline; gap: .25rem; margin-top: .3rem; }
.price-tag b { font-family: var(--display); font-size: 2.3rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-tag span { color: var(--ink-soft); font-weight: 600; }
.price-eco { min-height: 1.2rem; font-size: .82rem; font-weight: 600; color: var(--water-ink); }
.price-pick { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
.price-pick select { background: var(--ice); border: var(--line); border-radius: 10px; padding: .45rem .7rem; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 1rem; }
.price-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.price-list li .sic { flex: none; margin-top: .15rem; color: var(--water-ink); }
.price-card > .dbtn { margin-top: auto; }
.pack-note { margin-top: 1.6rem; text-align: center; color: rgba(255, 255, 255, .86); font-size: .9rem; }
.pack-note b { color: #fff; }

.etape { padding: 1.7rem; position: relative; }
.etape-num { position: absolute; top: -14px; left: 1.4rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; background: var(--ice-2); border: var(--line); border-radius: 99px; color: var(--ink); }
.etape-sub { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin: .4rem 0 1.1rem; }
.etape-avert { background: var(--sun-soft); border: var(--line); border-radius: 10px; padding: .7rem .9rem; font-size: .86rem; font-weight: 600; color: var(--ink); margin-top: .9rem; }
.etape-msg { margin-top: .9rem; border: var(--line); border-radius: 10px; padding: .7rem .9rem; font-size: .86rem; font-weight: 600; color: var(--ink); }
.etape-msg-ok { background: var(--ice-2); }
.etape-msg-ko { background: var(--sun-soft); }
.r-val { font-weight: 700; font-size: .92rem; color: var(--ink); text-align: right; }

.serveur-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; }
.serveur-item { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .7rem .9rem; background: var(--ice); border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm); cursor: pointer; font-family: inherit; color: var(--ink); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease); }
.serveur-item:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-lift); }
.serveur-actif { background: var(--ice-2); box-shadow: var(--pop-lift); }
.serveur-absent { opacity: 1; background: var(--ice-1); }
.serveur-ic { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--ice-2); border: var(--line); border-radius: 99px; font-family: var(--display); font-weight: 800; overflow: hidden; }
.serveur-ic img { width: 100%; height: 100%; object-fit: cover; }
.serveur-nom { flex: 1; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serveur-item .plan-tag { flex: none; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--ice); border: 2px solid var(--ink); color: var(--ink); }
.serveur-item .plan-tag.premium { background: var(--sun-soft); }

.comparatif { padding: 1.4rem; }
.comparatif table { width: 100%; border-collapse: collapse; }
.comparatif th { text-align: left; font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--ink); padding: .5rem .6rem; border-bottom: 2px solid var(--ink); }
.comparatif td { padding: .5rem .6rem; font-size: .88rem; color: var(--ink-soft); border-bottom: 2px solid var(--ice-3); }
.comparatif tr:last-child td { border-bottom: none; }
.comparatif .c-free { font-weight: 600; }
.comparatif .c-premium { font-weight: 700; color: var(--ink); }
.comparatif-note { margin-top: .9rem; font-size: .8rem; color: var(--ink-mute); line-height: 1.55; }

.retour-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--ice-2); border: var(--line); border-radius: 99px; margin-bottom: .8rem; }

/* un titre de carte reste a l'encre, meme quand la page flotte au-dessus des profondeurs */
body.scene-on .deep .koya-panel .section-title,
body.scene-inner .deep .etape h2 { color: var(--ink); }

@media (max-width: 700px) {
  .comparatif { padding: 1rem .6rem; }
  .comparatif th, .comparatif td { padding: .45rem .35rem; font-size: .82rem; }
  .r-val { font-size: .86rem; }
}

/* --- la liste des serveurs se rafraichit, et le dit --- */
.dash-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: -.4rem 0 1.1rem; }
.dash-hint { font-size: .8rem; color: rgba(255, 255, 255, .8); }

/* --- le pack Fondateur : lavande, comme le veut la DA --- */
.fondateur-card { display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: center;
  padding: 1.6rem; margin-top: 1.4rem; background: var(--lav-soft); }
.fondateur-card h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: .5rem; }
.fondateur-card .price-list { margin-bottom: 0; }
.fondateur-card .price-list li { color: var(--ink); }
.fondateur-card .price-list li .sic { color: var(--ink); }
.fondateur-droite { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 12rem; }
.fondateur-badge { background: var(--ice); }
.fondateur-card .price-eco { color: var(--ink-soft); }

.slot-liste { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
.slot { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; background: var(--ice-1);
  border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm); }
.slot-rendu { background: var(--sun-soft); }
.slot-main { flex: 1; min-width: 0; }
.slot-nom { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-etat { font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }

.modal-fond { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
  justify-content: center; padding: 1.2rem; background: rgba(17, 18, 24, .55); }
.modal-boite { max-width: 30rem; width: 100%; padding: 1.6rem; }
.modal-boite h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); }

@media (max-width: 760px) {
  .fondateur-card { grid-template-columns: 1fr; gap: 1rem; }
  .fondateur-droite { min-width: 0; }
  .slot { flex-wrap: wrap; }
  .slot .dbtn { width: 100%; }
}

/* --- factures --- */
.facture-liste { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
.facture { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; background: var(--ice-1);
  border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm); }
.facture-main { flex: 1; min-width: 0; }
.facture-num { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.facture-desc { font-size: .85rem; color: var(--ink-soft); margin-top: .1rem; }
.facture-date { font-size: .78rem; color: var(--ink-mute); margin-top: .1rem; }
.facture-montant { font-family: var(--display); font-weight: 800; font-size: 1.1rem; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .facture { flex-wrap: wrap; }
  .facture .dbtn { width: 100%; }
}
.cgv-case { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding: .8rem .9rem;
  background: var(--ice-1); border: var(--line); border-radius: 10px; font-size: .84rem;
  line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.cgv-case input { margin-top: .15rem; width: 18px; height: 18px; flex: none; accent-color: var(--water); }
.cgv-case a { color: var(--water-ink); font-weight: 700; }

/* --- abonnements et résiliation --- */
.abo-liste { display: flex; flex-direction: column; gap: .7rem; }
.abo { display: flex; align-items: center; gap: .9rem; padding: .85rem .9rem; background: var(--ice-1);
  border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm); }
.abo-fini { background: var(--ice); }
.abo-main { flex: 1; min-width: 0; }
.abo-titre { font-weight: 700; font-size: .95rem; }
.abo-sub { font-size: .84rem; color: var(--ink-soft); margin-top: .1rem; }
.abo-etat { font-size: .8rem; color: var(--ink-mute); margin-top: .2rem; }
@media (max-width: 620px) {
  .abo { flex-wrap: wrap; }
  .abo .dbtn { width: 100%; }
}

/* --- bandeau d'incident de paiement --- */
.bandeau-incident { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--sun-soft); border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm);
  padding: .9rem 1rem; margin-bottom: 1.2rem; }
.bandeau-incident .bi-main { flex: 1; min-width: 14rem; }
.bandeau-incident .bi-titre { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.bandeau-incident .bi-texte { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; margin-top: .15rem; }
.incident-serveur { font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: .3rem; }
