/* BEFO : feuille de style (thème sombre par défaut, thème clair disponible) */
:root {
  --fond: rgb(13, 9, 26);
  --fond2: rgb(18, 13, 36);
  --surface: rgb(26, 19, 48);
  --surface2: rgb(37, 28, 66);
  --surface3: rgb(50, 39, 86);
  --ligne: rgba(255, 255, 255, 0.08);
  --texte: rgb(246, 243, 255);
  --texte2: rgb(176, 166, 208);
  --texte3: rgb(128, 118, 160);
  --violet: rgb(139, 92, 246);
  --violet-f: rgb(108, 43, 217);
  --rose: rgb(236, 72, 153);
  --orange: rgb(251, 146, 60);
  --vert: rgb(34, 197, 94);
  --rouge: rgb(244, 63, 94);
  --jaune: rgb(250, 204, 21);
  --bleu: rgb(56, 189, 248);
  --degrade: linear-gradient(135deg, rgb(124, 58, 237) 0%, rgb(219, 39, 119) 55%, rgb(251, 146, 60) 100%);
  --degrade-doux: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(219, 39, 119, 0.18) 60%, rgba(251, 146, 60, 0.16));
  --bulle-moi: linear-gradient(135deg, rgb(124, 58, 237), rgb(200, 40, 140));
  --bulle-autre: rgb(36, 28, 64);
  --ombre: 0 10px 30px rgba(0, 0, 0, 0.35);
  --rayon: 18px;
  --haut-sur: env(safe-area-inset-top, 0px);
  --bas-sur: env(safe-area-inset-bottom, 0px);
  --police: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
:root[data-theme='clair'] {
  --fond: rgb(249, 247, 255);
  --fond2: rgb(243, 239, 253);
  --surface: rgb(255, 255, 255);
  --surface2: rgb(241, 236, 252);
  --surface3: rgb(228, 221, 248);
  --ligne: rgba(30, 15, 70, 0.09);
  --texte: rgb(22, 14, 46);
  --texte2: rgb(98, 88, 130);
  --texte3: rgb(140, 130, 170);
  --bulle-autre: rgb(255, 255, 255);
  --ombre: 0 10px 30px rgba(60, 30, 120, 0.14);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 15px; line-height: 1.45; overscroll-behavior: none; }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0.4em 0; }
.ico { flex: none; }
.ico-points { stroke-width: 3; }

/* ----- Démarrage ----- */
.demarrage { position: fixed; inset: 0; display: grid; place-items: center; background: rgb(13, 9, 26); }
.demarrage img { border-radius: 22px; animation: pulse 1.4s ease-in-out infinite; }

/* ----- Cadre : une colonne centrée sur grand écran ----- */
.cadre { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--fond); }
@media (min-width: 700px) {
  body { background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.25), transparent 40%), radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.2), transparent 45%), var(--fond2); }
  .cadre { box-shadow: 0 0 0 1px var(--ligne), 0 30px 80px rgba(0, 0, 0, 0.45); }
}
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.panneaux { position: relative; flex: 1; min-height: 0; }
.panneau { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: none; padding-bottom: 90px; -webkit-overflow-scrolling: touch; }
.panneau.visible { display: block; animation: fondu 0.22s ease; }
.p-videos { padding-bottom: 0; overflow: hidden; background: black; }

/* ----- Barre d'onglets ----- */
.onglets { display: flex; justify-content: space-around; align-items: center; padding: 6px 6px calc(6px + var(--bas-sur)); background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--ligne); position: relative; z-index: 5; }
body.mode-videos .onglets { background: rgba(0, 0, 0, 0.85); border-top-color: rgba(255, 255, 255, 0.08); color: white; }
.onglet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 4px 6px; color: var(--texte3); font-size: 11px; font-weight: 600; transition: color 0.2s, transform 0.2s; }
.onglet .ico { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.onglet.actif { color: var(--texte); }
body.mode-videos .onglet { color: rgba(255, 255, 255, 0.6); }
body.mode-videos .onglet.actif { color: white; }
.onglet.actif .ico { transform: translateY(-1px) scale(1.12); }
.onglet.actif::after { content: ''; position: absolute; bottom: -3px; width: 18px; height: 3px; border-radius: 3px; background: var(--degrade); }
.onglet.central { color: white; }
.onglet.central .ico { width: 46px; height: 32px; padding: 5px 11px; border-radius: 12px; background: var(--degrade); box-shadow: 0 6px 18px rgba(219, 39, 119, 0.4); }
.onglet.central .onglet-tx { display: none; }
.onglet.central.actif::after { display: none; }
.onglet .avatar { border: 2px solid transparent; }
.onglet.actif .avatar { border-color: var(--rose); }
.pastille-nb { position: absolute; top: 0; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: white; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fond); animation: rebond 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.cloche { position: relative; }
.cloche .pastille-nb { top: -2px; right: -2px; }

/* ----- En-têtes ----- */
.barre { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--haut-sur)) 14px 8px; background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.barre-titre { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.titre-logo { display: inline-flex; align-items: center; gap: 8px; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: 0.02em; }
.titre-logo .logo { border-radius: 8px; }
.barre-actions, .entete-actions, .rangee { display: flex; align-items: center; gap: 4px; }
.btn-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--texte); transition: background 0.2s, transform 0.15s; flex: none; }
.btn-ico:hover { background: var(--surface2); }
.btn-ico:active { transform: scale(0.9); }
.btn-ico.danger { color: var(--rouge); }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; transition: transform 0.15s, filter 0.2s, background 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn.principal { background: var(--degrade); color: white; box-shadow: 0 6px 20px rgba(219, 39, 119, 0.28); }
.btn.principal:hover { filter: brightness(1.08); }
.btn.secondaire { background: var(--surface2); color: var(--texte); }
.btn.secondaire:hover { background: var(--surface3); }
.btn.danger { background: rgba(244, 63, 94, 0.14); color: var(--rouge); }
.btn.blanc { background: white; color: rgb(80, 20, 140); }
.btn.transparent { background: rgba(255, 255, 255, 0.18); color: white; }
.btn.large { width: 100%; margin-top: 12px; min-height: 48px; font-size: 15.5px; }
.btn.petit { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.grand { flex: 1; min-height: 50px; }
.lien-btn { color: var(--rose); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.rangee-btn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rangee-btn .btn { flex: 1; }
.fab { position: absolute; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 20px; background: var(--degrade); color: white; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(219, 39, 119, 0.45); z-index: 3; transition: transform 0.2s; animation: apparition 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.panneau .fab { position: fixed; bottom: calc(84px + var(--bas-sur)); right: max(18px, calc(50% - 262px)); }
.fab.large { width: auto; padding: 0 22px; gap: 8px; display: inline-flex; align-items: center; font-weight: 800; border-radius: 18px; }
.fab:active { transform: scale(0.92); }

/* ----- Champs ----- */
.champ { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--texte); outline: none; transition: border-color 0.2s, box-shadow 0.2s; margin-top: 6px; }
.champ:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }
textarea.champ { resize: vertical; min-height: 80px; }
select.champ { appearance: none; -webkit-appearance: none; }
.etiquette { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--texte2); text-transform: uppercase; letter-spacing: 0.04em; }
.aide { color: var(--texte2); font-size: 13.5px; }
.centre { text-align: center; display: flex; flex-direction: column; align-items: center; }
.erreur-form { color: var(--rouge); font-size: 13.5px; min-height: 1em; font-weight: 600; }
.zone-recherche { display: flex; align-items: center; gap: 8px; margin: 4px 14px 8px; padding: 0 14px; border-radius: 14px; background: var(--surface2); color: var(--texte3); }
.ecran-corps > .zone-recherche { margin: 0 0 10px; }
.champ-recherche { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; min-width: 0; color: var(--texte); }
.champ-recherche::-webkit-search-cancel-button { filter: grayscale(1); }
.rangee-champ { display: flex; gap: 8px; align-items: stretch; }
.rangee-champ .champ { flex: 1; }
.rangee-champ .btn { margin-top: 6px; min-height: 48px; }
.champ-prefixe { display: flex; align-items: center; border-radius: 14px; border: 1.5px solid var(--ligne); background: var(--surface); margin-top: 6px; padding-left: 14px; color: var(--texte2); }
.champ-prefixe .champ { border: 0; margin: 0; padding-left: 4px; background: none; box-shadow: none; }
.champ-mdp { position: relative; }
.voir-mdp { position: absolute; right: 4px; top: 10px; color: var(--texte3); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-compact { background: var(--surface2); border: 0; border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 13px; max-width: 150px; }
.select-vis { display: block; margin-top: 3px; background: var(--surface2); border: 0; border-radius: 8px; padding: 4px 8px; font-size: 12.5px; font-weight: 600; }

/* ----- Puces (filtres) ----- */
.puces { display: flex; gap: 8px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.ecran-corps > .puces { padding-left: 0; padding-right: 0; }
.puce { flex: none; padding: 8px 15px; border-radius: 999px; background: var(--surface2); color: var(--texte2); font-weight: 700; font-size: 13.5px; transition: background 0.2s, color 0.2s, transform 0.15s; }
.puce:active { transform: scale(0.95); }
.puce.active { background: var(--texte); color: var(--fond); }
.puce.filtre { background: var(--degrade); color: white; }
.puce-ajout { padding: 8px 10px; display: inline-grid; place-items: center; }

/* ----- Avatars et badges ----- */
.avatar { position: relative; flex: none !important; display: inline-grid !important; flex-direction: row !important; place-items: center; align-self: center; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h), 70%, 55%), hsl(calc(var(--h) + 50), 80%, 50%)); color: white; font-weight: 800; overflow: visible; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar > span { line-height: 1; letter-spacing: -0.02em; }
.avatar .pastille { position: absolute; right: 1px; bottom: 1px; width: 26%; height: 26%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--vert); border: 2.5px solid var(--fond); }
.avatar.anneau { box-shadow: 0 0 0 2.5px var(--fond), 0 0 0 5px var(--surface3); }
.avatar.anneau.nouveau { box-shadow: 0 0 0 2.5px var(--fond), 0 0 0 5px transparent; background-clip: padding-box; }
.avatar.anneau.nouveau::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(rgb(124, 58, 237), rgb(219, 39, 119), rgb(251, 146, 60), rgb(124, 58, 237)); z-index: -1; animation: tourne 4s linear infinite; }
.avatar.anneau.plus { box-shadow: 0 0 0 3px var(--fond), 0 0 0 6px rgb(219, 39, 119); }
.avatar.anneau.nouveau, .avatar.anneau.plus { isolation: isolate; }
.nom-badges { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-weight: 700; }
.nb-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-verifie { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bleu); color: white; flex: none; }
.badge-verifie .ico { stroke-width: 3.5; }
.badge-plus { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--degrade); color: white; font-size: 12px; font-weight: 900; flex: none; line-height: 1; }
.etiq { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; background: var(--surface2); color: var(--texte2); font-size: 11.5px; font-weight: 700; }
.etiq.attente { background: rgba(250, 204, 21, 0.15); color: var(--jaune); }
.etiq.valide { background: rgba(34, 197, 94, 0.15); color: var(--vert); }
.etiq.refuse { background: rgba(244, 63, 94, 0.15); color: var(--rouge); }
.flamme { font-size: 12.5px; font-weight: 800; color: var(--orange); flex: none; }

/* ----- Accueil (connexion) ----- */
.accueil { position: absolute; inset: 0; overflow-y: auto; padding: calc(40px + var(--haut-sur)) 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bulles-fond { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bulles-fond i { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(70px); opacity: 0.45; animation: flotte 14s ease-in-out infinite alternate; }
.bulles-fond i:nth-child(1) { background: rgb(124, 58, 237); top: -80px; left: -100px; }
.bulles-fond i:nth-child(2) { background: rgb(219, 39, 119); top: 30%; right: -140px; animation-delay: -5s; }
.bulles-fond i:nth-child(3) { background: rgb(251, 146, 60); bottom: -120px; left: 10%; animation-delay: -9s; opacity: 0.3; }
.accueil > * { position: relative; z-index: 1; }
.accueil-haut { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo-anime { animation: flotteLogo 3.2s ease-in-out infinite; filter: drop-shadow(0 14px 30px rgba(219, 39, 119, 0.45)); }
.marque { font-size: 44px; font-weight: 800; letter-spacing: 0.06em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan { color: var(--texte2); max-width: 300px; font-size: 15px; }
.carte-auth { width: 100%; max-width: 400px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--ligne); border-radius: 24px; padding: 18px; box-shadow: var(--ombre); animation: monte 0.5s cubic-bezier(0.2, 0.9, 0.3, 1); }
.segments { display: flex; padding: 4px; border-radius: 14px; background: var(--surface2); }
.seg { flex: 1; padding: 10px; border-radius: 11px; font-weight: 700; color: var(--texte2); transition: background 0.2s, color 0.2s; }
.seg.active { background: var(--surface); color: var(--texte); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.atout { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); font-size: 12.5px; font-weight: 600; color: var(--texte2); }
.mention-legale { font-size: 12px; color: var(--texte3); text-align: center; max-width: 360px; }

/* ----- Liste des discussions ----- */
.liste-chats { padding: 0 6px; }
.ligne-chat { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 16px; text-align: left; transition: background 0.15s; animation: cascade 0.35s ease both; animation-delay: calc(var(--i, 0) * 25ms); }
.ligne-chat:hover, .ligne-chat:active { background: var(--surface); }
.lc-centre { flex: 1; min-width: 0; }
.lc-haut, .lc-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-nom { display: flex; align-items: center; gap: 5px; min-width: 0; font-weight: 700; font-size: 15.5px; }
.lc-type { color: var(--texte3); }
.lc-heure { color: var(--texte3); font-size: 12px; flex: none; }
.non-lu .lc-heure { color: var(--rose); font-weight: 700; }
.lc-apercu { color: var(--texte2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; display: flex; align-items: center; gap: 3px; }
.lc-apercu.ecrit { color: var(--vert); font-weight: 600; }
.non-lu .lc-apercu { color: var(--texte); font-weight: 600; }
.lc-ind { display: flex; align-items: center; gap: 4px; color: var(--texte3); flex: none; }
.nb-non-lus { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--degrade); color: white; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; animation: rebond 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.nb-non-lus.muet { background: var(--surface3); color: var(--texte2); }
.coches { display: inline-flex; color: var(--texte3); flex: none; }
.coches.lues { color: var(--bleu); }
.ligne-archives { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; color: var(--texte2); font-weight: 700; }
.ligne-archives b { margin-left: auto; color: var(--rose); }

/* ----- Écrans superposés et feuilles ----- */
.ecran { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--fond); animation: glisse 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.ecran.sortie { animation: glisseSortie 0.22s ease forwards; }
.entete { display: flex; align-items: center; gap: 4px; padding: calc(8px + var(--haut-sur)) 6px 8px; border-bottom: 1px solid var(--ligne); background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; z-index: 2; }
.entete-titre { flex: 1; min-width: 0; }
.entete-titre h2 { font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete-actions .btn { min-height: 36px; padding: 0 14px; }
.ecran-corps { flex: 1; overflow-y: auto; padding: 14px 16px calc(30px + var(--bas-sur)); -webkit-overflow-scrolling: touch; }
.ecran-corps.sans-marge { padding: 0; display: flex; flex-direction: column; }
.ecran-corps.sans-marge > * { flex-shrink: 0; }
.ecran-corps.sans-marge > .contenu-profil, .ecran-corps.sans-marge > .puces { padding-left: 14px; padding-right: 14px; }
.feuille { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.voile { position: absolute; inset: 0; background: rgba(5, 2, 15, 0.55); animation: fondu 0.2s ease; backdrop-filter: blur(2px); }
.feuille-panneau { position: relative; max-height: 86%; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + var(--bas-sur)); animation: monte 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); }
.feuille-panneau.grande { height: 86%; }
.feuille.sortie .feuille-panneau { animation: descend 0.22s ease forwards; }
.feuille.sortie .voile { animation: fonduSortie 0.22s ease forwards; }
.poignee { width: 40px; height: 5px; border-radius: 3px; background: var(--surface3); margin: 4px auto 10px; }
.feuille-titre { font-size: 17px; font-weight: 800; margin-bottom: 10px; text-align: center; }
.menu-liste { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 12px; text-align: left; font-weight: 600; font-size: 15px; transition: background 0.15s; }
.menu-item:hover, .menu-item:active { background: var(--surface2); }
.menu-item .ico { color: var(--texte2); }
.menu-item.danger, .menu-item.danger .ico { color: var(--rouge); }
.confirmation p { font-size: 15.5px; text-align: center; margin: 8px 0 4px; }
.formulaire { display: flex; flex-direction: column; gap: 4px; }

/* ----- Toasts ----- */
.toasts { position: fixed; top: calc(12px + var(--haut-sur)); left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; max-width: 480px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface3) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--ombre); font-weight: 600; font-size: 14px; animation: toastEntre 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.toast.ok { border-left: 4px solid var(--vert); }
.toast.erreur { border-left: 4px solid var(--rouge); }
.toast.sort { animation: toastSort 0.35s ease forwards; }
.toast-action { color: var(--rose); font-weight: 800; flex: none; }

/* ----- Divers ----- */
.vide { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--texte2); animation: fondu 0.4s ease; }
.vide h3 { color: var(--texte); font-size: 17px; }
.vide p { max-width: 300px; }
.vide .btn { margin-top: 8px; }
.vide-ico { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: var(--degrade-doux); color: var(--rose); margin-bottom: 4px; }
.chargement { display: flex; justify-content: center; gap: 6px; padding: 28px; }
.rond { width: 9px; height: 9px; border-radius: 50%; background: var(--degrade); animation: saute 0.9s ease-in-out infinite; }
.rond:nth-child(2) { animation-delay: 0.15s; }
.rond:nth-child(3) { animation-delay: 0.3s; }
.interrupteur { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.interrupteur input { opacity: 0; width: 0; height: 0; position: absolute; }
.curseur { position: absolute; inset: 0; border-radius: 14px; background: var(--surface3); transition: background 0.25s; cursor: pointer; }
.curseur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.interrupteur input:checked + .curseur { background: var(--degrade); }
.interrupteur input:checked + .curseur::after { transform: translateX(20px); }
.interrupteur input:disabled + .curseur { opacity: 0.5; }
.ligne-reglage { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-align: left; border-bottom: 1px solid var(--ligne); }
.ligne-reglage:last-child { border-bottom: 0; }
.lr-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--degrade-doux); color: var(--rose); flex: none; }
.lr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-txt b { font-weight: 700; font-size: 14.5px; }
.lr-txt small { color: var(--texte2); font-size: 12.5px; }
.lr-fleche { color: var(--texte3); }
.carte-bloc { background: var(--surface); border-radius: var(--rayon); padding: 6px 14px; margin: 10px 0; border: 1px solid var(--ligne); }
.carte-bloc > h3 { font-size: 14px; color: var(--texte2); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.carte-bloc > p { padding: 4px 0; }
.sous-titre { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte2); margin: 20px 4px 6px; }
.conseil { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--degrade-doux); margin: 12px 0; font-size: 13.5px; color: var(--texte); }
.conseil .ico { color: var(--rose); margin-top: 1px; }
.conseil .btn { margin-left: auto; }
.case { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface3); display: grid; place-items: center; color: transparent; flex: none; transition: all 0.2s; }
.case.cochee { background: var(--degrade); border-color: transparent; color: white; animation: rebond 0.3s; }
.case .ico { stroke-width: 3.5; }
.liste-gens { display: flex; flex-direction: column; }
.ligne-personne { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 12px; text-align: left; }
.ligne-personne:hover { background: var(--surface2); }
.lp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-txt small { color: var(--texte2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-grand { font-size: 22px; }
.actions-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.action-rapide { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); font-weight: 700; font-size: 13px; }
.ar-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--degrade); color: white; }
.choix-photo { margin: 6px auto 14px; display: block; }
.grand-avatar { position: relative; display: inline-block; }
.ga-cam { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); color: white; border: 3px solid var(--fond); }

/* ----- Conversation ----- */
.ecran-chat .ecran-corps { background: var(--fond2); position: relative; }
.ecran-chat .ecran-corps::before { content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none; background: radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.12), transparent 35%), radial-gradient(circle at 85% 75%, rgba(236, 72, 153, 0.1), transparent 40%); }
.entete-chat { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; width: 100%; }
.ec-txt { display: flex; flex-direction: column; min-width: 0; }
.ec-txt b { display: flex; align-items: center; gap: 4px; font-size: 16px; min-width: 0; }
.statut { color: var(--texte2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.statut.ecrit { color: var(--vert); font-weight: 600; }
.points-ecrit { display: inline-flex; gap: 2px; }
.points-ecrit i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: saute 1s infinite; }
.points-ecrit i:nth-child(2) { animation-delay: 0.15s; }
.points-ecrit i:nth-child(3) { animation-delay: 0.3s; }
.bandeau-chat { position: relative; z-index: 1; }
.epingle-bandeau, .abo-bandeau { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--surface); border-bottom: 1px solid var(--ligne); text-align: left; font-size: 13px; }
.epingle-bandeau span { display: flex; flex-direction: column; min-width: 0; }
.epingle-bandeau small { color: var(--texte2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epingle-bandeau .ico, .abo-bandeau .ico { color: var(--rose); }
.abo-bandeau span { flex: 1; }
.fil-msgs { flex: 1; overflow-y: auto; padding: 10px 10px 6px; position: relative; z-index: 1; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.debut-chat { align-self: center; display: flex; align-items: center; gap: 6px; margin: 8px auto 14px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--texte2); font-size: 12.5px; text-align: center; max-width: 300px; }
.sep-jour { display: flex; justify-content: center; margin: 12px 0 8px; position: sticky; top: 4px; z-index: 2; }
.sep-jour span { padding: 5px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface2) 92%, transparent); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; color: var(--texte2); text-transform: capitalize; }
.msg-systeme { align-self: center; margin: 6px 0; padding: 5px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--texte2); font-size: 12.5px; text-align: center; max-width: 85%; }
.ligne-msg { display: flex; align-items: flex-end; gap: 6px; margin-top: 7px; max-width: 100%; }
.ligne-msg.suite { margin-top: 2px; }
.ligne-msg.moi { justify-content: flex-end; }
.avatar-vide { width: 30px; flex: none; }
.av-btn { flex: none; }
.pile-bulle { display: flex; flex-direction: column; max-width: 80%; min-width: 0; }
.moi .pile-bulle { align-items: flex-end; }
.bulle { position: relative; padding: 7px 10px 6px; border-radius: 18px; background: var(--bulle-autre); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); min-width: 64px; max-width: 100%; overflow-wrap: anywhere; transition: transform 0.2s, box-shadow 0.3s; user-select: text; -webkit-user-select: text; }
:root[data-theme='clair'] .bulle { box-shadow: 0 1px 3px rgba(60, 30, 120, 0.12); }
.ligne-msg:not(.moi):not(.suite) .bulle { border-top-left-radius: 6px; }
.ligne-msg.moi:not(.suite) .bulle { border-top-right-radius: 6px; }
.moi .bulle { background: var(--bulle-moi); color: white; }
.bulle.nouveau, .nouveau .bulle { animation: bulleArrive 0.38s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ligne-msg.nouveau .bulle { animation: bulleArrive 0.38s cubic-bezier(0.3, 1.5, 0.5, 1); }
.surbrillance .bulle { box-shadow: 0 0 0 3px var(--jaune); }
.bulle-auteur { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 2px; }
.transfere { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-style: italic; opacity: 0.75; margin-bottom: 2px; }
.citation { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 6px 9px; margin-bottom: 5px; border-radius: 10px; border-left: 3px solid var(--rose); background: rgba(0, 0, 0, 0.18); font-size: 12.5px; }
.moi .citation { border-left-color: white; background: rgba(0, 0, 0, 0.18); }
.citation span { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulle-pied { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 11px; opacity: 0.75; white-space: nowrap; }
.bulle-pied i { font-style: italic; }
.moi .coches { color: rgba(255, 255, 255, 0.75); }
.moi .coches.lues { color: rgb(125, 220, 255); }
.tx-supprime { display: inline-flex; align-items: center; gap: 6px; font-style: italic; opacity: 0.7; }
.texte-riche { white-space: pre-wrap; }
.texte-riche.grand-emoji { font-size: 40px; line-height: 1.15; }
.lien { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.moi .lien { color: white; }
.mention, .hashtag { color: var(--rose); font-weight: 700; text-decoration: none; }
.moi .mention, .moi .hashtag { color: rgb(255, 220, 240); }
.corps-msg { display: flex; flex-direction: column; gap: 4px; }
.media-msg { margin: -3px -6px 2px; border-radius: 14px; overflow: hidden; display: block; max-width: 280px; background: rgba(0, 0, 0, 0.2); }
.media-msg img, .media-msg video { width: 100%; max-height: 340px; object-fit: cover; }
.media-msg.video video { object-fit: contain; background: black; }
.reactions-msg { display: inline-flex; align-items: center; gap: 1px; margin-top: -8px; padding: 2px 7px; border-radius: 12px; background: var(--surface2); border: 2px solid var(--fond2); font-size: 13px; z-index: 1; position: relative; animation: rebond 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ligne-msg:not(.moi) .reactions-msg { align-self: flex-start; margin-left: 8px; }
.ligne-msg.moi .reactions-msg { margin-right: 8px; }
.reactions-msg small { font-size: 11px; margin-left: 3px; font-weight: 700; color: var(--texte2); }
.reactions-msg.mienne { border-color: var(--rose); }
.lecteur-audio { display: flex; align-items: center; gap: 8px; min-width: 230px; padding: 2px 0; }
.la-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); flex: none; }
.bulle:not(.moi .bulle) .la-btn { background: var(--degrade); color: white; }
.la-centre { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.la-ondes { display: flex; align-items: center; gap: 2px; height: 26px; cursor: pointer; }
.la-ondes i { flex: 1; border-radius: 2px; background: currentColor; opacity: 0.35; transition: opacity 0.15s; }
.la-ondes i.joue { opacity: 1; }
.la-bas { display: flex; justify-content: space-between; align-items: center; }
.la-temps { font-size: 11.5px; opacity: 0.8; }
.la-vitesse { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); }
.fichier-msg { display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-decoration: none; min-width: 220px; }
.fm-ico { position: relative; width: 44px; height: 50px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.18); flex: none; }
.fm-ico small { position: absolute; bottom: 3px; font-size: 8.5px; font-weight: 900; }
.fm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fm-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.fm-txt small { opacity: 0.75; font-size: 12px; }
.position-msg, .annonce-msg, .appel-msg { display: flex; align-items: center; gap: 10px; text-decoration: none; text-align: left; padding: 4px 2px; min-width: 210px; }
.position-msg span, .annonce-msg > span, .appel-msg > span:last-child { display: flex; flex-direction: column; }
.position-msg small { opacity: 0.8; font-size: 12px; }
.pm-carte { width: 56px; height: 56px; border-radius: 12px; display: grid !important; place-items: center; background: linear-gradient(135deg, rgb(34, 197, 94), rgb(56, 189, 248)); color: white; flex: none; }
.annonce-msg img, .am-vide { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: rgba(0, 0, 0, 0.18); }
.annonce-msg small { opacity: 0.8; font-size: 11.5px; }
.prix { font-weight: 800; color: var(--orange); }
.moi .prix { color: rgb(255, 225, 190); }
.am-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, 0.2); color: var(--vert); flex: none; }
.appel-msg.manque .am-ico { background: rgba(244, 63, 94, 0.2); color: var(--rouge); }
.appel-msg small { opacity: 0.8; font-size: 12px; }
.contact-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 220px; }
.contact-msg > span { display: flex; flex-direction: column; flex: 1; }
.contact-msg small { opacity: 0.8; }
.contact-msg .rangee { width: 100%; gap: 6px; }
.contact-msg .rangee .btn { flex: 1; }
.story-msg { display: flex; flex-direction: column; gap: 4px; }
.story-msg small { display: flex; align-items: center; gap: 4px; opacity: 0.8; font-size: 11.5px; }
.story-msg img { width: 90px; height: 130px; object-fit: cover; border-radius: 10px; }
.sm-tx { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); font-size: 13px; }
.vue-unique { display: flex; align-items: center; gap: 8px; padding: 8px 6px; font-weight: 700; text-align: left; }
.vue-unique .ico { color: var(--orange); }
.moi .vue-unique .ico { color: white; }
.vue-unique small { opacity: 0.7; font-weight: 500; margin-left: auto; }
.vue-unique.ouverte { opacity: 0.6; }
.verrouille { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 20px; text-align: center; }
.sondage { min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.sd-q { font-size: 15px; }
.sondage > small { opacity: 0.75; font-size: 12px; margin-top: -4px; }
.sd-option { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.16); overflow: hidden; text-align: left; }
.sd-option::before { content: ''; position: absolute; inset: 0; width: var(--pc); background: rgba(255, 255, 255, 0.16); transition: width 0.5s ease; }
.sd-option > * { position: relative; }
.sd-tx { flex: 1; }
.sd-case { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; opacity: 0.8; }
.sd-option.choisie .sd-case { background: white; color: rgb(124, 58, 237); border-color: white; opacity: 1; }
.sd-total { opacity: 0.7; font-size: 12px; }
.btn-descendre { position: absolute; right: 14px; bottom: 86px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); box-shadow: var(--ombre); display: grid; place-items: center; transform: rotate(180deg); animation: apparition 0.25s ease; }
.bas-chat { position: relative; z-index: 2; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-bottom: var(--bas-sur); }
.composeur { display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px; }
.saisie-zone { flex: 1; display: flex; align-items: flex-end; background: var(--surface); border-radius: 22px; padding: 0 4px 0 14px; border: 1px solid var(--ligne); min-width: 0; }
.saisie { flex: 1; border: 0; background: none; outline: none; resize: none; padding: 11px 0; max-height: 140px; line-height: 1.35; min-width: 0; color: var(--texte); }
.saisie-zone .btn-ico { width: 38px; height: 42px; color: var(--texte2); }
.composeur > .btn-ico { height: 44px; color: var(--texte2); }
.btn-exclusif.actif { color: var(--orange) !important; background: rgba(251, 146, 60, 0.15); }
.btn-envoi { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--texte); flex: none; transition: background 0.25s, transform 0.2s; }
.btn-envoi.envoi { background: var(--degrade); color: white; box-shadow: 0 6px 18px rgba(219, 39, 119, 0.35); animation: rebond 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.btn-envoi:active { transform: scale(0.9); }
.btn-envoi.petit { width: 38px; height: 38px; }
.barre-reponse { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; animation: monte 0.2s ease; }
.barre-reponse > .ico { color: var(--rose); }
.br-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 10px; border-left: 3px solid var(--rose); }
.br-txt small { color: var(--texte2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions { display: flex; flex-direction: column; padding: 6px 10px 0; gap: 4px; max-height: 200px; overflow-y: auto; }
.suggestion { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); text-align: left; font-size: 13.5px; }
.suggestion b { color: var(--rose); }
.suggestion span { color: var(--texte2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progression-envoi { display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; font-size: 12.5px; font-weight: 600; color: var(--texte2); }
.progression-envoi b { flex: 1; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.progression-envoi i { display: block; height: 100%; width: 0; background: var(--degrade); transition: width 0.2s; }
.bas-info { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; color: var(--texte2); font-size: 13.5px; text-align: center; }
.bas-info .btn.large { margin: 0; }
.barre-enreg { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; animation: monte 0.2s ease; }
.rec-point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); animation: clignote 1s infinite; }
.rec-temps { font-variant-numeric: tabular-nums; min-width: 40px; }
.rec-ondes { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.rec-ondes i { flex: 1; height: 30%; border-radius: 2px; background: var(--degrade); animation: onde 0.9s ease-in-out infinite; }
.rec-ondes i:nth-child(3n) { animation-delay: 0.2s; }
.rec-ondes i:nth-child(3n+1) { animation-delay: 0.4s; }
.rangee-reactions { display: flex; justify-content: space-between; gap: 4px; padding: 6px 4px 12px; border-bottom: 1px solid var(--ligne); margin-bottom: 6px; }
.rangee-reactions.grande { border: 0; justify-content: space-around; }
.rx-btn { width: 46px; height: 46px; border-radius: 50%; font-size: 26px; display: grid; place-items: center; transition: transform 0.15s, background 0.2s; animation: rebond 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.rx-btn:nth-child(2) { animation-delay: 30ms; } .rx-btn:nth-child(3) { animation-delay: 60ms; } .rx-btn:nth-child(4) { animation-delay: 90ms; } .rx-btn:nth-child(5) { animation-delay: 120ms; } .rx-btn:nth-child(6) { animation-delay: 150ms; }
.rx-btn:hover { transform: scale(1.2); }
.rx-btn.choisie { background: var(--surface3); }
.rx-btn.plus { background: var(--surface2); color: var(--texte2); }
.infos-msg p { display: flex; align-items: center; gap: 8px; }
.resultats { display: flex; flex-direction: column; gap: 4px; }
.resultat-msg { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface2); text-align: left; }
.resultat-msg small { color: var(--texte2); }
.grille-apercu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.vignette { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.vignette img, .vignette video { width: 100%; height: 100%; object-fit: cover; }
.vignette.doc { padding: 8px; text-align: center; }
.vignette.doc small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.vignette.ajout { border: 2px dashed var(--surface3); background: none; color: var(--texte2); }
.vg-ico { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); color: white; }
.vg-ico.grand { width: 56px; height: 56px; }
.vg-suppr { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: white; }
.vg-principale { position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 8px; background: var(--degrade); color: white; font-size: 10.5px; font-weight: 800; }
.options-sondage { display: flex; flex-direction: column; }
.lien-invit { padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 13px; word-break: break-all; font-family: ui-monospace, monospace; }
.grille-medias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gm-case { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface2); }
.gm-case img { width: 100%; height: 100%; object-fit: cover; }
.liste-canaux { display: flex; flex-direction: column; gap: 10px; }
.carte-canal { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); }
.carte-canal.sponsorise { border-color: rgba(251, 146, 60, 0.5); }
.cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-txt b { display: flex; align-items: center; gap: 4px; }
.cc-txt small { color: var(--texte2); font-size: 12.5px; }
.cc-txt p { color: var(--texte2); font-size: 13px; margin: 4px 0 0; }

/* ----- Visionneuse ----- */
.visionneuse { position: absolute; inset: 0; z-index: 60; background: black; color: white; display: flex; flex-direction: column; animation: fondu 0.2s ease; }
.visionneuse.sortie { animation: fonduSortie 0.2s ease forwards; }
.vn-haut { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + var(--haut-sur)) 6px 6px; position: relative; z-index: 2; }
.vn-haut .btn-ico { color: white; }
.vn-compteur { font-weight: 700; font-size: 14px; }
.vn-scene { flex: 1; display: grid; place-items: center; overflow: auto; min-height: 0; }
.vn-scene img, .vn-scene video { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s; }
.vn-scene img.zoome { transform: scale(2.2); cursor: zoom-out; }
.vue-unique-mode .vn-scene img, .vue-unique-mode .vn-scene video { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.vue-unique-mode .vn-scene video { pointer-events: auto; }
.vn-legende { padding: 12px 18px calc(18px + var(--bas-sur)); max-height: 30%; overflow-y: auto; }
.vn-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: white; display: grid; place-items: center; z-index: 2; }
.vn-nav.gauche { left: 8px; } .vn-nav.droite { right: 8px; }

/* ----- Appels ----- */
.appel { position: absolute; inset: 0; z-index: 90; background: rgb(14, 8, 30); color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; animation: fondu 0.25s ease; }
.appel.sortie { animation: fonduSortie 0.3s ease forwards; }
.ap-fond { position: absolute; inset: 0; display: grid; place-items: center; filter: blur(60px) saturate(1.4); opacity: 0.6; transform: scale(2.4); }
.ap-distant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.appel:not(.video) .ap-distant, .appel:not(.video) .ap-local { opacity: 0; pointer-events: none; }
.ap-local { position: absolute; right: 14px; top: calc(80px + var(--haut-sur)); width: 108px; height: 150px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.35); z-index: 3; transform: scaleX(-1); box-shadow: var(--ombre); }
.ap-haut { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: calc(60px + var(--haut-sur)) 20px 0; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.appel.video .ap-haut { padding-top: calc(20px + var(--haut-sur)); }
.appel.video .ap-avatar { display: none; }
.ap-avatar { animation: pulseAnneau 2s ease-out infinite; border-radius: 50%; }
.ap-haut h2 { font-size: 26px; font-weight: 800; }
.ap-etat { opacity: 0.85; }
.ap-temps { font-variant-numeric: tabular-nums; font-weight: 700; }
.ap-boutons { position: relative; z-index: 2; display: flex; justify-content: center; gap: 22px; padding: 20px 20px calc(40px + var(--bas-sur)); }
.ap-btn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: white; transition: transform 0.15s, background 0.2s; }
.ap-btn:active { transform: scale(0.9); }
.ap-btn.coupe { background: white; color: rgb(30, 20, 60); }
.ap-btn.raccrocher { background: var(--rouge); }
.ap-btn.raccrocher .ico { transform: rotate(135deg); }
.ap-btn.decrocher { background: var(--vert); animation: sonne 1.2s ease-in-out infinite; }

/* ----- Fil d'actualité ----- */
.fil-defilant { padding-bottom: 20px; }
.barre-stories { display: flex; gap: 14px; padding: 8px 14px 14px; overflow-x: auto; scrollbar-width: none; }
.barre-stories::-webkit-scrollbar { display: none; }
.story-bulle { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; animation: apparition 0.35s ease both; }
.story-bulle small { font-size: 12px; font-weight: 600; color: var(--texte2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sb-av { position: relative; }
.sb-plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); color: white; border: 3px solid var(--fond); }
.carte-composer { display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 0 14px 10px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); text-align: left; color: var(--texte2); }
.carte-composer > span:nth-child(2) { flex: 1; }
.cc-ico { color: var(--vert); }
.liste-posts { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.post { position: relative; background: var(--surface); border-radius: 20px; border: 1px solid var(--ligne); overflow: hidden; animation: monte 0.35s ease both; }
.post-entete { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 6px 12px; }
.pe-auteur { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.pe-auteur > span { display: flex; flex-direction: column; min-width: 0; }
.pe-auteur small { color: var(--texte3); font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.post-texte { padding: 4px 14px 10px; font-size: 15px; }
.post-fond { min-height: 220px; display: grid; place-items: center; padding: 30px 24px; text-align: center; font-size: 22px; font-weight: 800; color: white; line-height: 1.3; }
.post-fond .mention, .post-fond .hashtag { color: white; text-decoration: underline; }
.f1 { background: linear-gradient(135deg, rgb(124, 58, 237), rgb(219, 39, 119)); }
.f2 { background: linear-gradient(135deg, rgb(251, 146, 60), rgb(236, 72, 153)); }
.f3 { background: linear-gradient(135deg, rgb(14, 165, 233), rgb(99, 102, 241)); }
.f4 { background: linear-gradient(135deg, rgb(16, 185, 129), rgb(6, 182, 212)); }
.f5 { background: linear-gradient(135deg, rgb(30, 27, 75), rgb(88, 28, 135)); }
.f6 { background: linear-gradient(135deg, rgb(244, 63, 94), rgb(250, 204, 21)); }
.f7 { background: radial-gradient(circle at 30% 20%, rgb(250, 204, 21), rgb(234, 88, 12) 60%, rgb(127, 29, 29)); }
.f8 { background: linear-gradient(160deg, rgb(15, 23, 42), rgb(51, 65, 85)); }
.grille-post { display: grid; gap: 3px; }
.grille-post.n1 { grid-template-columns: 1fr; }
.grille-post.n2 { grid-template-columns: 1fr 1fr; }
.grille-post.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.grille-post.n3 .gp-case:first-child { grid-row: span 2; }
.grille-post.n4 { grid-template-columns: 1fr 1fr; }
.grille-post.n5 { grid-template-columns: repeat(6, 1fr); }
.grille-post.n5 .gp-case:nth-child(-n+2) { grid-column: span 3; }
.grille-post.n5 .gp-case:nth-child(n+3) { grid-column: span 2; }
.gp-case { position: relative; overflow: hidden; background: var(--surface2); min-height: 120px; }
.grille-post.n1 .gp-case { max-height: 520px; }
.grille-post:not(.n1) .gp-case { aspect-ratio: 1; }
.grille-post.n3 .gp-case:first-child { aspect-ratio: auto; }
.gp-case img { width: 100%; height: 100%; object-fit: cover; }
.grille-post.n1 .gp-case img { max-height: 520px; }
.gp-plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: white; font-size: 26px; font-weight: 800; }
.post-original { display: block; width: calc(100% - 24px); margin: 0 12px 10px; border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; text-align: left; background: var(--fond2); }
.po-auteur { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.po-auteur small { color: var(--texte3); }
.post-original p { padding: 0 12px 10px; margin: 0; }
.post-stats { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; color: var(--texte2); font-size: 13px; }
.ps-reac { display: inline-flex; align-items: center; gap: 6px; }
.post-actions { display: flex; border-top: 1px solid var(--ligne); padding: 4px; }
.pa-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 12px; color: var(--texte2); font-weight: 700; font-size: 13px; transition: background 0.15s, color 0.15s; }
.pa-btn:last-child { flex: 0 0 48px; }
.pa-btn:hover { background: var(--surface2); }
.pa-btn.actif { color: var(--rose); }
.emoji-btn { font-size: 18px; }
.explosion { position: absolute; left: 50%; top: 40%; font-size: 70px; pointer-events: none; z-index: 5; transform: translate(-50%, -50%); animation: explose 0.9s ease forwards; }
.explosion.grand { font-size: 100px; }
.suggestions-gens { margin: 0 0 10px; }
.sg-titre { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px; }
.sg-defilant { display: flex; gap: 10px; overflow-x: auto; padding: 6px 14px 4px; scrollbar-width: none; }
.carte-sugg { flex: none; width: 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); text-align: center; cursor: pointer; }
.carte-sugg small { color: var(--texte3); min-height: 1em; }
.carte-sugg .btn { width: 100%; margin-top: 4px; }
.carte-sugg .nom-badges { max-width: 100%; }
.zone-comms { display: flex; flex-direction: column; height: 100%; }
.liste-comms { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
.comm { display: flex; gap: 8px; align-items: flex-start; animation: fondu 0.3s ease; }
.comm.enfant { margin-left: 42px; }
.comm-corps { flex: 1; min-width: 0; }
.comm-bulle { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 16px; background: var(--surface2); max-width: 100%; }
.comm-bulle .nom-badges { font-size: 13px; }
.comm-actions { display: flex; gap: 12px; align-items: center; padding: 2px 10px; color: var(--texte3); font-size: 12px; }
.comm-actions .lien-btn { font-size: 12px; color: var(--texte2); padding: 2px 0; }
.comm-like { display: flex; flex-direction: column; align-items: center; color: var(--texte3); font-size: 11px; padding: 8px 4px; }
.comm-like.actif { color: var(--rose); }
.comm-like.actif .ico { fill: currentColor; }
.saisie-comm { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ligne); }
.saisie-comm .champ { margin: 0; border-radius: 20px; padding: 10px 14px; }
.comm-rep { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--texte2); padding: 4px 4px 0; }
.auteur-post { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.saisie-post { width: 100%; border: 0; background: none; outline: none; resize: none; font-size: 18px; min-height: 140px; color: var(--texte); border-radius: 18px; padding: 8px 2px; }
.saisie-post.post-fond { min-height: 240px; color: white; font-size: 22px; font-weight: 800; text-align: center; padding: 60px 20px; }
.saisie-post.post-fond::placeholder { color: rgba(255, 255, 255, 0.75); }
.choix-fonds { display: flex; gap: 8px; padding: 8px 0; overflow-x: auto; }
.fond-pastille { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 3px solid transparent; transition: transform 0.15s; }
.fond-pastille.aucun { background: var(--surface2); }
.fond-pastille.actif { border-color: var(--texte); transform: scale(1.1); }
.barre-ajout { display: flex; gap: 8px; margin-top: 12px; }
.barre-ajout .btn { flex: 1; }

/* ----- Stories ----- */
.story-vue { position: absolute; inset: 0; z-index: 70; background: black; color: white; display: flex; flex-direction: column; animation: zoomEntre 0.25s ease; user-select: none; -webkit-user-select: none; }
.story-vue.sortie { animation: fonduSortie 0.2s ease forwards; }
.st-barres { position: absolute; top: calc(8px + var(--haut-sur)); left: 8px; right: 8px; display: flex; gap: 4px; z-index: 4; }
.st-barre { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.st-barre i { display: block; height: 100%; width: 0; background: white; }
.st-barre.faite i { width: 100%; }
.st-barre.active i { animation: progression linear forwards; }
.st-entete { position: absolute; top: calc(18px + var(--haut-sur)); left: 6px; right: 6px; display: flex; align-items: center; justify-content: space-between; z-index: 4; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.st-entete .btn-ico { color: white; }
.st-auteur { display: flex; align-items: center; gap: 10px; text-align: left; }
.st-auteur > span { display: flex; flex-direction: column; }
.st-auteur small { opacity: 0.8; font-size: 12px; }
.st-scene { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.st-scene img, .st-scene video { width: 100%; height: 100%; object-fit: contain; }
.st-texte { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 28px; text-align: center; font-size: 26px; font-weight: 800; line-height: 1.3; }
.st-legende { position: absolute; left: 16px; right: 16px; bottom: 30px; text-align: center; font-size: 17px; font-weight: 700; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.45); }
.st-zone { position: absolute; top: 80px; bottom: 90px; width: 35%; z-index: 3; }
.st-zone.gauche { left: 0; } .st-zone.droite { right: 0; width: 65%; }
.st-bas { position: relative; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(14px + var(--bas-sur)); }
.st-bas .btn-ico { color: white; }
.st-champ { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 24px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.3); color: white; outline: none; }
.st-champ::placeholder { color: rgba(255, 255, 255, 0.75); }
.st-rx { font-size: 26px; transition: transform 0.15s; }
.st-rx:active { transform: scale(1.4); }
.st-vues { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ecran-story .ecran-corps { display: flex; flex-direction: column; gap: 6px; }
.cs-scene { position: relative; aspect-ratio: 9 / 14; max-height: 52vh; border-radius: 22px; overflow: hidden; display: grid; place-items: center; margin: 0 auto; width: 100%; max-width: 360px; background: black; }
.cs-scene.st-texte { position: relative; inset: auto; }
.cs-scene img, .cs-scene video { width: 100%; height: 100%; object-fit: cover; }
.cs-texte { width: 100%; border: 0; background: none; outline: none; resize: none; color: white; text-align: center; font-size: 24px; font-weight: 800; }
.cs-texte::placeholder { color: rgba(255, 255, 255, 0.7); }
.cs-legende { position: absolute; left: 12px; right: 12px; bottom: 14px; border: 0; outline: none; resize: none; color: white; background: rgba(0, 0, 0, 0.45); border-radius: 14px; padding: 10px; text-align: center; font-weight: 700; }
.cs-filtres { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.cs-filtre { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--texte2); }
.cs-filtre img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; border: 2.5px solid transparent; }
.cs-filtre.actif { color: var(--texte); }
.cs-filtre.actif img { border-color: var(--rose); }
.cs-outils .choix-fonds { justify-content: center; }
.cs-sources { display: flex; gap: 8px; }
.cs-sources .btn { flex: 1; padding: 0 8px; }

/* ----- Vidéos ----- */
.flux-videos { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; background: black; }
.flux-videos::-webkit-scrollbar { display: none; }
.carte-video { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: black; color: white; overflow: hidden; }
.cv-video { width: 100%; height: 100%; object-fit: cover; }
.cv-degrade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 18%, transparent 60%, rgba(0, 0, 0, 0.7)); }
.cv-droite { position: absolute; right: 8px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 2; }
.cv-avatar { position: relative; margin-bottom: 6px; }
.cv-avatar .avatar { border: 2px solid white; }
.cv-suivre { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: white; }
.cv-action { display: flex; flex-direction: column; align-items: center; gap: 3px; color: white; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.cv-action small { font-size: 12px; font-weight: 700; }
.cv-action.aime { color: var(--rose); }
.cv-action.aime .ico, .cv-action.actif .ico { fill: currentColor; }
.cv-action.actif { color: var(--jaune); }
.cv-action.pulse .ico { animation: rebond 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
.cv-action.cadeau { color: rgb(255, 210, 120); }
.cv-bas { position: absolute; left: 14px; right: 78px; bottom: 24px; z-index: 2; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.cv-auteur { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; color: white; text-align: left; }
.cv-texte { font-size: 14px; max-height: 4.4em; overflow: hidden; }
.cv-texte .mention, .cv-texte .hashtag { color: white; }
.cv-son { display: flex; align-items: center; gap: 6px; font-size: 13px; overflow: hidden; }
.defile { white-space: nowrap; animation: defile 8s linear infinite; }
.cv-vues { opacity: 0.8; font-size: 12px; }
.btn-son { position: absolute; top: calc(64px + var(--haut-sur)); right: 10px; z-index: 3; color: white; background: rgba(0, 0, 0, 0.3); }
.cv-pause { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 0.2s; color: rgba(255, 255, 255, 0.85); }
.en-pause .cv-pause { opacity: 1; }
.vid-haut { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--haut-sur)) 8px 10px; color: white; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent); }
.vid-haut .btn-ico { color: white; }
.vid-onglets { display: flex; gap: 18px; }
.vo { font-weight: 800; font-size: 16px; color: rgba(255, 255, 255, 0.6); padding: 4px 0; position: relative; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.vo.actif { color: white; }
.vo.actif::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -2px; height: 3px; border-radius: 2px; background: white; }
.vid-publier { background: var(--degrade); }
.vid-vide, .vid-chargement { height: 100%; display: grid; place-items: center; color: white; }
.vid-vide .vide h3 { color: white; }
.ecran-video-seule .ecran-corps { background: black; position: relative; }
.video-seule { position: absolute; inset: 0; height: auto; }
.grille-cadeaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.cadeau-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 18px; background: var(--surface2); transition: transform 0.15s, background 0.2s; }
.cadeau-btn:hover { background: var(--surface3); transform: translateY(-2px); }
.cd-emoji { font-size: 38px; animation: flotteLogo 2.6s ease-in-out infinite; }
.cadeau-btn small { color: var(--orange); font-weight: 700; }
.solde-ligne { display: flex; align-items: center; gap: 6px; padding: 10px 0 0; font-weight: 600; }
.solde-ligne .btn { margin-left: auto; }
.pluie { position: absolute; top: 100%; z-index: 80; pointer-events: none; animation: pluie 2s ease-out forwards; }
.pv-apercu { aspect-ratio: 9 / 14; max-height: 46vh; margin: 0 auto 10px; border-radius: 22px; overflow: hidden; background: var(--surface); display: grid; place-items: center; position: relative; max-width: 320px; width: 100%; border: 2px dashed var(--surface3); }
.pv-apercu video { width: 100%; height: 100%; object-fit: cover; }
.pv-choisir { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--texte2); padding: 20px; text-align: center; }
.pv-choisir .ico { color: var(--rose); }
.pv-changer { position: absolute; top: 10px; right: 10px; }

/* ----- Marché ----- */
.grille-annonces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
.ecran-corps .grille-annonces, .contenu-profil .grille-annonces { padding: 0; }
.pleine-largeur { grid-column: 1 / -1; }
.carte-annonce { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--ligne); text-align: left; animation: monte 0.35s ease both; transition: transform 0.15s; }
.carte-annonce:active { transform: scale(0.98); }
.carte-annonce.vendue { opacity: 0.6; }
.ca-photo { position: relative; aspect-ratio: 1; background: var(--surface2); display: grid; place-items: center; color: var(--texte3); }
.ca-photo img { width: 100%; height: 100%; object-fit: cover; }
.ca-photo .etiq { position: absolute; top: 8px; left: 8px; }
.etiq.sponso { background: rgba(251, 146, 60, 0.9); color: white; }
.etiq.vendu { background: var(--rouge); color: white; left: auto; right: 8px; }
.ca-txt { display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 1px; }
.ca-titre { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-txt small { color: var(--texte3); font-size: 12px; }
.carrousel { position: relative; aspect-ratio: 1; background: black; display: grid; place-items: center; max-height: 60vh; }
.carrousel img { width: 100%; height: 100%; object-fit: contain; }
.ca-vide { color: var(--texte3); }
.points-photo { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.points-photo i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: all 0.2s; }
.points-photo i.actif { background: white; width: 18px; border-radius: 4px; }
.annonce-details { padding: 16px; }
.prix.grand { font-size: 26px; }
.annonce-details > h3 { font-size: 19px; margin: 4px 0 8px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* ----- Profil ----- */
.profil-zone, .ecran-corps.sans-marge { position: relative; }
.couverture { height: 130px; background: linear-gradient(135deg, hsl(var(--h), 70%, 45%), hsl(calc(var(--h) + 60), 80%, 50%) 60%, rgb(251, 146, 60)); opacity: 0.9; }
.entete-profil { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 16px 6px; }
.couverture + .entete-profil { margin-top: -56px; }
.couverture + .entete-profil .grand-avatar .avatar { border: 4px solid var(--fond); box-sizing: content-box; }
.entete-profil h2 { font-size: 22px; margin-top: 6px; }
.entete-profil h2 .nom-badges { font-weight: 800; }
.ecran-corps:not(.sans-marge) > .entete-profil { padding-top: 10px; }
.pseudo { color: var(--texte2); font-weight: 600; margin: 0; }
.bio { max-width: 380px; margin: 4px 0; color: var(--texte); }
.en-ligne { display: inline-flex; align-items: center; gap: 6px; color: var(--vert); font-size: 13px; font-weight: 700; }
.en-ligne i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); animation: clignote 2s infinite; }
.tel-profil { display: inline-flex; align-items: center; gap: 6px; color: var(--texte2); text-decoration: none; font-weight: 600; font-size: 14px; }
.stats-profil { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; width: 100%; max-width: 360px; }
.stats-profil > * { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 12px; }
.stats-profil b { font-size: 18px; font-weight: 800; }
.stats-profil small { color: var(--texte2); font-size: 12px; }
.entete-profil .rangee-btn { width: 100%; max-width: 380px; }
.raccourcis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 4px; }
.raccourci { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); text-align: left; min-width: 0; }
.raccourci > span { display: flex; flex-direction: column; min-width: 0; }
.raccourci b { font-size: 13.5px; }
.raccourci small { color: var(--texte2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raccourci > .ico { color: var(--rose); }
.raccourci.degrade-plus { grid-column: 1 / -1; background: var(--degrade); color: white; border: 0; }
.raccourci.degrade-plus small { color: rgba(255, 255, 255, 0.85); }
.raccourci.degrade-plus > .ico { color: white; }
.raccourci.admin > .ico { color: var(--bleu); }
.contenu-profil { padding: 4px 10px 20px; display: flex; flex-direction: column; gap: 10px; }
.profil-zone > .puces { padding-top: 14px; }
.grille-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gv-case { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: var(--surface2); border-radius: 6px; }
.gv-case img { width: 100%; height: 100%; object-fit: cover; }
.gv-vide { display: grid; place-items: center; height: 100%; color: var(--texte3); }
.gv-case small { position: absolute; left: 6px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; color: white; font-weight: 700; font-size: 12px; text-shadow: 0 1px 3px black; }
.carte-moi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); text-align: left; }
.carte-moi > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.carte-moi small { color: var(--texte2); }
.ligne-notif { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; text-align: left; animation: fondu 0.3s ease; }
.ligne-notif.non-lue { background: var(--degrade-doux); }
.ln-av { position: relative; flex: none; }
.ln-ico { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--violet); border: 2px solid var(--fond); }
.ln-ico.like { background: var(--rose); } .ln-ico.cadeau { background: var(--orange); } .ln-ico.abonne { background: var(--bleu); } .ln-ico.commentaire { background: var(--vert); } .ln-ico.portefeuille { background: rgb(234, 179, 8); }
.ln-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.ln-txt small { color: var(--texte3); }
.liste-atouts { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.liste-atouts li { display: flex; gap: 10px; align-items: flex-start; }
.liste-atouts .ico { color: var(--rose); margin-top: 2px; }
.bienvenue { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bienvenue h2 { margin-top: 10px; }
.faq { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--texte2); }

/* ----- Portefeuille et BEFO+ ----- */
.carte-solde { position: relative; overflow: hidden; padding: 20px; border-radius: 24px; background: var(--degrade); color: white; box-shadow: 0 14px 34px rgba(219, 39, 119, 0.35); display: flex; flex-direction: column; gap: 2px; }
.carte-solde::after { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.carte-solde small { opacity: 0.9; }
.solde { display: flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.carte-gains { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ligne); }
.carte-gains > div:first-child { display: flex; flex-direction: column; }
.carte-gains b { font-size: 20px; }
.carte-gains small { color: var(--texte2); }
.carte-gains .rangee-btn { margin: 0; }
.ligne-mvt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--ligne); }
.lm-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--texte2); }
.lm-ico.valide { background: rgba(34, 197, 94, 0.15); color: var(--vert); }
.lm-ico.attente { background: rgba(250, 204, 21, 0.15); color: var(--jaune); }
.lm-ico.refuse, .lm-ico.debit { background: rgba(244, 63, 94, 0.12); color: var(--rouge); }
.lm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lm-txt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-txt small { color: var(--texte3); font-size: 12px; }
.lm-montant.plus { color: var(--vert); }
.lm-montant.moins { color: var(--texte); }
.grille-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.pack { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 14px; background: var(--surface2); border: 2px solid transparent; transition: all 0.15s; }
.pack b { font-size: 18px; }
.pack small { color: var(--texte2); font-size: 11.5px; }
.pack.actif { border-color: var(--rose); background: var(--degrade-doux); }
.etape-paiement p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.etape-paiement select { background: var(--surface2); border: 0; border-radius: 10px; padding: 6px 8px; font-weight: 700; }
.montant-recharge { color: var(--orange); font-size: 17px; }
.numero-paiement { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; background: var(--surface2); border: 2px dashed var(--rose); font-size: 20px; letter-spacing: 0.05em; margin: 6px 0; }
.ecran-plus .ecran-corps { background: radial-gradient(circle at 50% 0%, rgba(219, 39, 119, 0.25), transparent 50%); }
.plus-haut { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 16px; }
.plus-logo { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--degrade); color: white; box-shadow: 0 14px 34px rgba(219, 39, 119, 0.4); animation: flotteLogo 3s ease-in-out infinite; }
.plus-haut h2 { font-size: 30px; font-weight: 800; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.liste-avantages { display: flex; flex-direction: column; gap: 4px; }
.avantage { display: flex; gap: 12px; align-items: center; padding: 10px 4px; animation: cascade 0.4s ease both; }
.avantage:nth-child(2) { animation-delay: 40ms; } .avantage:nth-child(3) { animation-delay: 80ms; } .avantage:nth-child(4) { animation-delay: 120ms; } .avantage:nth-child(5) { animation-delay: 160ms; } .avantage:nth-child(6) { animation-delay: 200ms; } .avantage:nth-child(7) { animation-delay: 240ms; } .avantage:nth-child(8) { animation-delay: 280ms; }
.avantage > span:last-child { display: flex; flex-direction: column; }
.avantage small { color: var(--texte2); }
.av-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--degrade-doux); color: var(--rose); flex: none; }
.offres-plus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 8px; }
.offre { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 6px 14px; border-radius: 18px; background: var(--surface); border: 2px solid var(--ligne); transition: transform 0.15s; }
.offre:active { transform: scale(0.97); }
.offre.meilleure { border-color: var(--rose); background: var(--degrade-doux); }
.offre small { color: var(--texte2); font-size: 11.5px; }
.promo { position: absolute; top: -10px; padding: 2px 8px; border-radius: 8px; background: var(--degrade); color: white; font-size: 10.5px; font-weight: 800; white-space: nowrap; }

/* ----- Carte des amis ----- */
.ecran-carte .ecran-corps { position: relative; }
.carte-leaflet { flex: 1; min-height: 300px; background: var(--surface2); }
.carte-panneau { padding: 10px 16px calc(14px + var(--bas-sur)); background: var(--surface); border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; z-index: 500; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25); max-height: 45%; overflow-y: auto; }
.amis-carte { display: flex; gap: 12px; overflow-x: auto; padding: 10px 0 4px; }
.ami-carte { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; font-size: 12px; }
.ami-carte i { color: var(--texte3); font-size: 10.5px; font-style: normal; }
.marqueur-av { background: none; border: 0; }
.marqueur { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.leaflet-container { font-family: var(--police); }

/* ----- Administration ----- */
.grille-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.stat b { font-size: 22px; font-weight: 800; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--texte2); }
.demande { padding: 12px 14px; }
.demande.attente { border-color: rgba(250, 204, 21, 0.4); }
.demande .rangee { gap: 10px; }
.demande .rangee > span:nth-child(2) { flex: 1; }

/* ----- Animations ----- */
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes fonduSortie { to { opacity: 0; } }
@keyframes glisse { from { transform: translateX(100%); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes glisseSortie { to { transform: translateX(100%); opacity: 0.4; } }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes descend { to { transform: translateY(100%); } }
@keyframes cascade { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apparition { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zoomEntre { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rebond { 0% { transform: scale(0.5); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes bulleArrive { 0% { transform: translateY(14px) scale(0.85); opacity: 0; } 70% { transform: translateY(-2px) scale(1.02); opacity: 1; } 100% { transform: none; } }
@keyframes toastEntre { from { transform: translateY(-30px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastSort { to { transform: translateY(-20px); opacity: 0; } }
@keyframes saute { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pulseAnneau { 0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); } 100% { box-shadow: 0 0 0 36px rgba(236, 72, 153, 0); } }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
@keyframes clignote { 50% { opacity: 0.25; } }
@keyframes onde { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.2); } }
@keyframes flotteLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progression { from { width: 0; } to { width: 100%; } }
@keyframes explose { 0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -110%) scale(1.3); opacity: 0; } }
@keyframes pluie { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
@keyframes defile { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *:not(.st-barre > i), *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 700px) {
  .panneau .fab { right: calc(50% - 262px); }
}
