/* Fonachat — système visuel. Clair et sombre (selon le téléphone), émeraude + or, verre, ressorts. */
@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --vert: #0FBF7F; --vert-2: #07936B; --vert-doux: rgba(15, 191, 127, .12); --or: #FFC23D; --or-2: #F5A300;
  --rouge: #F0445A; --bleu: #3B82F6;
  --fond: #F4F6F5; --fond-2: #FFFFFF; --carte: #FFFFFF; --verre: rgba(255, 255, 255, .78);
  --texte: #0B1B17; --doux: #5B6B66; --tres-doux: #8E9B97; --bord: rgba(11, 27, 23, .08); --bord-fort: rgba(11, 27, 23, .14);
  --bulle-moi: linear-gradient(135deg, #12C985, #07936B); --bulle-lui: #FFFFFF; --texte-bulle-moi: #fff;
  --ombre: 0 1px 2px rgba(11, 27, 23, .05), 0 8px 28px rgba(11, 27, 23, .07); --ombre-forte: 0 18px 50px rgba(11, 27, 23, .18);
  --degrade: linear-gradient(135deg, #19D38A, #07936B); --degrade-or: linear-gradient(135deg, #FFD45C, #F5A300);
  --r: 20px; --r-petit: 14px; --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
  --ressort: cubic-bezier(.2, 1.3, .35, 1); --doux-courbe: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #07110E; --fond-2: #0C1A16; --carte: #10211C; --verre: rgba(16, 33, 28, .78);
    --texte: #ECF5F1; --doux: #9FB3AC; --tres-doux: #6F857E; --bord: rgba(255, 255, 255, .07); --bord-fort: rgba(255, 255, 255, .13);
    --bulle-lui: #16302A; --vert-doux: rgba(15, 191, 127, .16);
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); --ombre-forte: 0 20px 60px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--texte); }
body { font: 15.5px/1.5 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--vert-2); }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.15; }
h1 { font-size: 1.9rem; font-weight: 800; } h2 { font-size: 1.2rem; font-weight: 800; } h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.doux { color: var(--doux); } .petit { font-size: .84rem; }

#app { min-height: 100dvh; }
.ecran { min-height: 100dvh; padding: calc(12px + var(--haut)) 16px calc(100px + var(--bas)); max-width: 640px; margin: 0 auto; animation: arrive .45s var(--doux-courbe) backwards; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
.entete { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; min-height: 44px; }
.entete h1 { flex: 1; }
.entete-logo { display: flex; align-items: center; gap: 8px; flex: 1; } .entete-logo img { height: 30px; width: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--degrade); color: #fff; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 8px 24px rgba(7, 147, 107, .32); transition: transform .45s var(--ressort), opacity .2s; width: 100%; }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn:disabled { opacity: .5; }
.btn.second { background: var(--carte); color: var(--texte); box-shadow: none; border: 1px solid var(--bord-fort); }
.btn.or { background: var(--degrade-or); color: #3a2600; box-shadow: 0 8px 24px rgba(245, 163, 0, .3); }
.btn.danger { background: rgba(240, 68, 90, .1); color: var(--rouge); box-shadow: none; }
.btn.auto { width: auto; } .btn.mini { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: .88rem; }
.rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--texte); transition: transform .4s var(--ressort), background .2s; }
.rond:active { transform: scale(.9); } .rond.plein { background: var(--carte); box-shadow: var(--ombre); }
.rond.vert { background: var(--degrade); color: #fff; box-shadow: 0 8px 22px rgba(7, 147, 107, .35); }

/* Champs */
.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ > span { font-size: .84rem; font-weight: 700; color: var(--doux); }
.entree, .champ input, .champ textarea, .champ select { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 1.5px solid var(--bord-fort); background: var(--fond-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 110px; resize: vertical; }
.entree:focus, .champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--vert); box-shadow: 0 0 0 4px var(--vert-doux); }
.code { letter-spacing: .5em; text-align: center; font-size: 1.6rem; font-weight: 800; }

.carte { background: var(--carte); border-radius: var(--r); padding: 16px; box-shadow: var(--ombre); border: 1px solid var(--bord); }
.pile { display: grid; gap: 12px; }
.ligne { display: flex; align-items: center; gap: 12px; }
.ligne .t { flex: 1; min-width: 0; }
.coupe { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bord-fort); font-weight: 700; font-size: .86rem; white-space: nowrap; transition: transform .4s var(--ressort); }
.puce[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: transparent; }
.defile-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.defile-x::-webkit-scrollbar { display: none; }
.badge-cert { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: 999px; background: var(--vert-doux); color: var(--vert-2); font-size: .74rem; font-weight: 800; }
.badge-cert .ic { width: 15px; height: 15px; stroke-width: 2.6; }
@media (prefers-color-scheme: dark) { .badge-cert { color: var(--vert); } }

/* Avatars */
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--degrade); overflow: hidden; position: relative; font-size: 1.1rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.petit { width: 40px; height: 40px; font-size: .95rem; } .avatar.grand { width: 96px; height: 96px; font-size: 2rem; }
.en-ligne::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2.5px solid var(--fond); }
.avatar-cadre { position: relative; flex: none; }

/* Barre d'onglets flottante */
#onglets { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--bas)); width: min(94vw, 440px); height: 66px; display: flex; padding: 6px; gap: 2px;
  border-radius: 24px; background: var(--verre); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border: 1px solid var(--bord); box-shadow: var(--ombre-forte); }
#onglets button { flex: 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--tres-doux); font-size: .7rem; font-weight: 800; position: relative; transition: color .25s, background .3s; }
#onglets button[aria-current="true"] { color: var(--vert-2); background: var(--vert-doux); }
@media (prefers-color-scheme: dark) { #onglets button[aria-current="true"] { color: var(--vert); } }
#onglets .pastille { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: .68rem; display: grid; place-items: center; }

/* Liste de discussions */
.recherche { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); margin-bottom: 14px; color: var(--tres-doux); }
.recherche input { flex: 1; border: 0; background: none; outline: none; height: 100%; color: var(--texte); }
.conv { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 18px; width: calc(100% + 16px); text-align: start; transition: background .2s, transform .4s var(--ressort); }
.conv:active { background: var(--vert-doux); transform: scale(.985); }
.conv .t { flex: 1; min-width: 0; } .conv b { display: block; font-size: 1rem; }
.conv .apercu { color: var(--doux); font-size: .9rem; display: flex; align-items: center; gap: 4px; }
.conv .droite { display: grid; justify-items: end; gap: 6px; font-size: .75rem; color: var(--tres-doux); }
.conv .nonlus { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--vert); color: #fff; font-weight: 800; font-size: .74rem; display: grid; place-items: center; }
.vide { text-align: center; padding: 50px 20px; color: var(--doux); display: grid; gap: 14px; justify-items: center; }
.vide .ic-grand { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--vert-doux); color: var(--vert-2); }
.vide .ic-grand .ic { width: 40px; height: 40px; }
.fab { position: fixed; z-index: 25; right: max(18px, calc(50% - 300px)); bottom: calc(92px + var(--bas)); width: 58px; height: 58px; border-radius: 20px; background: var(--degrade); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(7, 147, 107, .45); transition: transform .45s var(--ressort); }
.fab:active { transform: scale(.9) rotate(-6deg); }

/* Conversation */
.conversation { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--fond); }
.conv-tete { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--haut)) 8px 8px; background: var(--verre); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 5; }
.conv-tete .t { flex: 1; min-width: 0; } .conv-tete b { display: flex; align-items: center; gap: 6px; } .conv-tete small { color: var(--doux); font-size: .8rem; }
/* Bulles : ressorts physiques (transform + opacity seulement, 60 i/s), groupes façon messagerie moderne */
:root { --ressort-bulle: cubic-bezier(.2, 1.25, .4, 1); --ressort-ferme: cubic-bezier(.25, 1.1, .4, 1); }
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --ressort-bulle: linear(0, 0.051, 0.175, 0.334, 0.502, 0.659, 0.793, 0.901, 0.981, 1.035, 1.067, 1.081, 1.083, 1.076, 1.064, 1.051, 1.037, 1.024, 1.014, 1.006, 1, 0.996, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.999, 1, 1);
    --ressort-ferme: linear(0, 0.069, 0.221, 0.396, 0.562, 0.701, 0.81, 0.89, 0.945, 0.98, 1, 1.011, 1.015, 1.015, 1.013, 1.011, 1.008, 1.006, 1.004, 1.002, 1.001, 1.001, 1, 1, 1);
  }
}
.fil { flex: 1; overflow-y: auto; padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; overflow-anchor: none; }
.fil.entree > * { animation: filEntree .5s var(--doux-courbe) backwards; }
@keyframes filEntree { from { opacity: 0; transform: translateY(14px); } }
.jour { align-self: center; position: sticky; top: 6px; z-index: 2; margin: 14px 0 8px; padding: 5px 13px; border-radius: 999px; background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--doux); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.bulle { --r-grand: 20px; --r-colle: 6px; max-width: min(80%, 520px); padding: 8px 13px 6px; margin-top: 8px; border-radius: var(--r-grand); background: var(--bulle-lui); box-shadow: 0 1px 1.5px rgba(0, 0, 0, .07); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; position: relative; transform-origin: bottom left; transition: border-radius .35s var(--ressort-ferme), transform .25s var(--ressort-ferme), opacity .3s, margin .3s var(--doux-courbe); -webkit-user-select: none; user-select: none; }
.bulle.moi { align-self: flex-end; background: var(--bulle-moi); color: var(--texte-bulle-moi); transform-origin: bottom right; box-shadow: 0 2px 8px rgba(7, 147, 107, .22); }
.jour + .bulle, .chiffre-info + .bulle { margin-top: 2px; }
/* Groupes : l'angle « collé » se place côté auteur ; la dernière bulle du groupe garde l'angle-queue */
.bulle:not(.moi):not(.systeme) { border-bottom-left-radius: var(--r-colle); }
.bulle.moi { border-bottom-right-radius: var(--r-colle); }
.bulle.suite { margin-top: 0; }
.bulle.suite:not(.moi) { border-top-left-radius: var(--r-colle); }
.bulle.suite.moi { border-top-right-radius: var(--r-colle); }
/* Arrivée : la mienne s'envole du champ de saisie, la sienne éclot depuis le bord gauche */
.bulle.nouveau { animation: arriveeLui .6s var(--ressort-bulle) backwards; }
.bulle.nouveau.moi { animation: envol .62s var(--ressort-bulle) backwards; }
.bulle.nouveau.systeme { animation: arriveeSys .45s var(--ressort-ferme) backwards; }
@keyframes arriveeLui { from { opacity: 0; transform: translate(-10px, 14px) scale(.6); } 40% { opacity: 1; } }
@keyframes envol { from { opacity: 0; transform: translate(16px, 46px) scale(.55); } 35% { opacity: 1; } }
@keyframes arriveeSys { from { opacity: 0; transform: scale(.8); } }
.bulle.envoi { opacity: .82; } .bulle.envoi .meta .attente { width: 11px; height: 11px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; opacity: .8; }
.bulle.envoi .meta .attente::after { content: ""; position: absolute; left: 50%; top: 1.5px; width: 1.6px; height: 3.2px; background: currentColor; transform-origin: bottom; animation: tourne 1.4s linear infinite; }
.bulle.echec { background: var(--rouge); cursor: pointer; } .bulle.echec .meta::after { content: "Toucher pour renvoyer"; font-weight: 700; margin-left: 4px; }
.bulle[data-id]:active, .bulle.tenue { transform: scale(.965); }
.bulle.tenue { box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.bulle.part { animation: part .32s var(--doux-courbe) forwards; pointer-events: none; }
@keyframes part { to { opacity: 0; transform: scale(.6); } }
.bulle .meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: .66rem; font-variant-numeric: tabular-nums; opacity: .72; margin-top: 1px; line-height: 1.2; }
.bulle .meta .ic { width: 15px; height: 15px; }
.bulle .meta .lu { color: #b9f5ff; opacity: 1; display: inline-flex; }
.bulle .meta .pop { animation: cochePop .55s var(--ressort-bulle); }
@keyframes cochePop { 0% { transform: scale(.3); opacity: 0; } 60% { opacity: 1; } }
/* Bouton « nouveaux messages » quand on lit plus haut */
.vers-bas { position: absolute; right: 14px; bottom: calc(82px + var(--bas)); width: 42px; height: 42px; border-radius: 50%; background: var(--carte); color: var(--texte); box-shadow: var(--ombre-forte); display: grid; place-items: center; z-index: 4; transform: translateY(20px) scale(.5); opacity: 0; pointer-events: none; transition: transform .45s var(--ressort-bulle), opacity .2s; }
.vers-bas.visible { transform: none; opacity: 1; pointer-events: auto; }
.vers-bas .ic { transform: rotate(-90deg); }
.vers-bas b { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--vert); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.vers-bas b:empty { display: none; }
.bulle.media { padding: 4px; } .bulle.media img, .bulle.media video { border-radius: 16px; max-height: 340px; width: auto; min-width: 160px; object-fit: cover; }
.bulle.media .meta { position: absolute; right: 12px; bottom: 9px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.bulle.systeme { align-self: center; background: var(--vert-doux); color: var(--texte); font-size: .84rem; text-align: center; max-width: 92%; }
.bulle.supprime { font-style: italic; opacity: .6; }
.vocal { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.vocal .onde { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; }
.vocal .onde i { flex: 1; border-radius: 2px; background: currentColor; opacity: .5; }
.carte-article { display: flex; gap: 10px; align-items: center; min-width: 230px; } .carte-article img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.ecrit-indic { color: var(--vert-2); font-weight: 700; }
.saisie { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--bas)); background: var(--fond); }
.saisie .zone { flex: 1; display: flex; align-items: flex-end; gap: 4px; min-height: 50px; padding: 4px 6px 4px 14px; border-radius: 26px; background: var(--carte); box-shadow: var(--ombre); }
.saisie textarea { flex: 1; border: 0; outline: none; background: none; resize: none; max-height: 140px; padding: 12px 0; line-height: 1.35; }
.saisie .rond { width: 42px; height: 42px; color: var(--doux); }
.saisie .envoyer { width: 50px; height: 50px; }
.enregistre { color: var(--rouge); font-weight: 800; display: flex; align-items: center; gap: 8px; padding: 0 6px; flex: 1; }
.enregistre i { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); animation: clignote 1s infinite; } @keyframes clignote { 50% { opacity: .2; } }
.chiffre-info { align-self: center; max-width: 330px; margin: 6px auto 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 194, 61, .16); color: var(--texte); font-size: .76rem; text-align: center; display: flex; gap: 6px; align-items: center; }
.chiffre-info .ic { width: 16px; height: 16px; flex: none; }

/* Appel */
.appel { position: fixed; inset: 0; z-index: 100; background: #050B09; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(40px + var(--haut)) 20px calc(34px + var(--bas)); animation: arrive .3s ease backwards; }
.appel video.distant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.appel video.local { position: absolute; z-index: 3; right: 16px; top: calc(16px + var(--haut)); width: 110px; height: 160px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .25); transform: scaleX(-1); touch-action: none; }
.appel .fond-flou { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); }
.appel .infos { position: relative; z-index: 2; text-align: center; display: grid; gap: 10px; justify-items: center; }
.appel .infos .avatar { width: 124px; height: 124px; font-size: 2.8rem; box-shadow: 0 0 0 0 rgba(15, 191, 127, .5); }
.appel.sonne .infos .avatar { animation: onde 1.6s infinite; } @keyframes onde { 70% { box-shadow: 0 0 0 26px rgba(15, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 191, 127, 0); } }
.appel .infos h2 { font-size: 1.7rem; } .appel .infos p { opacity: .8; }
.appel.video-active .infos { margin-top: auto; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); } .appel.video-active .infos .avatar { display: none; }
.appel .commandes { position: relative; z-index: 2; display: flex; gap: 18px; padding: 14px 18px; border-radius: 34px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.appel .commandes button { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: transform .4s var(--ressort), background .2s; }
.appel .commandes button:active { transform: scale(.88); }
.appel .commandes button[aria-pressed="true"] { background: #fff; color: #0B1B17; }
.appel .commandes .raccrocher { background: var(--rouge); } .appel .commandes .decrocher { background: #22c55e; animation: secoue 1.2s infinite; }
@keyframes secoue { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }
.appel .commandes .ic { width: 26px; height: 26px; }
.appel .securite { position: relative; z-index: 2; font-size: .74rem; opacity: .7; display: flex; align-items: center; gap: 5px; } .appel .securite .ic { width: 14px; height: 14px; }

/* Marché */
.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.tuile-article { background: var(--carte); border-radius: 20px; overflow: hidden; box-shadow: var(--ombre); text-align: start; transition: transform .45s var(--ressort); animation: arrive .5s var(--doux-courbe) backwards; }
.tuile-article:active { transform: scale(.97); }
.tuile-article .photo { aspect-ratio: 1; background: var(--fond-2); position: relative; } .tuile-article .photo img { width: 100%; height: 100%; object-fit: cover; }
.tuile-article .photo .etat { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 700; backdrop-filter: blur(6px); }
.tuile-article .infos { padding: 10px 12px 12px; display: grid; gap: 3px; }
.tuile-article .prix { font-weight: 800; font-size: 1.05rem; color: var(--vert-2); }
@media (prefers-color-scheme: dark) { .tuile-article .prix { color: var(--vert); } }
.tuile-article .titre { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuile-article .vendeur { font-size: .74rem; color: var(--doux); display: flex; align-items: center; gap: 4px; }
.tuile-article .vendeur .ic { width: 13px; height: 13px; color: var(--vert); stroke-width: 3; }
.galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; scrollbar-width: none; }
.galerie::-webkit-scrollbar { display: none; }
.galerie img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.points { display: flex; justify-content: center; gap: 6px; margin: 10px 0; } .points i { width: 7px; height: 7px; border-radius: 50%; background: var(--bord-fort); transition: all .3s; } .points i.on { width: 20px; border-radius: 4px; background: var(--vert); }
.prix-grand { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--vert-2); }
@media (prefers-color-scheme: dark) { .prix-grand { color: var(--vert); } }
.alerte-confiance { display: flex; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 194, 61, .14); border: 1px solid rgba(245, 163, 0, .3); font-size: .86rem; }
.alerte-confiance .ic { color: var(--or-2); }
.barre-action { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--bas)); background: var(--verre); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--bord); display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.etapes { display: grid; gap: 10px; counter-reset: e; }
.etape { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord); }
.etape .num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--fond); color: var(--doux); flex: none; }
.etape.fait .num { background: var(--vert); color: #fff; } .etape.encours .num { background: var(--or); color: #3a2600; }
.photo-choix { aspect-ratio: 1.58; border-radius: 18px; border: 2px dashed var(--bord-fort); display: grid; place-items: center; color: var(--doux); overflow: hidden; background: var(--fond-2); position: relative; width: 100%; }
.photo-choix img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-choix.selfie { aspect-ratio: 1; border-radius: 50%; width: 180px; margin: 0 auto; }
.photos-article { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos-article .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: var(--fond-2); border: 1.5px dashed var(--bord-fort); display: grid; place-items: center; color: var(--doux); }
.photos-article .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos-article .ph .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }

/* Connexion */
.accueil-public { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(20px + var(--haut)) 24px calc(24px + var(--bas)); max-width: 480px; margin: 0 auto; position: relative; overflow: hidden; isolation: isolate; }
.accueil-public::before { content: ""; position: absolute; inset: -30% -40% auto; height: 70%; background: radial-gradient(closest-side, rgba(15, 191, 127, .28), transparent), radial-gradient(closest-side at 80% 60%, rgba(255, 194, 61, .22), transparent); z-index: -1; animation: halo 12s ease-in-out infinite alternate; }
@keyframes halo { to { transform: translate(8%, 6%) scale(1.1); } }
.accueil-gauche { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.accueil-public .heros { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.accueil-public .heros img.symbole { width: 108px; filter: drop-shadow(0 18px 30px rgba(7, 147, 107, .35)); animation: flotte 4s ease-in-out infinite; }
.accueil-public .marque { display: flex; align-items: center; gap: 12px; } .accueil-public .marque img.symbole { width: 64px; }
.accueil-public .marque span { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; }
@keyframes flotte { 50% { transform: translateY(-8px) rotate(-2deg); } }
.accueil-public h1 { font-size: clamp(2.3rem, 10vw, 3rem); line-height: 1.02; letter-spacing: -.05em; }
.accueil-public h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sous-titre { color: var(--doux); font-size: 1.05rem; line-height: 1.5; max-width: 520px; }
.services-accueil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.services-accueil div { display: grid; gap: 1px; padding: 12px 10px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord); animation: tuileEntre .6s var(--ressort-bulle) backwards; transition: transform .35s var(--ressort); }
.services-accueil div:hover { transform: translateY(-3px); }
.services-accueil .em { font-size: 1.5rem; } .services-accueil b { font-size: .88rem; } .services-accueil small { font-size: .7rem; color: var(--doux); line-height: 1.25; }
.carte-connexion { background: var(--carte); border: 1px solid var(--bord); border-radius: 26px; padding: 20px; box-shadow: var(--ombre-forte); display: grid; gap: 16px; }
.acces { display: grid; gap: 8px; border-top: 1px solid var(--bord); padding-top: 14px; }
.acces-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.puce-acces { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--bord-fort); font-weight: 700; font-size: .84rem; color: var(--texte); text-decoration: none; background: var(--fond-2); transition: transform .3s var(--ressort), border-color .2s; }
.puce-acces .ic { width: 16px; height: 16px; } .puce-acces:hover { transform: translateY(-2px); border-color: var(--vert); }
.puce-acces.actif { background: var(--vert-doux); color: var(--vert-2); border-color: transparent; }
.accueil-droite { display: none; }
/* Ordinateur : deux colonnes, téléphone animé à droite */
@media (min-width: 960px) {
  .accueil-public { max-width: 1200px; flex-direction: row; align-items: center; gap: 60px; padding: 40px 48px; }
  .accueil-public::before { inset: -20% -10% auto 30%; height: 90%; }
  .accueil-gauche { flex: 1.1; justify-content: center; max-width: 560px; }
  .accueil-public .heros { flex: none; }
  .accueil-public h1 { font-size: clamp(2.8rem, 5.4vh, 3.8rem); }
  .accueil-gauche { gap: 18px; } .accueil-public .heros { gap: 12px; }
  .carte-connexion { max-width: 480px; }
  .accueil-droite { display: grid; place-items: center; flex: 1; position: relative; min-height: 640px; }
  .code-etape { justify-content: center; } .code-etape .accueil-gauche { max-width: 460px; }
}
.telephone { width: 300px; height: 610px; border-radius: 46px; background: var(--fond); border: 10px solid #0b1512; box-shadow: 0 40px 90px rgba(7, 40, 30, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); display: flex; flex-direction: column; overflow: hidden; position: relative; animation: flotte 7s ease-in-out infinite; }
.telephone .encoche { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #0b1512; z-index: 2; }
.tel-tete { display: flex; align-items: center; gap: 10px; padding: 40px 14px 10px; background: var(--verre); border-bottom: 1px solid var(--bord); }
.tel-tete small { display: flex; align-items: center; gap: 3px; color: var(--vert-2); font-size: .7rem; font-weight: 700; } .tel-tete small .ic { width: 12px; height: 12px; } .tel-tete b { display: block; font-size: .9rem; }
.tel-fil { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: opacity .4s; }
.tel-fil.vide-demo { opacity: 0; }
.demo-bulle { max-width: 80%; padding: 8px 12px; border-radius: 18px; font-size: .84rem; background: var(--bulle-lui); align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); animation: arriveeLui .6s var(--ressort-bulle) backwards; transform-origin: bottom left; }
.demo-bulle.moi { align-self: flex-end; background: var(--bulle-moi); color: #fff; border-radius: 18px 18px 6px 18px; animation-name: envol; transform-origin: bottom right; }
.demo-sys { align-self: center; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--vert-doux); color: var(--vert-2); animation: arriveeSys .45s var(--ressort-ferme) backwards; }
.demo-cadeau { align-self: flex-start; font-size: 3rem; animation: rebond 1s var(--ressort); }
.demo-ecrit { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--bulle-lui); align-self: flex-start; animation: arriveeSys .3s var(--ressort-ferme); }
.demo-ecrit.moi { align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.demo-ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--tres-doux); animation: point 1.2s infinite; } .demo-ecrit i:nth-child(2) { animation-delay: .15s; } .demo-ecrit i:nth-child(3) { animation-delay: .3s; }
.tel-saisie { margin: 8px 10px 14px; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-radius: 22px; background: var(--carte); color: var(--tres-doux); font-size: .84rem; box-shadow: var(--ombre); }
.tel-saisie i { width: 34px; height: 34px; border-radius: 50%; background: var(--degrade); color: #fff; display: grid; place-items: center; } .tel-saisie .ic { width: 16px; height: 16px; }
.badge-flottant { position: absolute; padding: 10px 14px; border-radius: 16px; background: var(--verre); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--ombre-forte); font-weight: 800; font-size: .84rem; border: 1px solid var(--bord); animation: flotte 6s ease-in-out infinite; }
.badge-flottant.b1 { top: 150px; left: -40px; } .badge-flottant.b2 { top: 300px; right: -20px; animation-delay: -2s; } .badge-flottant.b3 { bottom: 70px; left: 10px; animation-delay: -4s; }

/* ---------- Vidéos ---------- */
.pub-video { position: relative; background: #000; max-height: 72vh; width: 100%; overflow: hidden; cursor: pointer; }
.pub-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-son { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); color: #fff; font-size: 1rem; }
.video-duree { position: absolute; left: 12px; bottom: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .74rem; font-weight: 700; }
.video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; transition: opacity .3s, transform .4s var(--ressort); pointer-events: none; }
.video-play .ic { width: 28px; height: 28px; fill: #fff; } .pub-video.joue .video-play { opacity: 0; transform: scale(.6); }
.apercu-video video { width: 100%; max-height: 46vh; border-radius: 18px; background: #000; margin-top: 12px; }
.progression { position: relative; height: 34px; border-radius: 12px; background: var(--fond-2); overflow: hidden; margin-top: 12px; display: grid; place-items: center; font-weight: 800; font-size: .84rem; }
.progression i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--degrade); transition: width .4s var(--doux-courbe); }
.progression span { position: relative; }
.raccourcis-fil { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.raccourci { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 1px; padding: 14px; border-radius: 22px; color: #fff; text-align: start; transition: transform .4s var(--ressort); }
.raccourci:active { transform: scale(.96); } .raccourci span { font-size: 1.4rem; } .raccourci b { font-size: 1rem; } .raccourci small { font-size: .72rem; opacity: .85; }
.raccourci.videos { background: radial-gradient(120% 120% at 100% 0%, #7c3aed, #1e1b4b); } .raccourci.direct { background: radial-gradient(120% 120% at 100% 0%, #ff4d6d, #7f1d1d); }
.raccourci::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); transform: translateX(-100%); animation: balayage 5s 1.5s ease-in-out infinite; }
/* Fil vertical plein écran */
.shorts { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; background: #000; overscroll-behavior: contain; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.shorts-tete { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--haut)) 12px 10px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.shorts-tete .rond { color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); } .shorts-tete b { font-size: 1.1rem; }
.short { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.short video { width: 100%; height: 100%; object-fit: cover; max-width: 560px; }
.short-degrade { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); pointer-events: none; }
.short-infos { position: absolute; left: 14px; right: 90px; bottom: calc(24px + var(--bas)); color: #fff; display: grid; gap: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.short-auteur { display: flex; align-items: center; gap: 10px; color: #fff; } .short-auteur .avatar { box-shadow: 0 0 0 2px #fff; }
.short-actions { position: absolute; right: 10px; bottom: calc(30px + var(--bas)); display: grid; gap: 16px; }
.short-actions button { display: grid; justify-items: center; gap: 3px; color: #fff; font-size: .72rem; font-weight: 700; font-size-adjust: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.short-actions button > :first-child { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); display: grid; place-items: center; font-size: 1.3rem; box-sizing: border-box; transition: transform .35s var(--ressort); }
.short-actions button:active > :first-child { transform: scale(.85); }
.short-actions .aime > .ic { color: #ff4d6d; fill: #ff4d6d; animation: coeur .4s var(--ressort); }
.short-pause { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ressort); pointer-events: none; }
.short-pause .ic { width: 32px; height: 32px; fill: #fff; color: #fff; } .short.en-pause .short-pause { opacity: 1; transform: none; }
/* ---------- Lives ---------- */
.titre-direct { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.titre-direct i { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 0 rgba(240, 68, 90, .6); animation: pulseRouge 1.6s infinite; }
.lives-ligne { margin-bottom: 14px; }
.live-carte { flex: none; width: 108px; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bord); position: relative; text-align: center; transition: transform .35s var(--ressort); }
.live-carte:active { transform: scale(.94); } .live-carte b { font-size: .82rem; max-width: 96px; } .live-carte small { font-size: .7rem; color: var(--doux); max-width: 96px; }
.anneau-live { padding: 3px; border-radius: 50%; background: conic-gradient(from var(--angle, 0deg), #ff4d6d, #ffc23d, #ff4d6d); animation: tourneBord 2.5s linear infinite; display: inline-grid; }
.anneau-live .avatar { box-shadow: 0 0 0 3px var(--carte); } .anneau-live.mini { padding: 2px; }
.badge-live { padding: 2px 8px; border-radius: 6px; background: var(--rouge); color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 0 14px rgba(240, 68, 90, .6); }
.live-carte .badge-live { position: absolute; top: 64px; }
.choix-creer .choix-live { background: linear-gradient(135deg, rgba(240, 68, 90, .14), rgba(255, 194, 61, .1)); }
.live { position: fixed; inset: 0; background: #000; color: #fff; overflow: hidden; z-index: 40; }
.live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .live video.miroir { transform: scaleX(-1); }
.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent 22%, transparent 55%, rgba(0, 0, 0, .7)); pointer-events: none; }
.live-tete { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(12px + var(--haut)) 12px 10px; }
.live-tete .rond { color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); } .live-tete .espace { flex: 1; }
.live-nb { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; }
.live-hote { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(10px); color: #fff; text-align: start; max-width: 55%; }
.live-hote span { display: grid; min-width: 0; } .live-hote b { font-size: .86rem; } .live-hote small { font-size: .7rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-depart { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(30px + var(--bas)); display: grid; gap: 12px; max-width: 480px; margin: 0 auto; padding: 20px; border-radius: 26px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .12); }
.live-depart .entree { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.live-depart .btn { background: linear-gradient(135deg, #ff4d6d, #e5383b); box-shadow: 0 10px 30px rgba(240, 68, 90, .45); }
.live-chat { position: absolute; z-index: 3; left: 12px; right: 90px; bottom: calc(80px + var(--bas)); max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; mask-image: linear-gradient(transparent, #000 25%); -webkit-mask-image: linear-gradient(transparent, #000 25%); scrollbar-width: none; }
.live-chat p { align-self: flex-start; max-width: 100%; padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, .38); backdrop-filter: blur(8px); font-size: .86rem; animation: arriveeLui .5s var(--ressort-bulle) backwards; }
.live-chat b { color: #8ff0c8; margin-right: 4px; } .live-chat b.hote { color: #ffd166; }
.live-saisie { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: calc(14px + var(--bas)); display: flex; gap: 8px; align-items: center; }
.live-saisie input { flex: 1; height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .4); backdrop-filter: blur(12px); color: #fff; outline: none; }
.live-saisie .rond { width: 46px; height: 46px; color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: 1.2rem; }
.live-coeurs { position: absolute; z-index: 3; right: 18px; bottom: calc(80px + var(--bas)); width: 60px; height: 50vh; pointer-events: none; }
.live-coeurs span { position: absolute; bottom: 0; font-size: 1.7rem; animation: monteCoeur 2.6s ease-out forwards; }
@keyframes monteCoeur { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translate(-30px, -48vh) scale(.9) rotate(-15deg); opacity: 0; } }
.live-cadeau-geant { position: absolute; z-index: 4; left: 50%; top: 40%; font-size: 8rem; transform: translate(-50%, -50%); animation: geantCadeau 2.4s var(--ressort) forwards; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); pointer-events: none; }
.live-attente { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 30px; background: rgba(0, 0, 0, .55); }
/* Bandeau de stats du direct : durée, spectateurs, cœurs, cadeaux (chaque chiffre « pulse » quand il change) */
.live-stats { position: absolute; z-index: 3; top: calc(64px + var(--haut)); left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.live-tete .live-stats { position: static; flex-wrap: nowrap; }
.live-stats .badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: .74rem; }
.live-stats .badge-live b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.live-stats .live-nb { display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.live-nb.dore { background: linear-gradient(135deg, rgba(255, 194, 61, .55), rgba(245, 163, 0, .45)); color: #fff; }
.pulse { animation: pulseStat .45s var(--ressort-bulle); } @keyframes pulseStat { 40% { transform: scale(1.18); } }
/* Bouton cadeau bien visible (spectateurs) */
.live-offrir { position: absolute; z-index: 3; right: 12px; bottom: calc(76px + var(--bas)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-size: 1.05rem; color: #3a2600;
  background: linear-gradient(135deg, #FFD45C, #F5A300); box-shadow: 0 10px 30px rgba(245, 163, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); animation: flotte 3s ease-in-out infinite; transition: transform .3s var(--ressort); }
.live-offrir:active { transform: scale(.92); } .live-offrir b { font-size: .92rem; }
.spectateur .live-coeurs { bottom: calc(140px + var(--bas)); }
/* Outils de la personne en direct (à droite) */
.live-outils { position: absolute; z-index: 3; right: 12px; top: calc(120px + var(--haut)); display: grid; gap: 10px; }
.live-outils .rond { width: 46px; height: 46px; color: #fff; background: rgba(0, 0, 0, .4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .15); transition: background .2s, transform .3s var(--ressort); }
.live-outils .rond.coupe-on { background: var(--rouge); } .live-outils .rond:active { transform: scale(.9); }
.live-qualite { font-size: .76rem; opacity: .8; text-align: center; }
.msg-cadeau { color: #ffd166; } .msg-arrivee { opacity: .75; font-size: .8rem; }
.live-cadeau-geant { display: grid; justify-items: center; } .live-cadeau-geant small { font-size: 1rem; font-weight: 800; background: rgba(0, 0, 0, .5); padding: 4px 12px; border-radius: 999px; margin-top: -10px; }
/* Image : plein écran sur téléphone ; sur ordinateur, image entière au centre avec un fond flou (comme une régie) */
.live-fond { display: none; }
@media (min-width: 768px) {
  .live video#camera, .live video#ecran-live { object-fit: contain; z-index: 1; }
  .live-fond { display: block; position: absolute; inset: -40px; width: calc(100% + 80px) !important; height: calc(100% + 80px) !important; object-fit: cover; filter: blur(40px) brightness(.55) saturate(1.3); }
  .live.spectateur { background: radial-gradient(circle at 50% 30%, #1a2e28, #000 70%); }
  .live-chat { right: auto; width: 360px; } .live-saisie { right: auto; width: 460px; }
}
.live-tete, .live-stats, .live-chat, .live-saisie, .live-outils, .live-offrir, .live-coeurs, .live-depart { z-index: 3; }
.live-son { position: absolute; z-index: 4; top: calc(70px + var(--haut)); left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #111; font-weight: 800; box-shadow: var(--ombre-forte); }

/* ---------- Version ordinateur de l'appli : onglets en barre latérale, contenu plus large ---------- */
@media (min-width: 1024px) {
  #onglets:not([hidden]) { left: 18px; top: 50%; bottom: auto; transform: translateY(-50%); width: 84px; height: auto; flex-direction: column; padding: 10px 8px; gap: 6px; border-radius: 28px; }
  #onglets button { flex: none; height: 64px; }
  #onglets .creer-onglet { width: auto; height: 64px; }
  body:has(#onglets:not([hidden])) #app { padding-left: 110px; }
  .ecran { max-width: 760px; padding-bottom: 60px; }
  .fab { bottom: 32px; right: max(32px, calc(50% - 380px + 55px)); }
  .conversation { max-width: 980px; border-left: 1px solid var(--bord); border-right: 1px solid var(--bord); }
  .hub-grille { grid-template-columns: repeat(8, 1fr); }
  .hub-duo .hub-carte { min-height: 190px; }
  .grille-articles { grid-template-columns: repeat(3, 1fr); }
}
.atouts { display: grid; gap: 10px; margin: 6px 0 10px; }
.atouts div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.atouts .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--vert-doux); color: var(--vert-2); }

/* Feuille (bas d'écran) */
.voile { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; animation: voile .25s ease backwards; }
@keyframes voile { from { background: rgba(0, 0, 0, 0); } }
.feuille { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--fond-2); border-radius: 28px 28px 0 0; padding: 10px 18px calc(20px + var(--bas)); animation: monte .45s var(--ressort) backwards; }
@keyframes monte { from { transform: translateY(100%); } }
.feuille .poignee { width: 42px; height: 5px; border-radius: 3px; background: var(--bord-fort); margin: 0 auto 14px; }
.menu-liste { display: grid; } .menu-liste button { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--bord); text-align: start; }
.menu-liste button.rouge { color: var(--rouge); }

#toast { position: fixed; z-index: 200; left: 50%; top: calc(14px + var(--haut)); transform: translateX(-50%); max-width: 90vw; padding: 12px 18px; border-radius: 16px; background: var(--texte); color: var(--fond); font-weight: 700; font-size: .9rem; box-shadow: var(--ombre-forte); animation: toast .4s var(--ressort) backwards; }
@keyframes toast { from { transform: translate(-50%, -30px); opacity: 0; } }
.chargeur { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--vert-doux); border-top-color: var(--vert); animation: tourne .8s linear infinite; margin: 30px auto; } @keyframes tourne { to { transform: rotate(360deg); } }
.squelette { background: linear-gradient(90deg, var(--carte) 25%, var(--fond-2) 50%, var(--carte) 75%); background-size: 200% 100%; animation: brille 1.2s infinite; border-radius: 14px; } @keyframes brille { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 900px) { .ecran { padding-top: 28px; } }

/* ===================== Réseau social ===================== */
.barre-stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 4px 16px 12px; }
.barre-stories::-webkit-scrollbar { display: none; }
.story-rond { flex: none; width: 72px; display: grid; justify-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--doux); }
.story-rond .anneau { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #19D38A, #FFC23D, #F5A300, #07936B, #19D38A); transition: transform .4s var(--ressort); }
.story-rond.vue .anneau { background: var(--bord-fort); }
.story-rond .anneau .avatar { width: 100%; height: 100%; border: 3px solid var(--fond); }
.story-rond:active .anneau { transform: scale(.92); }
.story-rond .plus-story { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; border: 3px solid var(--fond); }
.story-rond .plus-story .ic { width: 14px; height: 14px; stroke-width: 3; }
.story-rond .nom { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pub { background: var(--carte); border-radius: 24px; box-shadow: var(--ombre); border: 1px solid var(--bord); margin-bottom: 14px; overflow: hidden; animation: arrive .5s var(--doux-courbe) backwards; }
.pub-tete { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 14px; }
.pub-tete .t { flex: 1; min-width: 0; } .pub-tete b { display: flex; align-items: center; gap: 5px; font-size: .95rem; } .pub-tete small { color: var(--tres-doux); font-size: .76rem; }
.pub-texte { padding: 0 16px 10px; white-space: pre-wrap; word-wrap: break-word; }
.pub-fond { margin: 0 12px 10px; min-height: 220px; border-radius: 20px; display: grid; place-items: center; padding: 28px; text-align: center; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: pre-wrap; }
.fond-vert { background: linear-gradient(135deg, #19D38A, #07936B); } .fond-or { background: linear-gradient(135deg, #FFD45C, #F5A300); color: #3a2600; }
.fond-nuit { background: linear-gradient(135deg, #0B1B17, #1d3a32); } .fond-corail { background: linear-gradient(135deg, #FF8A65, #F0445A); }
.fond-ocean { background: linear-gradient(135deg, #22D3EE, #2563EB); } .fond-violet { background: linear-gradient(135deg, #A78BFA, #7C3AED); } .fond-soleil { background: linear-gradient(135deg, #FDE047, #F97316); color: #3a1a00; }
.pub-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--fond-2); position: relative; }
.pub-photos::-webkit-scrollbar { display: none; }
.pub-photos img { flex: none; width: 100%; max-height: 560px; object-fit: cover; scroll-snap-align: center; }
.pub-compte-photos { position: absolute; right: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .74rem; font-weight: 700; }
.pub-actions { display: flex; align-items: center; gap: 2px; padding: 6px 8px; }
.pub-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; font-weight: 700; font-size: .88rem; color: var(--doux); transition: transform .4s var(--ressort), background .2s; }
.pub-actions button:active { transform: scale(.88); background: var(--vert-doux); }
.pub-actions .aime { color: var(--rouge); } .pub-actions .aime .ic { fill: var(--rouge); animation: coeur .45s var(--ressort); }
@keyframes coeur { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } }
.pub-actions .espace { flex: 1; }
.sponsor { font-size: .72rem; font-weight: 800; color: var(--or-2); display: inline-flex; align-items: center; gap: 4px; }
.badge-officiel { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 5px; border-radius: 999px; background: linear-gradient(135deg, #FFD45C, #F5A300); color: #3a2600; font-size: .7rem; font-weight: 800; }
.badge-officiel .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.coeur-geant { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%); color: #fff; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .4)); pointer-events: none; animation: geant .8s var(--ressort) forwards; }
.coeur-geant .ic { width: 100%; height: 100%; fill: #fff; stroke: none; }
@keyframes geant { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 40% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.carte-produit { margin: 0 12px 10px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--fond); border: 1px solid var(--bord); text-align: start; width: calc(100% - 24px); }
.carte-produit img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.carte-produit .btn { width: auto; min-height: 38px; padding: 0 14px; font-size: .84rem; margin-left: auto; }
.suggestions-ligne { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px 6px; }
.suggestion { flex: none; width: 150px; padding: 16px 12px; border-radius: 22px; background: var(--carte); box-shadow: var(--ombre); display: grid; justify-items: center; gap: 6px; text-align: center; }
.suggestion b { font-size: .88rem; max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion .btn { min-height: 36px; font-size: .82rem; margin-top: 4px; }
.carte-invite { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(15, 191, 127, .14), rgba(255, 194, 61, .14)); margin-bottom: 14px; }

/* Visionneuse de stories */
.visionneuse { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: flex; flex-direction: column; animation: arrive .25s ease backwards; touch-action: none; user-select: none; }
.visionneuse .barres { display: flex; gap: 4px; padding: calc(10px + var(--haut)) 10px 8px; position: relative; z-index: 3; }
.visionneuse .barres i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.visionneuse .barres i b { display: block; height: 100%; width: 0; background: #fff; }
.visionneuse .tete { display: flex; align-items: center; gap: 10px; padding: 4px 12px; position: relative; z-index: 3; }
.visionneuse .tete .t { flex: 1; } .visionneuse .tete small { opacity: .7; }
.visionneuse .scene { position: absolute; inset: 0; display: grid; place-items: center; }
.visionneuse .scene img { width: 100%; height: 100%; object-fit: contain; }
.visionneuse .scene .texte-story { padding: 30px; font-size: 1.7rem; font-weight: 800; text-align: center; white-space: pre-wrap; letter-spacing: -.02em; }
.visionneuse .scene.fond-texte { inset: 0; }
.visionneuse .legende { position: absolute; left: 0; right: 0; bottom: calc(96px + var(--bas)); text-align: center; padding: 10px 20px; font-size: 1.1rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); z-index: 3; }
.visionneuse .bas { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(14px + var(--bas)); display: flex; gap: 10px; align-items: center; z-index: 3; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.visionneuse .bas input { flex: 1; height: 48px; border-radius: 24px; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; padding: 0 18px; outline: none; }
.visionneuse .autocollant { position: absolute; z-index: 3; left: 50%; bottom: calc(160px + var(--bas)); transform: translateX(-50%) rotate(-2deg); background: #fff; color: #0B1B17; border-radius: 18px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-weight: 800; }
.visionneuse .zone-g, .visionneuse .zone-d { position: absolute; top: 0; bottom: 0; z-index: 2; } .visionneuse .zone-g { left: 0; width: 33%; } .visionneuse .zone-d { right: 0; width: 67%; }

/* Profil public */
.profil-tete { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0 16px; }
.compteurs { display: flex; gap: 6px; width: 100%; justify-content: center; }
.compteurs button { flex: 1; max-width: 110px; padding: 8px 4px; border-radius: 16px; display: grid; }
.compteurs b { font-size: 1.25rem; font-weight: 800; } .compteurs span { font-size: .78rem; color: var(--doux); }
.grille-pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -16px; }
.grille-pubs button { aspect-ratio: 1; overflow: hidden; position: relative; background: var(--fond-2); }
.grille-pubs img { width: 100%; height: 100%; object-fit: cover; }
.grille-pubs .mini-texte { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: .72rem; font-weight: 800; color: #fff; text-align: center; overflow: hidden; }
.indice { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--vert-doux); color: var(--vert-2); }
.indice i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; color: #fff; background: var(--degrade); }
@media (prefers-color-scheme: dark) { .indice { color: var(--vert); } }
.choix-creer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-creer button { padding: 18px 14px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); display: grid; gap: 8px; justify-items: start; text-align: start; transition: transform .4s var(--ressort); }
.choix-creer button:active { transform: scale(.96); }
.choix-creer .ic { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--vert-doux); color: var(--vert-2); }
.choix-creer b { font-size: .98rem; } .choix-creer span { font-size: .8rem; color: var(--doux); }
.palette { display: flex; gap: 10px; flex-wrap: wrap; } .palette button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; } .palette button[aria-pressed="true"] { border-color: var(--texte); }
.assistance-fil { display: flex; flex-direction: column; gap: 6px; padding-bottom: 90px; }
#onglets .creer-onglet { flex: none; width: 60px; }
#onglets .creer-onglet .bulle-creer { width: 50px; height: 50px; border-radius: 18px; background: var(--degrade); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(7, 147, 107, .4); }
.mode-leger .pub-photos img, .mode-leger .tuile-article img { filter: blur(0); }
.story-rond > span[style*="relative"] { display: block; width: 70px; height: 70px; } .story-rond .anneau { display: block; flex: none; }

/* « Écrit… » façon Snapchat : la tête du contact sort du bas */
.conversation { position: relative; }
.tete-ecrit { position: absolute; left: 14px; bottom: calc(76px + var(--bas)); display: flex; align-items: flex-end; gap: 6px; transform: translateY(70px) scale(.6); opacity: 0; transition: transform .5s var(--ressort), opacity .25s; pointer-events: none; z-index: 4; }
.tete-ecrit.visible { transform: translateY(0) scale(1); opacity: 1; animation: hoche 1.6s ease-in-out .5s infinite; }
.tete-ecrit .avatar { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); border: 2px solid var(--fond); }
@keyframes hoche { 50% { transform: translateY(-4px) rotate(-4deg); } }
.bulle-ecrit { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--bulle-lui); box-shadow: var(--ombre); }
.bulle-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--tres-doux); animation: point 1.2s infinite; }
.bulle-ecrit i:nth-child(2) { animation-delay: .15s; } .bulle-ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
/* Bouton d'envoi : micro ↔ avion en papier, avec un ressort */
.saisie .envoyer { transition: transform .3s var(--ressort-ferme), box-shadow .3s; }
.saisie .envoyer:active { transform: scale(.88); }
.saisie .envoyer .ic { animation: iconeEntre .45s var(--ressort-bulle); }
@keyframes iconeEntre { from { transform: scale(.2) rotate(-70deg); opacity: 0; } }
.saisie .zone { transition: box-shadow .3s; } .saisie .zone:focus-within { box-shadow: 0 0 0 2px var(--vert-doux), var(--ombre); }
.saisie .zone .rond { transition: transform .35s var(--ressort-ferme), opacity .2s, width .3s var(--doux-courbe); }
.saisie.ecrit .zone #camera, .saisie.ecrit .zone #cadeau { transform: scale(.4); opacity: 0; width: 0; pointer-events: none; }
/* Cadeaux */
.grille-cadeaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grille-cadeaux button { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord); transition: transform .4s var(--ressort); }
.grille-cadeaux button:active { transform: scale(.9); }
.grille-cadeaux span { font-size: 2rem; } .grille-cadeaux small { font-size: .66rem; color: var(--doux); text-align: center; line-height: 1.2; }
.cadeau-bulle { display: grid; justify-items: center; text-align: center; padding: 14px 18px 8px; min-width: 150px; }
.cadeau-bulle .cadeau-em { font-size: 3.4rem; line-height: 1.1; animation: rebond 1.2s var(--ressort); }
@keyframes rebond { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.2) rotate(8deg); } }
.pluie-cadeau { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.pluie-cadeau .cadeau-geant { position: absolute; left: 50%; top: 42%; font-size: 9rem; transform: translate(-50%, -50%); animation: geantCadeau 2.4s var(--ressort) forwards; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
@keyframes geantCadeau { 0% { transform: translate(-50%, -50%) scale(0); } 25% { transform: translate(-50%, -50%) scale(1.15); } 75% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.pluie-cadeau i { position: absolute; top: -60px; font-style: normal; animation: tombe 2.2s ease-in forwards; }
@keyframes tombe { to { transform: translateY(115vh) rotate(260deg); } }
.vue-unique { text-align: start; background: linear-gradient(135deg, rgba(139,123,255,.18), rgba(15,191,127,.14)); border: 1.5px dashed rgba(139,123,255,.6); color: var(--texte); cursor: pointer; }
.img-legere { min-height: 180px; width: 100%; background: var(--fond-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='60'><text x='110' y='36' font-family='system-ui' font-size='15' fill='%238E9B97' text-anchor='middle'>📷 Toucher pour voir la photo</text></svg>") center / 220px 60px no-repeat; cursor: pointer; }
.tuile-article .img-legere { min-height: 0; height: 100%; background-size: 160px 50px; }

/* ---------- Messagerie : sélecteur Discussions / Appels (la pastille glisse) ---------- */
.segments { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 12px; border-radius: 16px; background: var(--fond-2); border: 1px solid var(--bord); }
.segments .curseur { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--carte); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); transition: transform .45s var(--ressort-bulle); }
.segments[data-actif="appels"] .curseur { transform: translateX(100%); }
.segments button { position: relative; z-index: 1; height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: .9rem; color: var(--doux); transition: color .3s; }
.segments button .ic { width: 18px; height: 18px; }
.segments button[aria-selected="true"] { color: var(--texte); }
.pastille-seg { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--rouge); color: #fff; font-size: .68rem; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(240, 68, 90, .5); animation: pulseRouge 2s infinite; }
@keyframes pulseRouge { 70% { box-shadow: 0 0 0 8px rgba(240, 68, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 68, 90, 0); } }
.filtres-conv { margin-top: -4px; margin-bottom: 8px; } .filtres-conv .puce { padding: 6px 13px; font-size: .82rem; transition: background .3s, color .3s, transform .4s var(--ressort); }
.filtres-conv .compte { color: var(--vert); } .filtres-conv .puce[aria-pressed="true"] .compte { color: inherit; opacity: .8; }

/* Conversations non lues : lumineuses ; celle qui vient de recevoir un message remonte et s'illumine */
.conv.non-lu { background: linear-gradient(100deg, rgba(15, 191, 127, .13), rgba(15, 191, 127, .03) 70%); box-shadow: inset 0 0 0 1px rgba(15, 191, 127, .22); }
.conv.non-lu::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3.5px; border-radius: 4px; background: var(--vert); box-shadow: 0 0 12px var(--vert); }
.conv { position: relative; }
.conv.non-lu b { font-weight: 800; } .conv.non-lu .apercu { color: var(--texte); font-weight: 600; }
.conv.non-lu .droite > span:first-child { color: var(--vert-2); font-weight: 800; }
.conv.non-lu .nonlus { box-shadow: 0 0 0 0 rgba(15, 191, 127, .55), 0 4px 12px rgba(15, 191, 127, .45); animation: pulseVert 2.2s infinite; }
@keyframes pulseVert { 70% { box-shadow: 0 0 0 9px rgba(15, 191, 127, 0), 0 4px 12px rgba(15, 191, 127, .45); } 100% { box-shadow: 0 0 0 0 rgba(15, 191, 127, 0), 0 4px 12px rgba(15, 191, 127, .45); } }
.conv.eclat { animation: eclatConv 1.4s var(--doux-courbe); overflow: hidden; }
.conv.eclat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); animation: balayage 1.1s .15s var(--doux-courbe); pointer-events: none; }
@keyframes eclatConv { 0% { box-shadow: inset 0 0 0 1px rgba(15, 191, 127, .22), 0 0 0 0 rgba(15, 191, 127, .6); } 40% { box-shadow: inset 0 0 0 1.5px rgba(15, 191, 127, .7), 0 0 28px 2px rgba(15, 191, 127, .35); } }
@keyframes balayage { to { transform: translateX(100%); } }
.entree-liste > * { animation: filEntree .5s var(--doux-courbe) backwards; }
.entree-liste > *:nth-child(2) { animation-delay: 30ms; } .entree-liste > *:nth-child(3) { animation-delay: 60ms; } .entree-liste > *:nth-child(4) { animation-delay: 90ms; }
.entree-liste > *:nth-child(5) { animation-delay: 120ms; } .entree-liste > *:nth-child(6) { animation-delay: 150ms; } .entree-liste > *:nth-child(n+7) { animation-delay: 180ms; }

/* ---------- Bannière lumineuse (message, appel manqué) ---------- */
.banniere { position: fixed; z-index: 190; top: calc(10px + var(--haut)); left: 50%; width: min(94vw, 460px); margin-left: calc(min(94vw, 460px) / -2); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px;
  background: var(--verre); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 14px 40px rgba(0, 0, 0, .22), 0 0 30px rgba(15, 191, 127, .35); cursor: pointer; touch-action: none; animation: banniereEntre .6s var(--ressort-bulle) backwards; transition: transform .3s var(--ressort-ferme), opacity .3s; isolation: isolate; }
.banniere::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 23px; padding: 1.5px; background: conic-gradient(from var(--angle, 0deg), #0FBF7F, #FFC23D, #3B82F6, #0FBF7F); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tourneBord 3s linear infinite; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tourneBord { to { --angle: 360deg; } }
.banniere.rouge { box-shadow: 0 14px 40px rgba(0, 0, 0, .22), 0 0 30px rgba(240, 68, 90, .4); } .banniere.rouge::before { background: conic-gradient(from var(--angle, 0deg), #F0445A, #FFC23D, #F0445A); }
.banniere .t { flex: 1; min-width: 0; display: grid; } .banniere b { font-size: .95rem; } .banniere .t span { font-size: .86rem; color: var(--doux); }
.banniere .avatar { box-shadow: 0 0 0 2px var(--carte); }
.banniere.sort { transform: translateY(-140%) !important; opacity: 0; }
@keyframes banniereEntre { from { transform: translateY(-140%) scale(.9); opacity: 0; } }

/* ---------- Appels ---------- */
.titre-section { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tres-doux); margin: 6px 0 8px; }
.rapides { margin-bottom: 6px; } .rapide { flex: none; width: 66px; display: grid; justify-items: center; gap: 5px; font-size: .74rem; font-weight: 700; transition: transform .4s var(--ressort); }
.rapide:active { transform: scale(.9); } .rapide .avatar { box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--vert-doux); } .rapide .coupe { max-width: 66px; }
.jour-appels { position: sticky; top: calc(4px + var(--haut)); z-index: 2; width: fit-content; margin: 14px 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .74rem; font-weight: 800; color: var(--doux); }
.appel-ligne { animation: filEntree .45s var(--doux-courbe) backwards; cursor: pointer; }
.appel-ligne.manque b { color: var(--rouge); } .appel-ligne .nb { font-weight: 600; opacity: .7; }
.appel-ligne.non-lu { background: linear-gradient(100deg, rgba(240, 68, 90, .12), transparent 70%); box-shadow: inset 0 0 0 1px rgba(240, 68, 90, .2); }
.appel-ligne.non-lu::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3.5px; border-radius: 4px; background: var(--rouge); box-shadow: 0 0 12px var(--rouge); }
.sens { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; margin-right: 2px; }
.sens .ic { width: 14px !important; height: 14px !important; stroke-width: 2.6; }
.sens.sortant { color: var(--vert-2); background: var(--vert-doux); } .sens.entrant { color: var(--bleu); background: rgba(59, 130, 246, .12); } .sens.manque { color: var(--rouge); background: rgba(240, 68, 90, .12); }
.rappel { width: 44px; height: 44px; color: var(--vert-2); background: var(--vert-doux); flex: none; }

/* ---------- Super-appli : hub des services ---------- */
.hub .entete h1 { font-size: 1.7rem; }
.hub-ou { width: 100%; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 18px; border-radius: 20px; background: var(--carte); box-shadow: var(--ombre); font-weight: 800; font-size: 1.05rem; text-align: start; margin-bottom: 12px; transition: transform .4s var(--ressort); animation: filEntree .5s var(--doux-courbe) backwards; }
.hub-ou:active { transform: scale(.98); } .hub-ou .t { flex: 1; color: var(--doux); }
.hub-maintenant { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 14px; background: var(--fond-2); font-size: .8rem; } .hub-maintenant .ic { width: 15px; height: 15px; }
.hub-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.hub-carte { position: relative; overflow: hidden; min-height: 150px; padding: 16px; border-radius: 24px; color: #fff; display: grid; align-content: end; justify-items: start; gap: 2px; text-align: start; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); transition: transform .45s var(--ressort); animation: filEntree .5s var(--doux-courbe) .04s backwards; }
.hub-carte:active { transform: scale(.96); }
.hub-carte.taxi { background: radial-gradient(120% 90% at 100% 0%, #3a3a3a, #0d0d0d); } .hub-carte.taxi b { color: #FFC23D; }
.hub-carte.repas { background: radial-gradient(120% 90% at 100% 0%, #ff8a3d, #e5383b); }
.hub-carte .em { position: absolute; top: 12px; right: 12px; font-size: 3.2rem; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); animation: flotte 4s ease-in-out infinite; }
.hub-carte.repas .em { animation-delay: -2s; }
.hub-carte b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; } .hub-carte span:not(.em) { font-size: .78rem; opacity: .85; line-height: 1.3; }
.hub-carte .lueur { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); transform: translateX(-100%); animation: balayage 5s 1s ease-in-out infinite; pointer-events: none; }
.hub-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.hub-tuile { display: grid; justify-items: center; gap: 2px; padding: 12px 2px 10px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bord); text-align: center; transition: transform .4s var(--ressort); animation: tuileEntre .55s var(--ressort-bulle) backwards; }
.hub-tuile:active { transform: scale(.92); }
@keyframes tuileEntre { from { opacity: 0; transform: translateY(14px) scale(.85); } }
.hub-tuile .em { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 4px; }
.hub-tuile b { font-size: .76rem; font-weight: 800; } .hub-tuile small { font-size: .62rem; color: var(--tres-doux); line-height: 1.2; }
.hub-tuile.violet .em { background: rgba(139, 123, 255, .16); } .hub-tuile.bleu .em { background: rgba(59, 130, 246, .14); } .hub-tuile.ardoise .em { background: rgba(100, 116, 139, .16); }
.hub-tuile.nuit .em { background: rgba(15, 23, 42, .1); } .hub-tuile.corail .em { background: rgba(240, 68, 90, .13); } .hub-tuile.or .em { background: rgba(255, 194, 61, .2); }
.hub-tuile.ciel .em { background: rgba(14, 165, 233, .14); } .hub-tuile.vert .em { background: var(--vert-doux); }
@media (max-width: 360px) { .hub-tuile small { display: none; } }
.hub-titre { margin-bottom: 10px; } .lien-voir { color: var(--vert-2); font-weight: 800; font-size: .88rem; }
.hub-articles .tuile-article { flex: none; width: 150px; }
.hub-vide { flex: 1; padding: 18px; border-radius: 20px; background: var(--carte); border: 1.5px dashed var(--bord-fort); text-align: start; }
@media (prefers-reduced-motion: reduce) { .hub-carte .lueur, .banniere::before, .conv.eclat::after { display: none; } }

/* ---------- Aide & réclamations ---------- */
.reclam-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(15, 191, 127, .14), rgba(59, 130, 246, .1)); border: 1px solid var(--bord); }
.reclam-hero .em { font-size: 2.4rem; animation: flotte 4s ease-in-out infinite; }
.reclam-ic { background: var(--fond-2) !important; font-size: 1.4rem; color: inherit; }
.reclam-ligne { animation: filEntree .45s var(--doux-courbe) backwards; }
.etiquette-app { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--fond-2); color: var(--doux); }
.etiquette-app.ok { background: var(--vert-doux); color: var(--vert-2); } .etiquette-app.att { background: rgba(255, 194, 61, .2); color: #8a5a00; }
.grille-cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grille-cat button { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); font-size: .76rem; font-weight: 700; transition: transform .35s var(--ressort), border-color .2s, background .2s; }
.grille-cat button span { font-size: 1.5rem; } .grille-cat button:active { transform: scale(.94); }
.grille-cat button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-doux); }
.reclam-fil .bulle .qui { display: block; font-size: .72rem; color: var(--vert-2); margin-bottom: 2px; }
.reclam-fil .bulle.auto { background: var(--fond-2); border: 1px dashed var(--bord-fort); }
.reclam-fin { padding: 16px 16px calc(16px + var(--bas)); text-align: center; display: grid; gap: 10px; justify-items: center; }
.etoiles { display: flex; gap: 6px; } .etoiles button { font-size: 2rem; color: var(--or); transition: transform .35s var(--ressort); } .etoiles button:active { transform: scale(1.3) rotate(-10deg); }
