/* pufu-pufu.com — accueil + console des talkers (2026-11-29) */
:root {
    --fond: #120f1d; --carte: #1b1730; --carte2: #231e3d; --trait: #322b55;
    --txt: #f1eefb; --doux: #a59fc4; --rose: #ff7ab8; --violet: #8f7bff; --menthe: #4fe0b5;
    --rouge: #ff6b7d; --grad: linear-gradient(135deg, #ff7ab8, #8f7bff);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; background: var(--fond); color: var(--txt);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rose); }
[hidden] { display: none !important; }

/* ================= accueil + login ================= */
.acc { display: grid; place-items: center; min-height: 100%; padding: 24px 16px; overflow: hidden; position: relative; }
.acc-fond { position: fixed; inset: 0; pointer-events: none; }
.acc-fond i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: flotte 14s ease-in-out infinite alternate; }
.acc-fond i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: #ff5aa6; }
.acc-fond i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -14vmax; background: #6c56ff; animation-delay: -5s; }
.acc-fond i:nth-child(3) { width: 26vmax; height: 26vmax; left: 50%; top: 58%; background: #26c9a0; opacity: .22; animation-delay: -9s; }
@keyframes flotte { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.1); } }
.acc-carte {
    position: relative; width: min(420px, 100%); padding: 40px 28px 26px; text-align: center;
    background: rgba(27, 23, 48, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    animation: monte .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes monte { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.acc-logo svg { filter: drop-shadow(0 10px 24px rgba(255, 122, 184, .45)); animation: pouls 3.2s ease-in-out infinite; }
@keyframes pouls { 50% { transform: translateY(-4px) scale(1.04); } }
.acc h1 {
    margin: 10px 0 28px; font-size: 34px; letter-spacing: .02em; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acc h1.petit { margin: 0 0 22px; font-size: 26px; }
.acc-btns { display: grid; gap: 14px; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%;
    min-height: 64px; padding: 12px 20px; border-radius: 18px; border: 0; text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn span { display: grid; text-align: left; line-height: 1.2; }
.btn b { font-size: 18px; }
.btn small { font-size: 12px; opacity: .8; }
.btn-vid { background: var(--grad); color: #fff; box-shadow: 0 14px 34px rgba(190, 110, 230, .45); position: relative; overflow: hidden; }
.btn-vid::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    animation: reflet 3.6s ease-in-out infinite;
}
@keyframes reflet { 55%, 100% { transform: translateX(120%); } }
.btn-log { background: rgba(255, 255, 255, .07); color: var(--txt); border: 1px solid rgba(255, 255, 255, .16); }
.btn:hover { transform: translateY(-2px); }
.btn-vid:hover { box-shadow: 0 18px 44px rgba(190, 110, 230, .6); }
.btn-log:hover { background: rgba(255, 255, 255, .13); }
.btn:active { transform: translateY(0) scale(.98); }
.acc-18 { margin: 22px 0 0; font-size: 12px; color: var(--doux); letter-spacing: .08em; }
.acc-18 a { color: var(--doux); text-decoration: none; }
.acc-18 a:hover { color: var(--txt); }
.acc-form { display: grid; gap: 14px; text-align: left; }
.acc-form label { display: grid; gap: 6px; font-size: 13px; color: var(--doux); }
.acc-form input {
    height: 50px; padding: 0 16px; border-radius: 14px; font-size: 16px; color: var(--txt);
    background: rgba(0, 0, 0, .28); border: 1px solid var(--trait); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.acc-form input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .18); }
.acc-form .btn { margin-top: 6px; background: var(--grad); border: 0; color: #fff; }
.acc-form .btn span { text-align: center; }
.acc-err {
    margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px;
    background: rgba(255, 107, 125, .14); border: 1px solid rgba(255, 107, 125, .4); color: #ffc2ca;
}

/* ================= console ================= */
.app { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.barre {
    flex: none; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px;
    background: var(--carte); border-bottom: 1px solid var(--trait);
}
.barre-m, .barre-d { display: flex; align-items: center; gap: 10px; }
.barre-m b { font-size: 17px; letter-spacing: .03em; }
.moi { color: var(--doux); font-size: 14px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etat { width: 9px; height: 9px; border-radius: 50%; background: var(--doux); }
.etat.ok { background: var(--menthe); box-shadow: 0 0 0 4px rgba(79, 224, 181, .18); }
.etat.ko { background: var(--rouge); box-shadow: 0 0 0 4px rgba(255, 107, 125, .18); }
.sortir { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--doux); transition: background .15s, color .15s; }
.sortir:hover { background: var(--carte2); color: var(--txt); }

.cadre { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; }
.liste { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--trait); background: var(--carte); }
.filles { flex: none; display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--trait); scrollbar-width: none; }
.puce { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 13px; transition: all .15s; }
.puce:hover { color: var(--txt); border-color: var(--violet); }
.puce.on { background: var(--grad); border-color: transparent; color: #fff; }
.fils { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vide { padding: 40px 20px; text-align: center; color: var(--doux); }
.ligne {
    display: flex; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: transparent;
    border: 0; border-bottom: 1px solid rgba(50, 43, 85, .6); border-left: 3px solid transparent; transition: background .15s;
}
.ligne:hover { background: var(--carte2); }
.ligne.on { background: var(--carte2); border-left-color: var(--rose); }
.av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; color: #1a1530; font-size: 18px; }
.txt { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.h time { flex: none; font-size: 12px; color: var(--doux); }
.s { display: flex; gap: 8px; align-items: center; }
.ap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); font-size: 13px; }
.ligne.att .ap { color: var(--txt); font-weight: 600; }
.nb {
    flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font: 700 12px/22px system-ui; text-align: center;
    background: var(--rose); color: #2a0f1f; animation: bat 1.6s ease-in-out infinite;
}
@keyframes bat { 50% { transform: scale(1.14); } }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { font: 600 10px/16px system-ui; padding: 0 7px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--doux); letter-spacing: .04em; }
.tag.fille { background: rgba(255, 122, 184, .16); color: #ffb3d6; }
.tag.tg { background: rgba(60, 170, 240, .18); color: #8fd0ff; }
.tag.line { background: rgba(6, 199, 85, .18); color: #7fe6a8; }

.fil { display: flex; flex-direction: column; min-height: 0; min-width: 0; background:
    radial-gradient(60vmax 40vmax at 100% 0, rgba(143, 123, 255, .08), transparent 60%), var(--fond); }
.fil-vide { margin: auto; text-align: center; color: var(--trait); }
.fil-vide p { color: var(--doux); margin: 10px 0 0; }
.fil-ouvert { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fil-tete { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--trait); background: rgba(27, 23, 48, .8); }
.retour { display: none; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--txt); }
.qui { flex: 1; min-width: 0; display: grid; }
.qui b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qui span { font-size: 12px; color: var(--doux); }
.memo-btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 13px; transition: all .15s; }
.memo-btn:hover { color: var(--txt); border-color: var(--violet); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; gap: 3px; max-width: min(78%, 620px); animation: pop .22s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg.fan { align-self: flex-start; justify-items: start; }
.msg.act { align-self: flex-end; justify-items: end; }
.msg.sys { align-self: center; max-width: 90%; font-size: 12px; color: var(--doux); text-align: center; padding: 4px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.boite { display: grid; gap: 8px; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fan .boite { background: var(--carte2); border-bottom-left-radius: 6px; }
.act .boite { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.avenir { opacity: .55; }
.msg time { font-size: 11px; color: var(--doux); padding: 0 6px; }
.piece { font-size: 13px; opacity: .9; }
.media img, .media video { display: block; max-width: min(100%, 320px); max-height: 380px; border-radius: 12px; cursor: zoom-in; background: #000; }
.choix { display: flex; gap: 8px; margin-top: 8px; }
.choix button { height: 34px; padding: 0 16px; border-radius: 17px; border: 0; font-weight: 600; font-size: 13px; transition: transform .15s, filter .15s; }
.choix button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.choix .oui { background: var(--menthe); color: #06281e; }
.choix .non { background: rgba(255, 107, 125, .2); color: #ffc2ca; }
.ecrire { flex: none; display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); background: var(--carte); }
.ecrire textarea {
    flex: 1; min-height: 46px; max-height: 160px; padding: 11px 16px; border-radius: 23px; resize: none; font-size: 16px; line-height: 1.45;
    background: rgba(0, 0, 0, .28); border: 1px solid var(--trait); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.ecrire textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .15); }
.ecrire button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; transition: transform .15s, filter .15s; }
.ecrire button:hover { transform: scale(1.06); }
.ecrire button:disabled { filter: grayscale(.7); opacity: .6; }

/* ---- les barres de défilement : fines, arrondies, aux couleurs de la console ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(143, 123, 255, .45) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    border: 3px solid transparent; border-radius: 999px; background-clip: padding-box;
    background-image: linear-gradient(180deg, rgba(255, 122, 184, .55), rgba(143, 123, 255, .55));
    background-color: transparent; min-height: 44px;
}
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, #ff7ab8, #8f7bff); }
::-webkit-scrollbar-corner { background: transparent; }
.filles::-webkit-scrollbar { display: none; }
@supports selector(::-webkit-scrollbar) { * { scrollbar-width: auto; scrollbar-color: auto; } }

/* ---- les outils du composeur ---- */
.ecrire .outil { width: 42px; height: 46px; border-radius: 14px; background: transparent; color: var(--doux); transition: background .15s, color .15s, transform .15s; }
.ecrire .outil:hover { background: var(--carte2); color: var(--txt); transform: none; }
.ecrire .outil.on { background: rgba(255, 122, 184, .16); color: var(--rose); }

/* ---- le tiroir (galerie / cadeaux), au-dessus du composeur ---- */
.tiroir { flex: none; display: flex; flex-direction: column; max-height: min(46vh, 420px); border-top: 1px solid var(--trait); background: var(--carte); animation: tire .22s ease-out both; }
@keyframes tire { from { opacity: 0; transform: translateY(10px); } }
.tiroir-t { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px 16px; }
.onglets { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.onglets .titre { font-size: 14px; }
.ferme { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--doux); font-size: 15px; transition: background .15s, color .15s; }
.ferme:hover { background: var(--carte2); color: var(--txt); }
.tiroir-c { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 14px; }
.tiroir-c .vide { padding: 22px 10px; }
.tiroir-c.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; align-content: start; }
.vig { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #0c0a15; transition: transform .15s, border-color .15s, box-shadow .15s; }
.vig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vig:hover { transform: translateY(-2px); border-color: var(--violet); }
.vig.choisi { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .22); }
.vig .duree { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 8px; font: 600 11px/18px system-ui; font-style: normal; background: rgba(0, 0, 0, .65); color: #fff; }
.vig.deja { cursor: not-allowed; }
.vig.deja img { filter: grayscale(1) brightness(.4); }
.vig.deja:hover { transform: none; border-color: transparent; }
.sceau { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 system-ui; font-style: normal; letter-spacing: .04em; color: var(--menthe); }
.tiroir-c.cadeaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cad { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 16px; border: 2px solid var(--trait); background: var(--carte2); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cad:hover { transform: translateY(-2px); border-color: var(--violet); }
.cad.choisi { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .22); }
.cad .ico { font-size: 34px; line-height: 1.1; }
.cad b { font-size: 13px; text-align: center; }
.cad i { font-style: normal; font-size: 12px; color: var(--doux); }
.tiroir-ok { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--trait); background: var(--carte2); font-size: 13px; color: #d9d3f5; }
.tiroir-ok span { flex: 1; min-width: 0; }
.go { flex: none; height: 38px; padding: 0 20px; border-radius: 19px; border: 0; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; transition: transform .15s, filter .15s; }
.go:hover { transform: translateY(-1px); filter: brightness(1.08); }
.go:disabled { filter: grayscale(.7); opacity: .6; transform: none; }
.media.elle { display: grid; gap: 6px; }
.media.elle img { max-width: min(100%, 200px); max-height: 240px; }
.piece.cadeau { font-weight: 600; }

/* ---- l'envoi groupé ---- */
.diff-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 13px; transition: all .15s; }
.diff-btn:hover { color: var(--txt); border-color: var(--violet); background: var(--carte2); }
.voile { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: voile .18s ease-out both; }
@keyframes voile { from { opacity: 0; } }
.boite-m { width: min(520px, 100%); max-height: 100%; overflow-y: auto; padding: 8px 20px 20px; border-radius: 22px; background: var(--carte); border: 1px solid var(--trait); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: monte .25s cubic-bezier(.2, .8, .2, 1) both; }
.boite-t { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.boite-t b { font-size: 18px; }
.boite-p { margin: 0 0 14px; font-size: 13px; color: var(--doux); }
.diff-filles { padding: 0 0 12px; border: 0; flex-wrap: wrap; }
.boite-m textarea { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 14px; resize: vertical; font-size: 16px; line-height: 1.5; background: rgba(0, 0, 0, .28); border: 1px solid var(--trait); outline: 0; transition: border-color .15s, box-shadow .15s; }
.boite-m textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .15); }
.diff-mode { display: flex; gap: 8px; margin-top: 14px; }
.diff-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.diff-prog[hidden] { display: none; }
.diff-prog input, .diff-prog select { height: 42px; min-width: 0; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--txt); background: rgba(0, 0, 0, .28); border: 1px solid var(--trait); outline: 0; color-scheme: dark; transition: border-color .15s, box-shadow .15s; }
.diff-prog input:focus, .diff-prog select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .15); }
.diff-prog select option { background: #1b1528; color: #fff; }
.diff-eq { grid-column: 1 / -1; min-height: 18px; font-size: 13px; color: var(--doux); }
.diff-eq.ko { color: #ffc2ca; }
.diff-liste { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); }
.diff-liste > b { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.diff-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-top: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--trait); }
.diff-ligne div { flex: 1; min-width: 0; }
.diff-ligne strong { display: block; font-size: 13px; font-weight: 600; }
.diff-ligne span { display: block; font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diff-ligne button { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 12px; transition: all .15s; }
.diff-ligne button:hover { color: #ffc2ca; border-color: #ffc2ca; }
@media (max-width: 480px) { .diff-prog { grid-template-columns: minmax(0, 1fr); } }
.diff-info { min-height: 20px; margin: 12px 2px 0; font-size: 13px; color: var(--doux); }
.diff-info.ok { color: var(--menthe); }
.diff-info.ko { color: #ffc2ca; }
.boite-b { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.plat { height: 38px; padding: 0 18px; border-radius: 19px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 14px; transition: all .15s; }
.plat:hover { color: var(--txt); border-color: var(--violet); }
@media (max-width: 800px) { .diff-btn span { display: none; } .diff-btn { width: 36px; padding: 0; justify-content: center; } .moi { max-width: 26vw; } }

/* ---- la colonne de droite : les notes ---- */
.cadre.avec-cote { grid-template-columns: 340px minmax(0, 1fr) 320px; }
.cote { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--trait); background: var(--carte); }
.cote-t { flex: none; display: flex; align-items: center; justify-content: space-between; height: 59px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--trait); }
.cote-t b { font-size: 15px; letter-spacing: .02em; }
.cote-t .ferme { display: none; }
.cote textarea {
    flex: 1 1 55%; min-height: 160px; margin: 14px 14px 0; padding: 12px 14px; border-radius: 14px; resize: none; font-size: 14px; line-height: 1.55;
    background: rgba(0, 0, 0, .28); border: 1px solid var(--trait); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.cote textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 122, 184, .15); }
.cote-b { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.cote-b span { font-size: 12px; color: var(--doux); }
.cote-b span.modif { color: #ffd27a; }
.cote-b span.ok { color: var(--menthe); }
.cote-b span.ko { color: #ffc2ca; }
.auto { flex: 0 1 auto; min-height: 0; max-height: 38%; display: flex; flex-direction: column; margin: 0 14px 14px; border-radius: 14px; background: var(--carte2); border: 1px solid var(--trait); }
.auto b { flex: none; padding: 10px 14px 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.auto div { min-height: 0; overflow-y: auto; padding: 0 14px 12px; white-space: pre-wrap; font-size: 13px; color: #d9d3f5; }
@media (min-width: 1101px) { .memo-btn { display: none; } }
@media (max-width: 1100px) {
    .cadre.avec-cote { grid-template-columns: 340px minmax(0, 1fr); }
    .cote { position: fixed; z-index: 20; top: 54px; right: 0; bottom: 0; width: min(360px, 100%); transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); }
    .cadre.cote-ouvert .cote { transform: none; }
    .cote-t .ferme { display: block; }
}

@media (max-width: 800px) {
    .cadre, .cadre.avec-cote { grid-template-columns: 1fr; }
    .tiroir-c.grille { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
    .tiroir-ok { flex-wrap: wrap; }
    .cadre .fil { display: none; }
    .cadre.vue-fil .liste { display: none; }
    .cadre.vue-fil .fil { display: flex; }
    .retour { display: grid; place-items: center; }
    .msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- les emoji (réponse + envoi groupé) ---- */
.emo { position: fixed; z-index: 60; display: flex; flex-direction: column; width: min(348px, calc(100vw - 16px)); height: min(330px, calc(100vh - 16px)); border-radius: 18px; background: var(--carte); border: 1px solid var(--trait); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; animation: monte .18s cubic-bezier(.2, .8, .2, 1) both; }
.emo[hidden] { display: none; }
.emo-t { flex: none; display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--trait); background: var(--carte2); }
.emo-t button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: transparent; font-size: 19px; line-height: 1; filter: grayscale(.6); opacity: .7; transition: all .15s; }
.emo-t button:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
.emo-t button.on { filter: none; opacity: 1; background: rgba(255, 122, 184, .18); }
.emo-c { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); align-content: start; gap: 2px; padding: 8px; }
.emo-c button { height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; font-size: 24px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; transition: background .12s, transform .12s; }
.emo-c button:hover { background: rgba(255, 255, 255, .09); transform: scale(1.18); }
.emo-c.kao { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.emo-c.kao button { height: 36px; padding: 0 8px; font-size: 14px; font-family: inherit; color: var(--txt); background: rgba(0, 0, 0, .22); white-space: nowrap; overflow: hidden; }
.emo-c.kao button:hover { transform: none; background: rgba(255, 122, 184, .18); }
.emo-c .vide { grid-column: 1 / -1; padding: 30px 10px; text-align: center; font-size: 13px; color: var(--doux); }
.emo-b { margin-left: auto; width: 36px; height: 32px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--trait); background: transparent; color: var(--doux); transition: all .15s; }
.emo-b:hover, .emo-b.on { color: var(--rose); border-color: var(--rose); background: rgba(255, 122, 184, .12); }
@media (max-width: 480px) { .ecrire { gap: 4px; padding-left: 8px; padding-right: 10px; } .ecrire .outil { width: 36px; } }
