/* tedeles — plateforme bêta. Même langage visuel que le site : blanc, bleu
   #066ce8, typographie système, traits fins. */
@font-face {
  font-family: 'MinecraftPixel';
  src: url('/assets/minecraft.ttf') format('truetype');
  font-display: swap;
}
:root {
  --ink: #066ce8;
  --text: #0a0d14;
  --muted: #5c6779;
  --line: #e6e9ef;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, -apple-system, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
}
.cta:hover { filter: brightness(1.07); }
.cta[disabled] { background: #c3cddb; cursor: not-allowed; }

/* Le bouton de la porte : gris tant que la clé est vide, puis le bleu le
   remplit de gauche à droite avec un petit rebond dès qu'on écrit. */
.gate .cta {
  position: relative;
  overflow: hidden;
  background: #c3cddb;
}
.gate .cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.2, .85, .25, 1);
}
.gate .cta span { position: relative; z-index: 1; }
.gate .cta:not([disabled])::before { transform: scaleX(1); }
.gate .cta:not([disabled]) { animation: cta-arm .38s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cta-arm {
  45% { transform: scale(1.035); }
}
.gate .cta[disabled] { cursor: not-allowed; }
.gate .cta:hover:not([disabled]) { filter: brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
  .gate .cta::before { transition-duration: .01ms; }
  .gate .cta:not([disabled]) { animation: none; }
}

/* ---- porte d'entrée ---- */
.login-body { display: grid; min-height: 100dvh; place-items: center; }
.gate { width: min(420px, 100% - 48px); text-align: center; }
.gate-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px 30px;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .04), 0 18px 40px -20px rgba(10, 13, 20, .22);
  text-align: left;
}
.gate-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}
.gate-brand canvas { width: 40px; height: 40px; display: block; }
.gate-brand span { font-size: 21px; font-weight: 640; letter-spacing: -.015em; }
.gate h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.gate-sub { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--muted);
  margin-bottom: 6px;
}
.gate input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.gate input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(6, 108, 232, .16);
}
.gate .cta { width: 100%; margin-top: 16px; }
.gate-error {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #d84a4a;
}
.gate-foot { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---- après la clé : logo au centre + chargement ---- */
.gate-card.away {
  opacity: 0;
  transform: translateY(6px) scale(.985);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.gate-load {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: #fff;
  z-index: 10;
  animation: load-in .4s ease both;
}
.gate-load[hidden] { display: none; }
.gate-load canvas { width: 78px; height: 78px; display: block; }
/* Le chargement des Windows d'antan : des petits carrés gris qu'une vague
   bleue traverse, de gauche à droite, en boucle. */
.load-blocks { display: flex; gap: 5px; }
.load-blocks i {
  width: 11px;
  height: 11px;
  border-radius: 2.5px;
  background: var(--line);
  animation: block-wave 1.9s linear infinite;
}
.load-blocks i:nth-child(1) { animation-delay: 0s; }
.load-blocks i:nth-child(2) { animation-delay: .11s; }
.load-blocks i:nth-child(3) { animation-delay: .22s; }
.load-blocks i:nth-child(4) { animation-delay: .33s; }
.load-blocks i:nth-child(5) { animation-delay: .44s; }
.load-blocks i:nth-child(6) { animation-delay: .55s; }
.load-blocks i:nth-child(7) { animation-delay: .66s; }
.load-blocks i:nth-child(8) { animation-delay: .77s; }
.load-blocks i:nth-child(9) { animation-delay: .88s; }
.load-blocks i:nth-child(10) { animation-delay: .99s; }
.load-blocks i:nth-child(11) { animation-delay: 1.1s; }
.load-blocks i:nth-child(12) { animation-delay: 1.21s; }
@keyframes block-wave {
  0%, 8% { background: var(--line); }
  16%, 34% { background: var(--ink); }
  46%, 100% { background: var(--line); }
}
.gate-load p { margin: 0; font-size: 13.5px; color: var(--muted); }
@keyframes load-in { from { opacity: 0; } }

/* ---- entrée en scène de la plateforme ----
   Jouée une fois à l'arrivée : le menu glisse, le fil se pose, le composer
   monte — dans cet ordre. Les nouveaux messages gardent leur petit pop. */
.msg { animation: msg-pop .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes msg-pop { from { opacity: 0; transform: translateY(6px); } }
body.intro .side { animation: side-in .55s cubic-bezier(.2, .8, .25, 1) both; }
body.intro .thread .msg { animation: msg-pop .5s cubic-bezier(.2, .9, .3, 1) .3s backwards; }
body.intro .composer { animation: rise-in .55s cubic-bezier(.2, .9, .3, 1) .45s backwards; }
body.intro .stage-hint { animation: fade-in .5s ease .7s backwards; }
@keyframes side-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---- la carte de bêta-testeur, format carte de bibliothèque ----
   Une vraie carte : proportions carte, épaisseur, et un flip 3D façon
   Airbnb quand elle est complète. Posée au-dessus de la plateforme sans
   voile — juste son ombre. */
.veil {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 60;
  transition: opacity .5s ease;
  /* la carte flotte, le reste de la page (dont Se déconnecter) reste vivant */
  pointer-events: none;
}
.veil .card3d, .veil .veil-hint, .veil .arcade-btn { pointer-events: auto; }
.veil.done { opacity: 0; pointer-events: none; }
.veil-stack { display: grid; justify-items: center; gap: 18px; }

.card3d {
  /* surtout pas de filter ici : un filter sur l'ancêtre aplatit le
     preserve-3d et casse le flip — l'ombre vit sur les faces */
  perspective: 1500px;
}
.idcard {
  position: relative;
  width: min(560px, calc(100vw - 40px));
  aspect-ratio: 856 / 540;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.3, .72, .25, 1);
  animation: card-in .55s cubic-bezier(.2, .9, .25, 1.08) backwards .1s; /* backwards, pas both : une animation d'opacité qui reste active aplatirait le preserve-3d */
}
.idcard.flippable { cursor: pointer; }
.idcard.flipped { transform: rotateY(180deg); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
}

/* l'épaisseur : quelques tranches empilées entre les deux faces */
.slice {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #dde3ec;
}
.slice.s1 { transform: translateZ(-2.4px); }
.slice.s2 { transform: translateZ(-1.2px); }
.slice.s3 { transform: translateZ(0); }
.slice.s4 { transform: translateZ(1.2px); }
.slice.s5 { transform: translateZ(2.4px); }

.idface {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(10, 13, 20, .07);
  box-shadow:
    0 2px 8px rgba(10, 13, 20, .08),
    0 26px 60px -14px rgba(10, 13, 20, .32);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.idface.front { transform: translateZ(3px); display: flex; flex-direction: column; }
.idface.back {
  transform: rotateY(180deg) translateZ(3px);
  display: flex;
  flex-direction: column;
}
.idback-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 26px 20px;
  max-width: 380px;
}
.idback-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.idback-duo .idcard-field[hidden] { display: none; }
/* la gravure du verso se joue à la première rotation */
.idcard.show-back .idface.back .idcard-top canvas { animation: logo-engrave .9s steps(5, end) .35s backwards; }
.idcard.show-back .idback-fields > * { animation: engrave .7s steps(4, end) backwards; }
.idcard.show-back .idback-fields > *:nth-child(1) { animation-delay: .45s; }
.idcard.show-back .idback-fields > *:nth-child(2) { animation-delay: .62s; }
.idcard.show-back .idback-fields > *:nth-child(3) { animation-delay: .79s; }
.idcard.show-back .idback-fields > *:nth-child(4) { animation-delay: .96s; }
.idcard.show-back .idback-fields span,
.idcard.show-back .idback-fields input,
.idcard.show-back .idback-fields .dd-toggle {
  animation: engrave .7s steps(4, end) backwards;
  animation-delay: inherit;
}

/* la signature : le petit carré à droite qui rend la carte unique */
.idsig {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.idsig-label {
  font-size: 10.5px;
  font-weight: 640;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.idsig-box {
  width: 150px;
  height: 116px;
  border: 1.5px dashed #c3cbd8;
  border-radius: 14px;
  background: #fff;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none; /* le doigt dessine, il ne fait pas défiler */
}
.idsig-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.idsig-clear {
  border: 0;
  background: none;
  padding: 0;
  align-self: flex-end;
  font: inherit;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.idsig-clear:hover { color: var(--text); }
.idcard.show-back .idsig-label { animation: engrave .7s steps(4, end) .96s backwards; }
.idcard.show-back .idsig-box { animation: engrave-border .7s steps(4, end) .96s backwards; }

/* l'envol : une seule rotation, la carte file dans le Portefeuille */
.veil.fly .card3d {
  animation: card-fly 1.05s cubic-bezier(.55, .05, .35, 1) forwards;
  pointer-events: none;
}
.veil.fly .arcade-btn {
  opacity: 0;
  transition: opacity .3s ease;
}
@keyframes card-fly {
  0% { transform: translate(0, 0) rotate(0turn) scale(1); opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translate(var(--fly-x, -40vw), var(--fly-y, 30vh)) rotate(-1turn) scale(.04); opacity: 0; }
}
.nav-item.wallet-pop { animation: wallet-pop .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes wallet-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* la vue Portefeuille : la carte au milieu de la scène */
.wallet-stage { display: none; }
.stage.view-wallet .work { display: none; }
.stage.view-wallet .wallet-stage {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
}
.wallet-card { display: grid; justify-items: center; }

/* consultation : une carte finie — aucune invitation d'édition visible.
   MODIFIER (à l'extérieur) réveille les champs ; la signature, elle,
   reste scellée. */
.wallet-card.consulting .idphoto-cap { display: none; }
.wallet-card.consulting .idcard label,
.wallet-card.consulting .idcard input,
.wallet-card.consulting .dd-toggle,
.wallet-card.consulting .idcard-photo,
.wallet-card.consulting .idsig { pointer-events: none; }
.wallet-card.consulting .idcard-photo,
.wallet-card.consulting .idsig-box { cursor: default; }
.wallet-card.consulting .idsig-clear { display: none; }
.idsig-box.sig-locked {
  border-color: transparent;
  cursor: default;
}

/* le faux select : une ligne de carte qui s'ouvre en panneau */
.dd-toggle {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: none;
  padding: 1px 0 3px;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.dd-toggle:hover { border-bottom-color: var(--ink); }
.dd-toggle.empty { color: var(--muted); font-weight: 500; }
.idcard-field { position: relative; }
.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px -14px rgba(10, 13, 20, .35);
}
.dd-panel[hidden] { display: none; }
.dd-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  white-space: nowrap;
  padding: 3px 0;
  cursor: pointer;
  color: var(--text);
}
.dd-row input { position: absolute; opacity: 0; pointer-events: none; }
.dd-row i {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1.5px solid #b9c4d4;
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
}
.dd-row input:checked + i {
  background: var(--ink);
  border-color: var(--ink);
}
.dd-row input:checked + i::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.idcard-top { padding: 18px 22px 0; }
.idcard-top canvas { width: 38px; height: 38px; display: block; }

.idrow {
  flex: 1;
  display: grid;
  grid-template-columns: 142px 1fr auto;
  gap: 18px;
  padding: 14px 22px 20px;
  align-items: start;
}
.idphoto-col {
  display: grid;
  justify-items: center;
  gap: 7px;
  align-self: start;
  margin-top: 2px;
}
.idcard-photo {
  width: 142px;
  height: 176px;
  padding: 0;
  border: 1.5px dashed #b9c4d4;
  border-radius: 16px;
  background: #fbfcfe;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s;
}
.idcard-photo:hover { border-color: var(--ink); }
/* photo en place, ou carte consultée : plus de pointillés autour de l'image */
.idface.front .idcard-photo.has-photo,
.wallet-card.consulting .idface.front .idcard-photo {
  border-color: transparent;
  animation: none;
}
.idface.front .idcard-photo.has-photo:hover { border-color: var(--ink); }
.wallet-card.consulting .idface.front .idcard-photo:hover { border-color: transparent; }
.idcard-photo canvas { width: 100%; height: 100%; display: block; }
.idphoto-cap {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.idphoto-cap em { font-style: normal; opacity: .75; }

.idcard-infos {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  align-self: center;
}
.idcard-field { display: flex; flex-direction: column; gap: 0; }
.idcard-field span, .idcard-line span {
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.idcard-field input {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 1px 0 3px;
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  color: var(--text);
  background: none;
  outline: none;
  transition: border-color .15s;
}
.idcard-field input:focus { border-bottom-color: var(--ink); }
.idcard-line { margin: 0; display: flex; flex-direction: column; }
.idcard-line b { font-size: 14.5px; font-weight: 620; }
.idcard-error { margin: 0; font-size: 12px; color: #d84a4a; }

.idside {
  display: grid;
  justify-items: center;
  gap: 6px;
  align-self: end;
}
.idcard-qr {
  position: relative;
  width: 92px;
  height: 92px;
}
#card-qr { width: 100%; height: 100%; display: block; }
#card-qr-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 3px #fff;
}
#card-bar { width: 92px; height: 24px; display: block; }

/* la place du tampon officiel « BÊTA-TESTEUR » (SVG fourni bientôt) */
.idcard-stamp {
  position: absolute;
  left: 22px;
  bottom: 14px;
  width: 140px;
  height: 70px;
  pointer-events: none;
}

.veil-hint[hidden] { display: none; }

/* TEMPORAIRE : outils de test à gauche de l'écran */

/* le bouton d'arcade : petit, noir, la police Minecraft en direct (elle est
   déjà pixel, on ne la re-pixelise pas), coins crantés, socle fin — et une
   lueur vive qui le traverse par crans tant qu'on n'a pas cliqué. */
.arcade-btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0d14;
  color: #fff;
  font: 700 14px 'MinecraftPixel', ui-sans-serif, system-ui, sans-serif;
  /* la police n'a qu'une graisse : on l'épaissit d'un pixel plein */
  text-shadow: 1px 0 0 currentColor;
  letter-spacing: .8px;
  padding: 8px 14px 9px;
  cursor: pointer;
  box-shadow:
    -3px 0 0 #0a0d14, 3px 0 0 #0a0d14, 0 -3px 0 #0a0d14, 0 3px 0 #0a0d14,
    -3px 7px 0 #3a4150, 3px 7px 0 #3a4150, 0 7px 0 #3a4150;
  transition: transform .09s ease, box-shadow .09s ease;
  animation: pixel-pop .26s steps(3) both;
}
/* une seule lueur, large et discrète : elle passe, puis laisse respirer */
.arcade-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 64px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32) 42%, rgba(255, 255, 255, .1) 72%, transparent);
  animation: btn-sheen 3.6s steps(14, end) infinite;
}
@keyframes btn-sheen {
  0% { left: -45%; }
  26%, 100% { left: 118%; }
}
.arcade-btn[hidden] { display: none; }
.arcade-btn:hover { filter: brightness(1.12); }
.arcade-btn.pressed, .arcade-btn:active {
  transform: translateY(4px);
  box-shadow:
    -3px 0 0 #0a0d14, 3px 0 0 #0a0d14, 0 -3px 0 #0a0d14, 0 3px 0 #0a0d14,
    -3px 3px 0 #3a4150, 3px 3px 0 #3a4150, 0 3px 0 #3a4150;
}
.arcade-btn.pressed::after, .arcade-btn.spent::after { animation: none; opacity: 0; }

/* validé : le bouton reste en place, grisé, en attente du verso */
.arcade-btn.spent {
  background: #9aa3b2;
  color: #e9edf3;
  cursor: default;
  box-shadow:
    -3px 0 0 #9aa3b2, 3px 0 0 #9aa3b2, 0 -3px 0 #9aa3b2, 0 3px 0 #9aa3b2,
    -3px 7px 0 #c3cad6, 3px 7px 0 #c3cad6, 0 7px 0 #c3cad6;
}
.arcade-btn.spent:hover { filter: none; }
@keyframes pixel-pop {
  from { opacity: 0; transform: scale(.55); }
}

/* la gravure des textes : mêmes vagues que le reste, par paliers crantés
   (steps) pour rester dans le langage pixel — aucun décalage avec le QR */
.idface.front .idcard-infos > * { animation: engrave .75s steps(4, end) backwards; }
.idface.front .idcard-infos > *:nth-child(1) { animation-delay: .38s; }
.idface.front .idcard-infos > *:nth-child(2) { animation-delay: .58s; }
.idface.front .idcard-infos > *:nth-child(3) { animation-delay: .78s; }
.idface.front .idcard-infos > *:nth-child(4) { animation-delay: .98s; }
@keyframes engrave {
  0% { color: #f0f2f6; }
  40% { color: #dde2ea; }
  70% { color: #b3bcc9; }
}
/* les libellés et valeurs portent leur propre couleur : on les grave
   explicitement, en héritant du délai de leur ligne */
.idface.front .idcard-infos > * > span,
.idface.front .idcard-infos > * > b,
.idface.front .idcard-field input {
  animation: engrave .75s steps(4, end) backwards;
  animation-delay: inherit;
}

/* les pointillés du cadre photo se gravent aussi */
.idface.front .idcard-photo { animation: engrave-border .85s steps(4, end) .35s backwards; }
@keyframes engrave-border {
  0% { border-color: #f2f4f8; }
  40% { border-color: #e4e9f0; }
  70% { border-color: #d0d7e1; }
}

/* les logos entrent dans la même gravure : apparition par crans */
#card-mark { animation: logo-engrave .95s steps(5, end) .15s backwards; }
#card-qr-mark { animation: logo-engrave .85s steps(5, end) .95s backwards; }
@keyframes logo-engrave {
  from { opacity: 0; }
}
.idphoto-cap { animation: engrave .75s steps(4, end) .5s backwards; }
.veil-hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fade-in .4s ease both;
}
.veil-hint .sep { opacity: .6; }
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* la carte au téléphone : la MÊME carte que sur ordinateur, proportions
   identiques, simplement réduite (mise à l'échelle par card.js) */
}


/* ---- la page publique d'un membre (où atterrit son QR) ---- */
.member-body { display: grid; min-height: 100dvh; place-items: center; }
.member {
  width: min(360px, 100% - 48px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.member-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -14px rgba(10, 13, 20, .3);
  margin-bottom: 12px;
}
.member h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; font-weight: 650; }
.member-num { margin: 0; font-size: 14px; font-weight: 620; color: var(--ink); letter-spacing: .04em; }
.member-since { margin: 0; font-size: 13.5px; color: var(--muted); }
.member-foot { margin-top: 26px; font-size: 12.5px; color: var(--muted); }

/* ---- la banderole d'inauguration ---- */
.ribbon {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  transition: opacity 1s ease;
}

@media (prefers-reduced-motion: reduce) {
  .msg, body.intro .side, body.intro .thread .msg,
  body.intro .composer, body.intro .stage-hint { animation: none; }
  .load-bar i { animation-duration: 2.2s; }
}

/* ---- coquille de l'app ---- */
.app-body { overflow: hidden; }
/* l'application occupe l'écran : la page ne défile jamais, seuls le fil,
   l'aperçu et le menu défilent chacun chez soi */
body.app-body { height: 100dvh; overflow: hidden; }
.shell {
  display: grid;
  grid-template-columns: auto 1fr;
  height: 100dvh;
  min-height: 0;
}

.side {
  display: flex;
  flex-direction: column;
  width: 204px;
  min-height: 0;
  overflow: hidden auto;
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  background: #fbfcfe;
  transition: width .32s cubic-bezier(.3, .8, .3, 1), padding .32s cubic-bezier(.3, .8, .3, 1);
}
.side.no-anim { transition: none; }
/* plié : un rail d'icônes */
.side.folded { width: 62px; padding: 18px 8px; }
.side.folded .nav-label { display: none; }
.side.folded .side-brand {
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 16px;
}
.side.folded .side-fold { margin-left: 0; }
.side.folded .side-fold svg { transform: rotate(180deg); }
.side.folded .nav-item { justify-content: center; gap: 0; padding: 9px 0; }
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 18px;
}
.side-brand canvas { width: 34px; height: 34px; flex: none; display: block; }
.side-brand .nav-label { font-size: 19px; font-weight: 640; letter-spacing: -.015em; }
.side-fold {
  margin-left: auto;
  width: 26px;
  height: 26px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.side-fold:hover { background: #eef2f8; color: var(--text); }
.side-fold svg { width: 16px; height: 16px; transition: transform .32s cubic-bezier(.3, .8, .3, 1); }
.nav-label { white-space: nowrap; }

.side-nav { display: grid; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover:not([disabled]) { background: #eef2f8; color: var(--text); }
.nav-item.is-active { background: #e8f0fd; color: var(--ink); font-weight: 560; }
.nav-item[disabled] { cursor: default; opacity: .6; }
.soon {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  background: #fff;
}
.side-foot { margin-top: auto; }

/* ---- scène centrale : le prompt ---- */
.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
/* l'attribut hidden gagne toujours, même contre un display posé par classe */
[hidden] { display: none !important; }

/* la scène de travail : la conversation à gauche, l'aperçu à droite */
.work {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}
.chat-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
/* sans aperçu, la conversation reste centrée comme avant */
.work:has(#preview-col[hidden]) .chat-col {
  padding: 0 max(24px, calc(50% - 430px));
}
.preview-col {
  width: 54%;
  min-width: 460px;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #eef1f7;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.preview-name {
  font-size: 13.5px;
  font-weight: 620;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-actions { display: flex; align-items: center; gap: 4px; }
.pv-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.pv-btn {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.pv-btn svg { width: 17px; height: 17px; }
.pv-btn:hover { background: #eef2f8; color: var(--text); }
.pv-btn.actif { background: #e8f0fd; color: var(--ink); }
.preview-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
}
.preview-frame-wrap {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(10, 13, 20, .35);
  transition: width .35s cubic-bezier(.3, .8, .3, 1), height .35s cubic-bezier(.3, .8, .3, 1),
    border-radius .35s, border-width .35s;
}
/* la vue téléphone : un vrai gabarit, cerclé comme un appareil */
.preview-frame-wrap.mobile {
  width: 384px;
  height: min(100%, 760px);
  border: 9px solid #10131a;
  border-radius: 34px;
}
#pv-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.code-view {
  position: absolute;
  inset: 16px;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(10, 13, 20, .35);
}
.code-files {
  width: 200px;
  flex: none;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-right: 1px solid var(--line);
  overflow: auto;
  background: #fbfcfe;
}
.code-files button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.code-files button:hover { background: #eef2f8; color: var(--text); }
.code-files button.actif { background: #e8f0fd; color: var(--ink); font-weight: 600; }
.code-files .taille { display: block; font-size: 11px; color: #9aa3b2; }
.code-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.code-nom {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-save {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 620;
  padding: 6px 14px;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.code-save:active { transform: translateY(1px); }
.code-save[disabled] { opacity: .35; cursor: default; }
.code-editor {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  padding: 14px 16px;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1c2230;
  background: #fff;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}
.code-files .point {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a13c;
  margin-left: 6px;
  vertical-align: 1px;
}

/* replié : le chat reprend toute la scène, une languette pour rouvrir */
.preview-unfold {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 74px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fbfcfe;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px -12px rgba(10, 13, 20, .35);
  transition: background .15s, color .15s, width .15s;
  z-index: 30;
}
.preview-unfold:hover { background: #eef2f8; color: var(--ink); width: 30px; }
.preview-unfold svg { width: 16px; height: 16px; }
@media (max-width: 1060px) {
  .preview-col { display: none; }
}
.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 4px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.msg.agent {
  align-self: flex-start;
  background: #f2f5fa;
  border-bottom-left-radius: 6px;
}
.msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.pending { color: var(--muted); font-style: italic; }

/* les pièces jointes du composer */
.pj-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 8px;
}
.pj-puce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 12.5px;
  box-shadow: 0 4px 12px -8px rgba(10, 13, 20, .3);
  animation: msg-pop .25s cubic-bezier(.2, .9, .3, 1);
}
.pj-puce.envoi { opacity: .55; }
.pj-nom { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pj-taille { color: var(--muted); font-size: 11.5px; }
.pj-x {
  border: 0;
  background: #eef1f6;
  color: var(--muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .12s, color .12s;
}
.pj-x:hover { background: #fdeeee; color: #d64545; }
.pj-btn {
  align-self: flex-end;
  border: 0;
  background: none;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .15s, color .15s;
}
.pj-btn svg { width: 19px; height: 19px; }
.pj-btn:hover { background: #eef2f8; color: var(--ink); }
.msg-pj {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.msg-pj a {
  color: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 3px 10px;
}
.msg-pj a:hover { background: rgba(255, 255, 255, .34); }

/* ---- les cartes de tâches : l'agent au travail ---- */
.task-card { display: grid; gap: 8px; }
.task-head { display: flex; align-items: center; gap: 10px; }
.task-status {
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.task-status.st-wait { background: #eef1f6; color: var(--muted); }
.task-status.st-run {
  background: #e8f0fd;
  color: var(--ink);
  animation: task-pulse 1.6s ease infinite;
}
.task-status.st-ask { background: #fdf3e2; color: #9a6b15; }
.task-status.st-done { background: #e5f6ec; color: #1f7a45; }
@keyframes task-pulse { 50% { opacity: .45; } }
.task-project { font-size: 12.5px; color: var(--muted); }
.task-reply { font-size: 14.5px; }
.task-link {
  justify-self: start;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.task-link:hover { text-decoration: underline; }
.task-reply a { color: var(--ink); overflow-wrap: anywhere; }
.task-livrables { display: grid; gap: 6px; justify-items: start; }
.task-fichier {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 8px 18px -10px rgba(31, 107, 255, .6);
  transition: transform .15s, box-shadow .15s;
}
.task-fichier:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(31, 107, 255, .65); }
.task-image-lien { display: block; line-height: 0; }
.task-image {
  max-width: min(320px, 100%);
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px -14px rgba(10, 13, 20, .4);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1), box-shadow .2s;
  animation: msg-pop .35s cubic-bezier(.2, .9, .3, 1);
}
.task-image:hover { transform: scale(1.015); box-shadow: 0 16px 34px -14px rgba(10, 13, 20, .45); }
.task-telecharger {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--muted);
  text-decoration: none;
}
.task-telecharger:hover { color: var(--ink); text-decoration: underline; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 10px 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .04), 0 14px 30px -18px rgba(10, 13, 20, .18);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(6, 108, 232, .14);
}
.composer textarea {
  flex: 1;
  border: 0;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: none;
  max-height: 180px;
  padding: 6px 0;
}
.send {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.send svg { width: 16px; height: 16px; }
.send[disabled] { background: #c3cddb; cursor: not-allowed; }
.stage-hint {
  margin: 8px 4px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---- le téléphone : le menu devient un tiroir, comme Claude ou ChatGPT ---- */
.menu-btn { display: none; }
.side-backdrop { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: grid;
    place-items: center;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 45;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 6px 18px -10px rgba(10, 13, 20, .35);
    transition: transform .15s;
  }
  .menu-btn:active { transform: scale(.94); }
  .menu-btn svg { width: 20px; height: 20px; }
  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 64;
    background: rgba(10, 13, 20, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .side-backdrop.ouvert { opacity: 1; pointer-events: auto; }
  .shell { grid-template-columns: 1fr; }
  .side, .side.folded {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    width: min(300px, 84vw);
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.3, .8, .3, 1);
    box-shadow: 24px 0 60px -30px rgba(10, 13, 20, .45);
  }
  .side.ouvert { transform: translateX(0); }
  /* dans le tiroir, le menu est toujours déplié : textes visibles */
  .side.folded .nav-label { display: inline; }
  .side.folded .nav-item { justify-content: flex-start; gap: 10px; padding: 9px 10px; }
  .side.folded .side-brand { flex-direction: row; gap: 10px; padding: 4px 6px 18px; }
  .side-fold { display: none; }
  .preview-unfold { display: none; }
  .chat-col { padding: 0 14px; }
  .work:has(#preview-col[hidden]) .chat-col { padding: 0 14px; }
  .stage-hint { display: none; }
  .composer { margin-bottom: 10px; }
  .thread { padding-top: 64px; }
  .msg { max-width: 92%; }
  .wallet-stage { padding-top: 50px; }
}


/* ---- la console de relais (admin), pensée pour le pouce ---- */
.relais-body {
  background: #f6f8fc;
  color: var(--text);
  min-height: 100dvh;
}
.relais {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 22px 16px 60px;
}
.relais-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.relais-tete canvas { width: 38px; height: 38px; flex: none; }
.relais-tete h1 { font-size: 20px; letter-spacing: -.01em; }
.relais-sous { font-size: 13px; color: var(--muted); }
.relais-sous a { color: var(--ink); text-decoration: none; }
.relais-sous a:hover { text-decoration: underline; }
.relais-bloc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .04), 0 14px 34px -22px rgba(10, 13, 20, .25);
  padding: 18px 16px;
  margin-bottom: 16px;
  animation: rl-pose .45s cubic-bezier(.2, .9, .3, 1) both;
}
.relais-bloc:nth-child(3) { animation-delay: .06s; }
@keyframes rl-pose { from { opacity: 0; transform: translateY(10px); } }
.relais-bloc h2 {
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rl-badge {
  font-size: 12px;
  font-weight: 640;
  background: #e8f0fd;
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
}
.rl-champ {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.rl-champ select, .rl-champ textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
  width: 100%;
}
.rl-champ select { appearance: none; }
.rl-champ textarea { resize: vertical; }
.rl-champ select:focus, .rl-champ textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px #e8f0fd;
}
.rl-envoyer {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 640;
  padding: 13px 0;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(31, 107, 255, .55);
  transition: transform .15s, opacity .15s;
}
.rl-envoyer:hover { transform: translateY(-1px); }
.rl-envoyer:active { transform: translateY(1px); }
.rl-envoyer[disabled] { opacity: .6; }
.rl-etat { font-size: 13px; margin-top: 10px; }
.rl-etat.ok { color: #1f7a45; }
.rl-etat.erreur { color: #c23c3c; }
.rl-vide { color: var(--muted); font-size: 13.5px; }
.rl-notif-texte { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.rl-badge.or { background: #fdf3e2; color: #9a6b15; }
.bz-carte { border-left: 3px solid #e8a13c; }
.bz-code {
  border: 1px dashed #d8ac5a;
  background: #fdf8ee;
  color: #9a6b15;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.bz-code:hover { background: #faeed7; }
#notif-tester { margin-top: 8px; }
.rl-liste { display: grid; gap: 12px; }
.rl-carte {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 8px;
  transition: opacity .3s, transform .3s;
}
.rl-carte.rl-parti { opacity: 0; transform: translateX(16px); }
.rl-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rl-canal {
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--muted);
}
.rl-canal.whatsapp { background: #e4f7ec; color: #1f7a45; }
.rl-canal.instagram { background: #fdeef4; color: #b0338a; }
.rl-canal.messenger { background: #e8f0fd; color: #1f6bff; }
.rl-canal.slack { background: #f3eafa; color: #6d3fa0; }
.rl-canal.email { background: #fdf3e2; color: #9a6b15; }
.rl-canal.snapchat { background: #fdf9dc; color: #8a7a00; }
.rl-question { font-size: 13px; color: var(--muted); }
.rl-reponse {
  font-size: 14.5px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 10px 12px;
}
.rl-actions { display: flex; gap: 8px; }
.rl-copier, .rl-fait {
  flex: 1;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 620;
  padding: 10px 0;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.rl-copier { background: #e8f0fd; color: var(--ink); }
.rl-copier:hover { background: #dbe8fd; }
.rl-fait { background: #e5f6ec; color: #1f7a45; }
.rl-fait:hover { background: #d8f0e2; }
.rl-copier:active, .rl-fait:active { transform: translateY(1px); }


/* la recherche de membre et le membre choisi */
.rl-champ { position: relative; }
.rl-champ input[type="search"] {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
  width: 100%;
  appearance: none;
}
.rl-champ input[type="search"]:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px #e8f0fd;
}
.rl-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px -16px rgba(10, 13, 20, .35);
  overflow: hidden;
  animation: rl-pose .18s ease both;
}
.rl-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 11px 14px;
  cursor: pointer;
  transition: background .12s;
}
.rl-suggestions button:hover { background: #eef2f8; }
.rl-suggestions button + button { border-top: 1px solid #f0f3f8; }
.rl-choisi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1.5px solid #cfe0fd;
  background: #f2f7ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14.5px;
  animation: rl-pose .2s ease both;
}
.rl-choisi button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.rl-choisi button:hover { background: #e2ecfd; color: var(--text); }
.rl-choisi-infos { display: grid; gap: 6px; min-width: 0; }
.rl-choisi-canaux { display: flex; flex-wrap: wrap; gap: 5px; }
.rl-canal.mini {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
  padding: 2px 9px;
}
.rl-sugg-nom { display: block; margin-bottom: 5px; font-weight: 600; }
.rl-suggestions button { display: grid; }
