/* 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; }
.code::placeholder { letter-spacing: normal; font-size: 1rem; font-weight: 600; }

.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: 112px; height: 168px; border-radius: 20px; object-fit: cover; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .3); touch-action: none;
  transition: width .5s var(--ressort-ferme), height .5s var(--ressort-ferme), top .5s var(--ressort-ferme), right .5s var(--ressort-ferme), border-radius .5s, border-width .3s; }
.appel video.miroir { transform: scaleX(-1); }
/* Avant que l'autre décroche : ta caméra en plein écran (aperçu), puis elle se range dans le coin */
.appel.apercu video.local { top: 0; right: 0; width: 100%; height: 100%; border-radius: 0; border-width: 0; z-index: 0; }
.appel.apercu .infos { margin-top: 18vh; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); } .appel.apercu .infos .avatar { width: 96px; height: 96px; }
.appel.apercu::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent 35%, transparent 65%, rgba(0, 0, 0, .65)); pointer-events: none; z-index: 1; }
.appel.distant-coupe video.distant { opacity: 0; } .appel.distant-coupe .infos .avatar { display: grid !important; }
@media (min-width: 768px) {
  .appel video.distant { object-fit: contain; }
  .appel.connecte video.local { width: 220px; height: 140px; }
}
.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; }
/* Barre à 6 onglets : compacte sur petit écran */
#onglets { width: min(96vw, 480px); padding: 5px; gap: 0; }
#onglets button { min-width: 0; font-size: .64rem; letter-spacing: -.01em; }
#onglets button .ic { width: 21px; height: 21px; }
#onglets .creer-onglet { width: 54px; } #onglets .creer-onglet .bulle-creer { width: 46px; height: 46px; border-radius: 16px; }
/* Au-dessus des vidéos plein écran : barre sombre et transparente, comme TikTok */
body.mode-shorts #onglets { background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
body.mode-shorts #onglets button { color: rgba(255, 255, 255, .7); } body.mode-shorts #onglets button[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .14); }
body.mode-shorts .short-infos { bottom: calc(96px + var(--bas)); } body.mode-shorts .short-actions { bottom: calc(100px + var(--bas)); }
.shorts-onglets { display: flex; gap: 14px; } .shorts-onglets button { color: rgba(255, 255, 255, .65); font-weight: 800; font-size: .95rem; padding: 6px 2px; position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: color .2s; }
.shorts-onglets button[aria-pressed="true"] { color: #fff; } .shorts-onglets button[aria-pressed="true"]::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 3px; background: #fff; }
.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%); } }
.voile.sortie { animation: voile-sortie .22s ease forwards; pointer-events: none; }
.voile.sortie .feuille { animation: feuille-sortie .22s var(--doux-courbe) forwards; }
@keyframes voile-sortie { to { opacity: 0; } }
@keyframes feuille-sortie { to { 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; } }

/* ---------- Tableau de bord Pro ---------- */
.kyc-pro { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; margin-bottom: 14px; background: linear-gradient(135deg, rgba(255, 194, 61, .18), rgba(245, 163, 0, .08)); border: 1px solid rgba(245, 163, 0, .35); }
.kyc-pro.ok { background: linear-gradient(135deg, rgba(15, 191, 127, .16), rgba(15, 191, 127, .04)); border-color: rgba(15, 191, 127, .35); }
.kyc-pro .t { flex: 1; display: grid; } .kyc-pro small { color: var(--doux); font-size: .78rem; } .kyc-pro > .ic:first-child { width: 34px; height: 34px; color: var(--vert-2); }
.kyc-pro > .ic:last-child { transform: rotate(180deg); }
.actions-pro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actions-pro button { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord); font-size: .76rem; font-weight: 700; text-align: center; transition: transform .3s var(--ressort); }
.actions-pro button span { font-size: 1.5rem; } .actions-pro button:active { transform: scale(.94); }

/* ---------- Type de compte, connexion mémorisée, identité, sauvegarde ---------- */
.choix-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choix-type label { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 20px; background: var(--carte); border: 2px solid var(--bord); cursor: pointer; transition: border-color .2s, transform .3s var(--ressort), background .2s; }
.choix-type label:active { transform: scale(.97); } .choix-type input { position: absolute; opacity: 0; }
.choix-type label:has(input:checked) { border-color: var(--vert); background: var(--vert-doux); }
.choix-type .em { font-size: 1.6rem; } .choix-type b { font-size: .95rem; } .choix-type small { font-size: .74rem; color: var(--doux); line-height: 1.3; }
.compte-memorise { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--vert-doux); border: 1px solid rgba(15, 191, 127, .3); text-align: start; transition: transform .3s var(--ressort); }
.compte-memorise:active { transform: scale(.98); } .compte-memorise .avatar { width: 46px; height: 46px; } .compte-memorise .t { flex: 1; display: grid; } .compte-memorise small { color: var(--doux); font-size: .76rem; }
.compte-memorise > .ic { transform: rotate(180deg); color: var(--vert-2); }
.id-fc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--fond-2); font: 800 1.1rem ui-monospace, monospace; letter-spacing: .06em; }
.id-fc .ic { width: 16px; height: 16px; }
.sauvegarde-tete { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 22px; display: grid; place-items: center; background: var(--degrade); color: #fff; box-shadow: 0 10px 30px rgba(7, 147, 107, .4); }
.sauvegarde-tete .ic { width: 30px; height: 30px; }
.erreur-code { text-align: center; color: var(--rouge); font-weight: 800; margin-bottom: 10px; animation: secoue .5s; }
.bouton-ami { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .86rem; } .bouton-ami.est-ami { background: var(--vert-doux); color: var(--vert-2); border-color: transparent; }
.bulle.illisible { font-size: .82rem; opacity: .75; }

/* ---------- 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); }

/* Offres professionnelles (Essentiel / Pro / Business) */
.offres { display: grid; gap: 14px; }
.offres-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--vert-doux); gap: 2px; }
.bascule button { border: 0; background: none; color: var(--doux); font: inherit; font-weight: 700; font-size: .84rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .25s var(--doux-courbe), color .25s; }
.bascule button small { color: var(--vert-2); font-weight: 700; margin-inline-start: 4px; }
.bascule button[aria-pressed="true"] { background: var(--carte); color: var(--texte); box-shadow: var(--ombre); }
.offres-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.offre { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: start; padding: 18px 16px 14px; border-radius: var(--r); border: 1.5px solid var(--bord-fort); background: var(--carte); color: var(--texte); font: inherit; cursor: pointer; transition: transform .35s var(--ressort), border-color .25s, box-shadow .25s; animation: offre-entree .5s var(--doux-courbe) both; }
.offre:nth-child(2) { animation-delay: .06s; } .offre:nth-child(3) { animation-delay: .12s; }
.offre:hover { transform: translateY(-2px); }
.offre[aria-pressed="true"] { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-doux), var(--ombre); }
.offre.conseillee { background: linear-gradient(160deg, rgba(255, 194, 61, .14), var(--carte) 55%); }
.offre .ruban { position: absolute; top: -10px; inset-inline-end: 12px; background: var(--degrade-or); color: #3a2600; font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.offre > b { font-size: 1.05rem; }
.prix-offre { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.prix-offre small { font-size: .8rem; font-weight: 600; color: var(--doux); margin-inline-start: 2px; }
.prix-second { font-size: .78rem; color: var(--tres-doux); }
.offre ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: .82rem; color: var(--doux); }
.offre li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-inline-end: 6px; }
@keyframes offre-entree { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .offre { animation: none; } }

/* ===== Appui long, menu de conversation ===== */
.conv.appui, [data-c].appui { transform: scale(.97); background: var(--vert-doux); transition: transform .45s var(--doux-courbe), background .3s; }
.menu-conv-tete { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.menu-conv-tete h2 { font-size: 1.2rem; }
.menu-conv { display: grid; gap: 4px; }
.menu-conv button { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 16px; text-align: start; color: var(--texte); animation: menu-entree .42s var(--ressort) both; animation-delay: calc(var(--i) * 32ms); transition: background .2s; }
.menu-conv button:hover, .menu-conv button:active { background: var(--vert-doux); }
.menu-conv .ic-m { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--vert-doux); color: var(--vert-2); flex: none; }
.menu-conv .ic-m .ic { width: 20px; height: 20px; }
.menu-conv .t { display: grid; gap: 1px; } .menu-conv small { color: var(--doux); font-size: .76rem; }
.menu-conv .danger { color: var(--rouge); } .menu-conv .danger .ic-m { background: rgba(240, 68, 90, .1); color: var(--rouge); }
@keyframes menu-entree { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ===== Bascules rapides (Moi) ===== */
.bascules-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.bascule-rapide { display: grid; gap: 4px; justify-items: start; text-align: start; padding: 14px 12px; border-radius: 20px; background: var(--carte); box-shadow: var(--ombre); color: var(--texte); transition: transform .4s var(--ressort), background .3s; }
.bascule-rapide:active { transform: scale(.96); }
.bascule-rapide .ic-q { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--vert-doux); color: var(--vert-2); }
.bascule-rapide b { font-size: .86rem; line-height: 1.15; } .bascule-rapide small { font-size: .7rem; color: var(--doux); line-height: 1.2; }
.bascule-rapide.actif { background: linear-gradient(150deg, #312e81, #4f46e5); color: #fff; }
.bascule-rapide.actif small { color: rgba(255, 255, 255, .8); } .bascule-rapide.actif .ic-q { background: rgba(255, 255, 255, .16); color: #fff; }
#q-fantome.actif { background: linear-gradient(150deg, #1f2937, #4b5563); }

/* ===== Badges ===== */
.badge-verifie { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; vertical-align: -3px; box-shadow: 0 0 0 2px rgba(59, 130, 246, .18); }
.badge-verifie .ic { width: 12px; height: 12px; stroke-width: 3; }
.badge-verifie.grand { width: 74px; height: 74px; box-shadow: 0 0 0 10px rgba(59, 130, 246, .12), 0 0 0 22px rgba(59, 130, 246, .06); animation: badge-pulse 2.4s ease-in-out infinite; }
.badge-verifie.grand .ic { width: 40px; height: 40px; }
.badge-hero { display: grid; place-items: center; margin: 14px 0 22px; }
@keyframes badge-pulse { 50% { box-shadow: 0 0 0 14px rgba(59, 130, 246, .14), 0 0 0 30px rgba(59, 130, 246, .04); } }
.avantages-badge { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.avantages-badge li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--fond); font-size: .9rem; }
.avantages-badge .ic { width: 18px; height: 18px; color: #3b82f6; flex: none; }

/* ===== Mot de passe ===== */
.lien-discret { background: none; color: var(--vert-2); font-weight: 700; font-size: .88rem; padding: 4px; justify-self: center; }
.jauge-mdp { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.jauge-mdp i { flex: 1; height: 5px; border-radius: 3px; background: var(--bord-fort); position: relative; overflow: hidden; }
.jauge-mdp i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; transition: width .4s var(--doux-courbe), background .3s; }
.jauge-mdp[data-n="0"] i::after { width: 15%; background: var(--rouge); } .jauge-mdp[data-n="1"] i::after { width: 45%; background: #f59e0b; }
.jauge-mdp[data-n="2"] i::after { width: 75%; background: var(--vert); } .jauge-mdp[data-n="3"] i::after { width: 100%; background: linear-gradient(90deg, var(--vert), #3b82f6); }
.jauge-mdp small { font-size: .75rem; color: var(--doux); min-width: 64px; text-align: end; }

/* ===== Calculatrice (accès camouflé au coffre) ===== */
.calculatrice { background: #0b0b0d; border-radius: 26px; padding: 14px; margin: -2px -6px 0; color: #fff; }
.calc-ecran { display: grid; justify-items: end; gap: 2px; padding: 18px 10px 14px; min-height: 96px; }
.calc-ecran small { color: #8a8a90; font-size: .95rem; min-height: 1.2em; }
.calc-ecran b { font-size: 2.6rem; font-weight: 300; letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.calc-touches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-touches button { aspect-ratio: 1; border-radius: 50%; background: #2c2c30; color: #fff; font-size: 1.45rem; font-weight: 500; transition: filter .15s, transform .25s var(--ressort); }
.calc-touches button:active { filter: brightness(1.6); transform: scale(.93); }
.calc-touches .fn { background: #a5a5aa; color: #000; } .calc-touches .op { background: #ff9f0a; }

/* ===== Personnalisation : thèmes de l'interface ===== */
:root[data-theme="saphir"] { --vert: #3B6CF6; --vert-2: #2348C8; --vert-doux: rgba(59, 108, 246, .13); --degrade: linear-gradient(135deg, #5B8BFF, #2348C8); --bulle-moi: linear-gradient(135deg, #5B8BFF, #2348C8); }
:root[data-theme="amethyste"] { --vert: #8B5CF6; --vert-2: #6D28D9; --vert-doux: rgba(139, 92, 246, .13); --degrade: linear-gradient(135deg, #A78BFA, #6D28D9); --bulle-moi: linear-gradient(135deg, #A78BFA, #6D28D9); }
:root[data-theme="corail"] { --vert: #F25F5C; --vert-2: #D63E3B; --vert-doux: rgba(242, 95, 92, .13); --degrade: linear-gradient(135deg, #FF8A80, #D63E3B); --bulle-moi: linear-gradient(135deg, #FF8A80, #D63E3B); }
:root[data-theme="rose"] { --vert: #EC4899; --vert-2: #BE185D; --vert-doux: rgba(236, 72, 153, .13); --degrade: linear-gradient(135deg, #F472B6, #BE185D); --bulle-moi: linear-gradient(135deg, #F472B6, #BE185D); }
:root[data-theme="soleil"] { --vert: #F59E0B; --vert-2: #C2410C; --vert-doux: rgba(245, 158, 11, .14); --degrade: linear-gradient(135deg, #FBBF24, #EA580C); --bulle-moi: linear-gradient(135deg, #FBBF24, #EA580C); }
:root[data-theme="onyx"] { --vert: #374151; --vert-2: #111827; --vert-doux: rgba(17, 24, 39, .1); --degrade: linear-gradient(135deg, #4B5563, #030712); --bulle-moi: linear-gradient(135deg, #374151, #030712); }
@media (prefers-color-scheme: dark) { :root[data-theme="onyx"] { --vert: #E5E7EB; --vert-2: #F9FAFB; --vert-doux: rgba(255, 255, 255, .1); --degrade: linear-gradient(135deg, #6B7280, #1F2937); --bulle-moi: linear-gradient(135deg, #4B5563, #111827); } }
.themes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.theme-pastille { display: grid; justify-items: center; gap: 5px; padding: 14px 6px 10px; border-radius: 18px; background: var(--carte); box-shadow: var(--ombre); color: var(--texte); border: 2px solid transparent; transition: transform .4s var(--ressort), border-color .2s; }
.theme-pastille .rond-c { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 45%, transparent); }
.theme-pastille b { font-size: .82rem; } .theme-pastille small { font-size: .7rem; color: var(--doux); }
.theme-pastille.actif { border-color: var(--c); transform: translateY(-2px); }

/* ===== Personnalisation : décors de discussion ===== */
.decors-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.decor-carte { display: grid; gap: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--carte); box-shadow: var(--ombre); color: var(--texte); border: 2px solid transparent; text-align: start; transition: transform .4s var(--ressort), border-color .2s; }
.decor-carte.actif { border-color: var(--vert); transform: translateY(-2px); }
.decor-apercu { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; height: 104px; overflow: hidden; }
.decor-apercu i { display: block; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .92); width: 62%; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); position: relative; z-index: 1; }
.decor-apercu .b2 { align-self: flex-end; width: 52%; background: var(--bulle-moi); }
.decor-apercu .b3 { width: 40%; }
.decor-nom { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; }
.decor-nom b { font-size: .8rem; } .decor-nom small { font-size: .7rem; color: var(--doux); white-space: nowrap; }
/* Les décors s'appliquent au fond de la conversation (.conversation.decor-x .fil) et à l'aperçu (.decor-carte.decor-x .decor-apercu) */
.decor-nuit .fil, .decor-nuit .decor-apercu { background: radial-gradient(120% 80% at 80% 0%, #1e293b, #0b1220 60%); }
.decor-ocean .fil, .decor-ocean .decor-apercu { background: linear-gradient(180deg, #cdeffd, #8fd3f4 55%, #5fb7e5); }
.decor-sable .fil, .decor-sable .decor-apercu { background: linear-gradient(180deg, #fbf3e4, #f1dfbf); }
.decor-aurore .fil, .decor-aurore .decor-apercu { background: linear-gradient(130deg, #0b1d2a, #12403c, #1d1b4b, #0b1d2a); background-size: 300% 300%; animation: aurore 16s ease-in-out infinite; }
@keyframes aurore { 50% { background-position: 100% 50%; } }
.decor-galaxie .fil, .decor-galaxie .decor-apercu { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #cbd5ff, transparent), radial-gradient(90% 60% at 30% 20%, #3b1d6e, transparent), #070618; background-size: 220px 220px, 260px 260px, 180px 180px, 300px 300px, 240px 240px, 100% 100%, 100% 100%; animation: etoiles 60s linear infinite; }
@keyframes etoiles { to { background-position: 220px 220px, -260px 260px, 180px -180px, -300px -300px, 240px 0, 0 0, 0 0; } }
.decor-wax .fil, .decor-wax .decor-apercu { background-color: #f7e7c6; background-image: radial-gradient(circle at 25% 25%, #e76f2e 0 9px, transparent 10px), radial-gradient(circle at 75% 75%, #1f6f5c 0 9px, transparent 10px), radial-gradient(circle at 75% 25%, transparent 0 6px, #c0392b 7px 9px, transparent 10px), radial-gradient(circle at 25% 75%, transparent 0 6px, #f2b33d 7px 9px, transparent 10px); background-size: 52px 52px; }
.decor-kente .fil, .decor-kente .decor-apercu { background: repeating-linear-gradient(90deg, #f2b705 0 18px, #0b7a3b 18px 26px, #f2b705 26px 44px, #b3121b 44px 52px, #111 52px 56px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 12px); background-blend-mode: multiply; }
.decor-rose .fil, .decor-rose .decor-apercu { background: radial-gradient(80% 60% at 20% 10%, #ffe1ec, transparent), radial-gradient(70% 60% at 90% 90%, #fcd3e1, transparent), #fff3f7; }
.decor-or .fil, .decor-or .decor-apercu { background: linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 40%), repeating-linear-gradient(115deg, #f6f1e7 0 40px, #efe6d2 40px 42px, #f6f1e7 42px 90px, #e8d9b5 90px 91px), #f6f1e7; }
.decor-or .bulle.moi, .decor-or .decor-apercu .b2 { background: linear-gradient(135deg, #e9c46a, #b8860b); color: #2b1d00; }
.decor-nuit .fil .jour, .decor-galaxie .fil .jour, .decor-aurore .fil .jour { color: #e2e8f0; background: rgba(15, 23, 42, .55); }
.decor-nuit .fil .chiffre-info, .decor-galaxie .fil .chiffre-info, .decor-aurore .fil .chiffre-info { color: #cbd5e1; background: rgba(15, 23, 42, .55); }
.fil > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .decor-aurore .fil, .decor-galaxie .fil, .decor-sakura .fil, .decor-coeurs .fil { animation: none; } }

/* Spectateurs d'une story : entrée en cascade */
.spectateurs-story .ligne { animation: menu-entree .4s var(--ressort) both; animation-delay: calc(var(--i, 0) * 30ms); }

/* Décors animés : le motif glisse en fond (pétales qui tombent, cœurs qui montent) */
.decor-sakura .fil, .decor-sakura .decor-apercu { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23f9a8c4'%3E%3Cellipse cx='20' cy='20' rx='6' ry='4' transform='rotate(30 20 20)'/%3E%3Cellipse cx='80' cy='60' rx='5' ry='3.5' transform='rotate(-20 80 60)'/%3E%3Cellipse cx='50' cy='100' rx='6' ry='4' transform='rotate(60 50 100)'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #fff5f8, #ffe4ec); animation: tombe-decor 16s linear infinite; }
.decor-coeurs .fil, .decor-coeurs .decor-apercu { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cg fill='%23fb7185' fill-opacity='.7'%3E%3Cpath d='M30 38c-8-7-14-11-14-18a7 7 0 0 1 14-2 7 7 0 0 1 14 2c0 7-6 11-14 18z'/%3E%3Cpath d='M95 98c-6-5-10-8-10-13a5 5 0 0 1 10-1.5 5 5 0 0 1 10 1.5c0 5-4 8-10 13z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #ffe9f0, #ffd1e0); animation: monte-coeurs 18s linear infinite; }
@keyframes tombe-decor { from { background-position: 0 0, 0 0; } to { background-position: 120px 960px, 0 0; } }
@keyframes monte-coeurs { from { background-position: 0 0, 0 0; } to { background-position: -130px -1040px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .decor-sakura .fil, .decor-coeurs .fil { animation: none; } }

.decor-defaut .decor-apercu { background: linear-gradient(180deg, var(--fond), color-mix(in srgb, var(--vert) 8%, var(--fond))); }
.rond.attenue { opacity: .4; }

/* ===== Portefeuille (carte façon banque, envoi/réception par QR) ===== */
.carte-wallet { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 20px 16px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 194, 61, .35), transparent 55%), linear-gradient(140deg, #0B1B17, #0f3d31 60%, #07936B); box-shadow: 0 18px 40px rgba(7, 60, 45, .35); }
.carte-wallet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); transform: translateX(-100%); animation: reflet-wallet 5s ease-in-out infinite 1s; pointer-events: none; }
@keyframes reflet-wallet { 30%, 100% { transform: translateX(100%); } }
.wallet-haut { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; opacity: .9; }
.wallet-statut { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 700; }
.wallet-statut.verifie { background: rgba(59, 130, 246, .35); } .wallet-statut .ic { width: 13px; height: 13px; }
.wallet-solde { font-size: 2.5rem; letter-spacing: -.03em; margin: 10px 0 2px; } .wallet-solde b { font-weight: 800; }
.wallet-adresse { display: flex; align-items: center; gap: 6px; font: 700 .82rem ui-monospace, monospace; opacity: .75; letter-spacing: .04em; }
.wallet-adresse .ic { width: 14px; height: 14px; }
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.wallet-actions button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .78rem; font-weight: 700; backdrop-filter: blur(8px); transition: transform .35s var(--ressort), background .2s; }
.wallet-actions button:active { transform: scale(.94); background: rgba(255, 255, 255, .22); }
.wallet-actions .ic { width: 20px; height: 20px; }
.jauge-wallet { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--carte); box-shadow: var(--ombre); display: grid; gap: 8px; }
.jauge-wallet > i { display: block; height: 6px; border-radius: 3px; background: var(--bord-fort); position: relative; overflow: hidden; }
.jauge-wallet > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--x); border-radius: inherit; background: var(--degrade); animation: jauge-entree 1s var(--doux-courbe) both; }
@keyframes jauge-entree { from { width: 0; } }
.montants-rapides { display: flex; gap: 6px; flex-wrap: wrap; }
/* ===== Photo de couverture du profil ===== */
.couverture { position: relative; height: 150px; margin: -4px -16px 0; border-radius: 0 0 28px 28px; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--vert) 55%, #fff), transparent 60%), radial-gradient(100% 100% at 100% 100%, color-mix(in srgb, var(--or) 60%, transparent), transparent 60%), var(--degrade); }
.couverture img { width: 100%; height: 100%; object-fit: cover; animation: couverture-entree .9s var(--doux-courbe) both; }
@keyframes couverture-entree { from { transform: scale(1.08); opacity: 0; } }
.couverture #changer-couverture { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(8px); }
.profil-tete.avec-couverture { margin-top: -56px; position: relative; z-index: 1; }
.profil-tete.avec-couverture .avatar.grand { box-shadow: 0 0 0 4px var(--fond), var(--ombre); }
@media (min-width: 760px) { .couverture { height: 220px; margin: 0 0 0; border-radius: 28px; } }
/* ===== Avis sur Fonachat ===== */
.etoiles-avis { display: flex; justify-content: center; gap: 6px; }
.etoiles-avis button { font-size: 2.6rem; line-height: 1; color: var(--bord-fort); background: none; transition: color .2s, transform .35s var(--ressort); }
.etoiles-avis button.on { color: #FFB800; text-shadow: 0 4px 18px rgba(255, 184, 0, .45); }
.etoiles-avis button.pop { animation: etoile-pop .5s var(--ressort) both; }
@keyframes etoile-pop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
.mot-note { text-align: center; font-weight: 800; margin: 8px 0 12px; min-height: 1.4em; color: var(--doux); }
.etoiles-fixes { position: relative; display: inline-block; color: var(--bord-fort); letter-spacing: 2px; }
.etoiles-fixes::before { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--n) / 5 * 100%); overflow: hidden; color: #FFB800; white-space: nowrap; }
.avis-public { display: grid; gap: 14px; margin-top: 22px; padding: 18px; border-radius: 24px; background: var(--carte); box-shadow: var(--ombre); }
.avis-resume { display: grid; justify-items: start; gap: 2px; } .avis-resume b { font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; } .avis-resume small { color: var(--doux); }
.avis-barres { display: grid; gap: 4px; } .avis-barres div { display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 8px; font-size: .74rem; color: var(--doux); }
.avis-barres i { height: 6px; border-radius: 3px; background: var(--bord); position: relative; overflow: hidden; }
.avis-barres i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--x); background: #FFB800; border-radius: inherit; animation: jauge-entree 1.1s var(--doux-courbe) both; }
.avis-defile { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.avis-defile figure { flex: 0 0 min(260px, 80%); scroll-snap-align: start; margin: 0; padding: 14px; border-radius: 18px; background: var(--fond); display: grid; gap: 6px; animation: menu-entree .5s var(--ressort) both; animation-delay: calc(var(--i) * 60ms); }
.avis-defile blockquote { margin: 0; font-size: .9rem; line-height: 1.45; } .avis-defile figcaption { font-size: .76rem; color: var(--doux); font-weight: 700; }
/* ===== Carte des amis (façon Snap Map) ===== */
.ecran-carte { position: fixed; inset: 0; z-index: 5; background: #dfe9e4; }
.carte-plein { position: absolute; inset: 0; }
.verre { background: var(--verre); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--ombre); }
.carte-tete { position: absolute; z-index: 500; top: calc(10px + var(--haut)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.carte-tete .segments { flex: 1; max-width: 300px; margin: 0 auto; }
.carte-panneau { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: calc(14px + var(--bas)); padding: 14px 16px; border-radius: 24px; display: grid; gap: 10px; max-width: 520px; margin: 0 auto; animation: monte .5s var(--ressort) both; }
.choix-carte { display: flex; gap: 6px; } .choix-carte .puce { flex: 1; justify-content: center; }
.marqueur-ami { display: grid; justify-items: center; gap: 1px; transform-origin: bottom center; animation: marqueur-entree .6s var(--ressort) both; }
.marqueur-ami .ma-photo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--degrade); color: #fff; font: 800 1rem Jakarta, system-ui; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.marqueur-ami .ma-photo img { width: 100%; height: 100%; object-fit: cover; }
.marqueur-ami b { font: 800 .72rem Jakarta, system-ui; color: #0b1b17; background: #fff; padding: 1px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); white-space: nowrap; }
.marqueur-ami small { font: 600 .62rem Jakarta, system-ui; color: #334; background: rgba(255, 255, 255, .85); padding: 0 5px; border-radius: 6px; }
.marqueur-ami.moi .ma-photo { border-color: var(--vert); box-shadow: 0 0 0 0 color-mix(in srgb, var(--vert) 60%, transparent); animation: pulse-moi 2s infinite; }
@keyframes pulse-moi { 70% { box-shadow: 0 0 0 16px transparent; } }
@keyframes marqueur-entree { from { transform: scale(0) translateY(20px); opacity: 0; } }
.bulle-pays { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--vert) 75%, #fff), var(--vert-2)); color: #fff; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 22px color-mix(in srgb, var(--vert-2) 45%, transparent); animation: marqueur-entree .7s var(--ressort) both; }
.bulle-pays b { font: 800 .78rem Jakarta, system-ui; }
/* ===== Vue unique : bulle et visionneuse « révélation » ===== */
.vue-unique, .unique-envoyee { display: flex; align-items: center; gap: 12px; text-align: start; min-width: 220px; position: relative; overflow: hidden; }
.vue-unique { background: linear-gradient(120deg, #1b1035, #2d1b69 45%, #0f5c47); color: #fff; border: 0; box-shadow: 0 8px 26px rgba(45, 27, 105, .35); }
.vue-unique::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); transform: translateX(-100%); animation: reflet-wallet 2.8s ease-in-out infinite; }
.vue-unique b, .unique-envoyee b { display: block; } .vue-unique small, .unique-envoyee small { opacity: .8; font-size: .74rem; }
.vue-unique .meta { color: rgba(255, 255, 255, .75); }
.anneau-unique { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 0 22px rgba(167, 139, 250, .7); animation: pulse-unique 2.2s ease-in-out infinite; }
.anneau-unique .ic { width: 18px; height: 18px; }
@keyframes pulse-unique { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .18), 0 0 30px rgba(167, 139, 250, .9); } }
.unique-ouverte { display: inline-flex; align-items: center; gap: 6px; } .unique-ouverte .ic { width: 15px; height: 15px; }
.revelation { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rev-scene { position: relative; max-width: 100%; max-height: 100dvh; filter: blur(38px) brightness(.55) saturate(1.3); transform: scale(1.06); transition: filter .35s var(--doux-courbe), transform .45s var(--ressort); }
.rev-scene img { display: block; max-width: 100vw; max-height: 100dvh; object-fit: contain; pointer-events: none; }
.revelation.visible .rev-scene { filter: none; transform: none; }
.rev-filigrane { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 30px 40px; padding: 20px; overflow: hidden; pointer-events: none; transform: rotate(-24deg) scale(1.4); }
.rev-filigrane span { color: rgba(255, 255, 255, .13); font: 800 .8rem Jakarta, system-ui; white-space: nowrap; text-shadow: 0 0 2px rgba(0, 0, 0, .3); }
.rev-chrono { position: absolute; top: calc(18px + var(--haut)); right: 18px; width: 44px; height: 44px; transform: rotate(-90deg); }
.rev-chrono circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 3.5; }
.rev-chrono .reste { stroke: #fff; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; }
.rev-aide { position: absolute; bottom: calc(40px + var(--bas)); left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; font-weight: 700; transition: opacity .25s; animation: respire 1.8s ease-in-out infinite; }
.rev-aide .ic { width: 18px; height: 18px; }
.revelation.visible .rev-aide { opacity: 0; }
@keyframes respire { 50% { opacity: .55; transform: scale(.97); } }
.revelation.dissout .rev-scene { animation: dissolution .9s var(--doux-courbe) forwards; }
@keyframes dissolution { to { filter: blur(24px) brightness(2) saturate(0); transform: scale(1.15); opacity: 0; } }
.vue-unique .meta, .unique-envoyee .meta { align-self: flex-end; white-space: nowrap; margin-left: auto; position: relative; }
.unique-vient-ouverte { animation: dissolution .5s var(--doux-courbe) forwards; }

/* Discussions du coffre : floutées dès que l'appli perd le focus */
.conversation.flou-securite .fil, .conversation.flou-securite .conv-tete .t, .conversation.flou-securite .conv-tete .avatar-cadre { filter: blur(22px); transition: filter .15s; }

/* Transitions d'écran façon appli native : on avance → l'écran arrive de la droite ; on revient → de la gauche */
body[data-sens="avant"] .ecran, body[data-sens="avant"] .conversation { animation: arrive-avant .38s var(--doux-courbe) backwards; }
body[data-sens="retour"] .ecran, body[data-sens="retour"] .conversation { animation: arrive-retour .38s var(--doux-courbe) backwards; }
@keyframes arrive-avant { from { opacity: 0; transform: translateX(26px); } }
@keyframes arrive-retour { from { opacity: 0; transform: translateX(-26px); } }
@media (prefers-reduced-motion: reduce) { body[data-sens] .ecran, body[data-sens] .conversation { animation: none; } }
/* Appli installée (écran d'accueil) : pas de rebond ni de sélection accidentelle, comme une appli du store */
@media (display-mode: standalone) { html, body { overscroll-behavior-y: none; } .conv, .hub-tuile, .bascule-rapide, button { -webkit-user-select: none; user-select: none; } }
.partage-apercu { margin: 8px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--fond); border-left: 4px solid var(--vert); font-size: .9rem; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow: auto; }

/* ===== Ciné & Bibliothèque ===== */
.ecran-cine { min-height: 100dvh; background: #07090c; color: #f4f6f5; padding-bottom: calc(40px + var(--bas)); }
.cine-tete { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--haut)) 14px 10px; background: linear-gradient(180deg, rgba(7, 9, 12, .85), transparent); }
.cine-tete h1 { flex: 1; font-size: 1.4rem; letter-spacing: -.03em; color: #fff; }
.ecran-cine .rond.verre { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(12px); }
.cine-hero { position: relative; height: min(72vh, 560px); overflow: hidden; }
.cine-hero.squelette { background: linear-gradient(90deg, #11151b, #1a2029, #11151b); background-size: 200% 100%; animation: chargement 1.4s infinite; }
.cine-diapo { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--doux-courbe); }
.cine-diapo.active { opacity: 1; }
.cine-diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.cine-diapo.active img { transform: scale(1); }
.cine-diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #07090c 4%, rgba(7, 9, 12, .55) 40%, transparent 70%), linear-gradient(90deg, rgba(7, 9, 12, .6), transparent 60%); }
.cine-hero-texte { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 40px; display: grid; gap: 6px; max-width: 560px; }
.cine-diapo.active .cine-hero-texte > * { animation: filEntree .7s var(--doux-courbe) both; } .cine-diapo.active .cine-hero-texte > :nth-child(2) { animation-delay: .08s; } .cine-diapo.active .cine-hero-texte > :nth-child(3) { animation-delay: .14s; } .cine-diapo.active .cine-hero-texte > :nth-child(4) { animation-delay: .2s; }
.cine-hero-texte h2 { font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1; letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.cine-hero-texte p { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.cine-genre { justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cine-hero-actions { display: flex; gap: 8px; margin-top: 6px; } .cine-hero-actions .btn { width: auto; }
.cine-hero-actions .btn.second, .fiche-actions .btn.second { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.cine-points { position: absolute; z-index: 2; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.cine-points i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .4s var(--ressort), background .3s; }
.cine-points i.on { width: 22px; background: #fff; }
.cine-rangee { margin-top: 18px; } .cine-rangee h2 { font-size: 1.05rem; padding: 0 16px 10px; color: #fff; }
.cine-defile { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.cine-defile::-webkit-scrollbar { display: none; }
.cine-affiche { flex: 0 0 132px; display: grid; gap: 4px; text-align: start; color: #fff; scroll-snap-align: start; animation: filEntree .5s var(--doux-courbe) both; animation-delay: calc(min(var(--i), 8) * 45ms); }
.cine-img { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: #161b22; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: transform .4s var(--ressort); display: grid; place-items: center; }
.cine-img img { width: 100%; height: 100%; object-fit: cover; }
.cine-affiche:hover .cine-img, .cine-affiche:active .cine-img { transform: scale(1.04); }
.cine-affiche b { font-size: .82rem; } .cine-affiche small { font-size: .7rem; color: rgba(255, 255, 255, .55); }
.cine-prix { position: absolute; top: 7px; left: 7px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); color: #FFC23D; font-size: .7rem; font-weight: 800; }
.cine-prix.gratuit { color: #5eead4; }
.cine-avance { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; } .cine-avance i { display: block; height: 100%; background: #e50914; }
.cine-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 12px; }
.ecran .cine-grille .cine-affiche { color: var(--texte); } .ecran .cine-grille .cine-affiche small { color: var(--doux); }
.cine-vide { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 90px 24px 24px; }
.cine-vide p { color: rgba(255, 255, 255, .7); max-width: 420px; } .cine-vide .btn { width: auto; }
.cine-clap { font-size: 4rem; animation: flotte 4s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(229, 9, 20, .4)); }
/* Fiche d'un titre */
.fiche-titre { position: relative; }
.fiche-fond { position: absolute; inset: 0 0 auto 0; height: 70vh; overflow: hidden; }
.fiche-fond img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); animation: couverture-entree 1s var(--doux-courbe) both; }
.fiche-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #07090c 8%, rgba(7, 9, 12, .4) 55%, rgba(7, 9, 12, .2)); }
.fiche-corps { position: relative; z-index: 1; padding: 46vh 18px 0; display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.fiche-corps h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.fiche-meta { color: rgba(255, 255, 255, .7); font-size: .88rem; }
.fiche-actions { display: grid; gap: 8px; } .fiche-desc { color: rgba(255, 255, 255, .82); line-height: 1.55; white-space: pre-wrap; }
.fiche-titre .doux { color: rgba(255, 255, 255, .6); }
.fiche-createur { background: rgba(255, 255, 255, .06); color: #fff; border: 0; text-align: start; width: 100%; }
/* Lecteur */
.cine-lecteur { position: fixed; inset: 0; z-index: 160; background: #000; display: grid; place-items: center; animation: voile .3s ease both; }
.cine-lecteur video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cine-lecteur-haut { position: absolute; top: calc(10px + var(--haut)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #fff; pointer-events: none; }
.cine-lecteur-haut > * { pointer-events: auto; } .cine-lecteur-haut .cine-prix { position: static; }
.cine-mur { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, rgba(229, 9, 20, .25), rgba(0, 0, 0, .92) 60%); color: #fff; animation: voile .4s ease both; }
.cine-mur .btn { width: auto; }
.onglet-cine { background: linear-gradient(135deg, #e50914, #ff6a3d) !important; color: #fff !important; border-radius: 999px; padding: 6px 12px !important; font-weight: 800; }
@media (min-width: 900px) { .cine-affiche { flex-basis: 168px; } .cine-hero-texte { left: 48px; bottom: 70px; } }
/* Appels : image de l'autre en entier si son format diffère de l'écran ; bouton « changer de caméra » qui tourne */
.appel video.distant.entier { object-fit: contain; }
.appel .commandes button.tourne .ic { animation: tourne-cam .6s var(--ressort); }
@keyframes tourne-cam { from { transform: rotateY(180deg); } }
@keyframes chargement { to { background-position: -200% 0; } }

/* ===== Saisie : tout tient dans l'écran (iPhone et Android, même 320 px) ===== */
.saisie { max-width: 100%; box-sizing: border-box; }
.saisie .zone { min-width: 0; }
.saisie textarea { min-width: 0; width: 0; }
.saisie .rond, .saisie .envoyer { flex: none; }
@media (max-width: 380px) { .saisie { gap: 6px; padding-left: 8px; padding-right: 8px; } .saisie .rond { width: 36px; height: 36px; } .saisie .envoyer { width: 46px; height: 46px; } .saisie .zone { padding-left: 12px; } }
.conversation, .fil { max-width: 100vw; overflow-x: hidden; }
.bulle { max-width: min(78%, 520px); overflow-wrap: anywhere; }

/* ===== Répondre à un message ===== */
.fil .bulle { touch-action: pan-y; }
.citation { display: grid; gap: 1px; width: 100%; text-align: start; margin: -2px 0 6px; padding: 6px 10px; border-radius: 10px; border-left: 3px solid var(--vert); background: rgba(0, 0, 0, .06); color: inherit; font-size: .8rem; }
.bulle.moi .citation { background: rgba(255, 255, 255, .18); border-left-color: #fff; }
.citation b { font-size: .76rem; color: var(--vert-2); } .bulle.moi .citation b { color: #fff; }
.citation span { opacity: .85; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reponse-barre { display: flex; align-items: center; gap: 10px; margin: 0 10px -4px; padding: 8px 6px 8px 14px; border-radius: 18px 18px 6px 6px; background: var(--carte); box-shadow: var(--ombre); border-left: 4px solid var(--vert); animation: monte .35s var(--ressort) both; }
.reponse-barre.sort { animation: feuille-sortie .2s ease forwards; }
.reponse-barre .t { flex: 1; min-width: 0; display: grid; } .reponse-barre b { font-size: .8rem; color: var(--vert-2); } .reponse-barre .t span { font-size: .84rem; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reponse-barre .rond { width: 34px; height: 34px; flex: none; }
.bulle.pret-repondre { box-shadow: -14px 0 0 -6px var(--vert-doux); }
.bulle.eclaire { animation: eclaire-bulle 1.4s ease; }
@keyframes eclaire-bulle { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--vert) 55%, transparent); } 100% { box-shadow: none; } }
/* ===== Caméra intégrée et visionneuse photo ===== */
.camera-integree { position: fixed; inset: 0; z-index: 170; background: #000; display: grid; animation: voile .25s ease both; }
.camera-integree.sortie { animation: voile-sortie .2s ease forwards; }
.camera-integree video, .camera-integree .cam-apercu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-integree video.miroir { transform: scaleX(-1); }
.camera-integree .cam-apercu { object-fit: contain; background: #000; animation: couverture-entree .4s var(--doux-courbe) both; }
.camera-integree.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: voile-sortie .3s ease forwards; }
.cam-haut { position: absolute; top: calc(12px + var(--haut)); left: 14px; z-index: 2; }
.cam-bas { position: absolute; left: 0; right: 0; bottom: calc(26px + var(--bas)); z-index: 2; display: flex; align-items: center; justify-content: space-evenly; padding: 0 20px; }
.cam-choix { gap: 12px; } .cam-choix .btn { width: auto; flex: 1; max-width: 200px; }
.camera-integree .rond.verre, .visionneuse-photo .verre { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.cam-declencheur { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; background: transparent; }
.cam-declencheur i { width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform .2s var(--ressort); }
.cam-declencheur:active i { transform: scale(.85); }
.camera-integree .rond.tourne .ic { animation: tourne-cam .6s var(--ressort); }
.visionneuse-photo { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .94); display: grid; place-items: center; animation: voile .25s ease both; }
.visionneuse-photo.sortie { animation: voile-sortie .2s ease forwards; }
.visionneuse-photo img { max-width: 100%; max-height: 100dvh; object-fit: contain; animation: couverture-entree .35s var(--doux-courbe) both; }
.vp-haut { position: absolute; top: calc(12px + var(--haut)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.vp-haut .btn { width: auto; color: #fff; box-shadow: none; }
/* Couverture : le bouton reste au-dessus de l'en-tête du profil (il était recouvert) */
.couverture #changer-couverture { top: 12px; bottom: auto; z-index: 3; }
.grille-pubs button { position: relative; }
.grille-play { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; }
.grille-play .ic { width: 13px; height: 13px; }
/* Vidéos : toujours EN ENTIER (9:16 reste 9:16, 16:9 reste 16:9), fond flouté de la même image */
.pub-video::before, .short::before { content: ""; position: absolute; inset: -30px; background: var(--fond-video, #000) center / cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.pub-video video, .short video { position: relative; object-fit: contain; }
.short video { max-width: 100%; }
/* Vidéos : actions à droite lisibles (« Cadeau » n'est plus coupé) */
.short-actions button { width: 62px; } .short-actions button span { max-width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Vidéos : le menu du haut défile au lieu de se chevaucher */
.shorts-tete { gap: 8px; }
.shorts-onglets { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 12px; padding: 0 4px; mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 14px), transparent); }
.shorts-onglets::-webkit-scrollbar { display: none; }
.shorts-onglets button { flex: none; white-space: nowrap; font-size: .9rem; }
.shorts-tete .rond { flex: none; }
.onglet-cine { padding: 4px 10px !important; }
.pub-vues { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); font-size: .8rem; } .pub-vues .ic { width: 15px; height: 15px; }
.pub-actions span.pop, .short-actions span.pop { animation: etoile-pop .45s var(--ressort); }

/* Services : le message vide reste lisible, rien ne passe sous la barre du bas (iPhone compris) */
.ecran { padding-bottom: calc(118px + var(--bas)); }
.hub-vide { flex: 1 0 100%; white-space: normal; text-align: center; padding: 18px 16px; border-radius: 20px; background: var(--carte); box-shadow: var(--ombre); line-height: 1.35; }
/* Marché : catégories sur deux lignes défilantes, jamais coupées */
#cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
#cats::-webkit-scrollbar { display: none; }
#cats .puce, .defile-x .puce { white-space: nowrap; flex: none; }
.defile-x { scroll-padding-inline: 16px; }
/* ===== Guide d'installation (sans store) ===== */
.guide-install { display: grid; justify-items: center; gap: 10px; text-align: center; }
.gi-icone { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(7, 147, 107, .35); animation: badge-pulse 2.4s ease-in-out infinite; display: grid; place-items: center; }
.gi-icone img { width: 100%; height: 100%; } .gi-icone.cloche { background: var(--degrade); color: #fff; } .gi-icone.cloche .ic { width: 36px; height: 36px; animation: sonne-cloche 1.6s ease-in-out infinite; }
@keyframes sonne-cloche { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.gi-etapes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: start; }
.gi-etapes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--fond); animation: menu-entree .5s var(--ressort) both; animation-delay: calc(var(--i) * 160ms + 150ms); }
.gi-num { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--degrade); color: #fff; font-weight: 800; }
.gi-pastille { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--carte); color: #0a84ff; vertical-align: middle; box-shadow: var(--ombre); } .gi-pastille .ic { width: 18px; height: 18px; }
.gi-fleche { position: fixed; bottom: calc(6px + var(--bas)); left: 50%; translate: -50% 0; color: #0a84ff; z-index: 70; animation: gi-rebond 1.1s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(10, 132, 255, .5)); }
@keyframes gi-rebond { 50% { transform: translateY(-10px); } }
@media (max-width: 400px) { .shorts-onglets { gap: 9px; } .shorts-onglets button { font-size: .84rem; } }

/* ===== Services : tuiles vivantes, chaque service a sa signature d'animation ===== */
.hub-tuile .em { display: inline-block; animation-duration: 3.2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-delay: var(--d, 0s); }
.hub-tuile { transition: transform .4s var(--ressort), box-shadow .3s; }
.hub-tuile:active { transform: scale(.94) rotate(-1deg); }
[data-anim="flotte"] .em { animation-name: t-flotte; } @keyframes t-flotte { 50% { transform: translateY(-4px); } }
[data-anim="roule"] .em { animation-name: t-roule; } @keyframes t-roule { 0% { transform: translateX(-3px); } 45% { transform: translateX(5px) rotate(-3deg); } 55% { transform: translateX(5px) rotate(2deg); } 100% { transform: translateX(-3px); } }
[data-anim="rebond"] .em { animation-name: t-rebond; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); } @keyframes t-rebond { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-9px) scale(1.06, .94); } 45% { transform: translateY(0) scale(1.08, .9); } }
[data-anim="tourne"] .em { animation-name: t-tourne; } @keyframes t-tourne { 0%, 40% { transform: rotateY(0); } 70%, 100% { transform: rotateY(360deg); } }
[data-anim="balance"] .em { animation-name: t-balance; transform-origin: top center; } @keyframes t-balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
[data-anim="projecteur"] .em { animation-name: t-projecteur; } @keyframes t-projecteur { 0%, 100% { filter: drop-shadow(0 0 0 #ffd45c); } 50% { filter: drop-shadow(0 0 10px #ffd45c); transform: scale(1.08); } }
[data-anim="clap"] .em { animation-name: t-clap; } @keyframes t-clap { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg); } 86% { transform: rotate(4deg); } }
[data-anim="direct"] .em { animation-name: t-direct; animation-duration: 1.6s; } @keyframes t-direct { 50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(240, 68, 90, .9)); } }
[data-anim="monte"] .em { animation-name: t-monte; } @keyframes t-monte { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-5px) scale(1.04); } }
[data-anim="nuage"] .em { animation-name: t-nuage; animation-duration: 5s; } @keyframes t-nuage { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
[data-anim="epingle"] .em { animation-name: t-epingle; } @keyframes t-epingle { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-8px); } 40% { transform: translateY(0) scale(1.1, .9); } }
[data-anim="enseigne"] .em { animation-name: t-enseigne; transform-origin: top center; } @keyframes t-enseigne { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(5deg); } 75% { transform: rotate(-5deg); } }
.hub-carte.taxi .em { animation: t-roule 2.6s ease-in-out infinite; } .hub-carte.repas .em { animation: t-rebond 2.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .hub-tuile .em, .hub-carte .em { animation: none !important; } }
@media (max-width: 400px) { .shorts-tete .rond { width: 38px; height: 38px; } }
/* Langues */
.choix-langue-accueil { margin-inline-start: auto; padding: 6px 12px; border-radius: 999px; background: var(--carte); box-shadow: var(--ombre); font-size: .8rem; font-weight: 700; color: var(--texte); }
.accueil-public .marque { display: flex; align-items: center; gap: 8px; }
.choix-langues .btn { justify-content: flex-start; }
/* Arabe (de droite à gauche) : flèches de retour retournées, textes alignés à droite */
[dir="rtl"] .ic[data-retour], [dir="rtl"] #retour .ic, [dir="rtl"] .rond[aria-label] .ic.retour { transform: scaleX(-1); }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .citation { border-left: 0; border-right: 3px solid var(--vert); }
[dir="rtl"] .reponse-barre { border-left: 0; border-right: 4px solid var(--vert); }
/* Message écrit hors connexion : en attente du réseau */
.bulle.hors-ligne { opacity: .78; } .bulle.hors-ligne .meta::after { content: " 📶"; }

/* ===== Espace Pro : poste de pilotage (identité visuelle distincte : nuit + or) ===== */
body.mode-pro { background: #0a0f1c; }
body.mode-pro #onglets { background: rgba(15, 22, 40, .92); border-color: rgba(255, 210, 120, .14); }
body.mode-pro #onglets button[aria-current="true"] { color: #FFD27A; background: rgba(255, 210, 120, .12); }
.pro-cockpit { color: #e8ecf6; background: radial-gradient(120% 50% at 100% 0%, rgba(255, 194, 61, .14), transparent 60%), radial-gradient(90% 40% at 0% 10%, rgba(59, 108, 246, .16), transparent 60%), #0a0f1c; min-height: 100dvh; max-width: 760px; }
.pro-cockpit .doux, .pro-cockpit .petit { color: #9aa6c2; }
.pro-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pro-id { display: flex; align-items: center; gap: 12px; } .pro-id small { color: #FFD27A; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.pro-id h1 { font-size: 1.45rem; letter-spacing: -.03em; color: #fff; }
.pro-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #FFD27A, #E8A33A); color: #2a1a00; font-weight: 900; font-size: 1.4rem; box-shadow: 0 10px 26px rgba(232, 163, 58, .35); }
.pro-logo img { width: 100%; height: 100%; object-fit: cover; }
.pro-rond { background: rgba(255, 255, 255, .08); color: #fff; }
.pro-plan { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); font-size: .82rem; color: #c8d0e4; margin-bottom: 12px; }
.pro-plan .ic { width: 14px; height: 14px; vertical-align: -2px; color: #5eead4; }
.pro-badge { padding: 3px 10px; border-radius: 999px; font-weight: 900; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: #fff; }
.pro-badge.pro { background: linear-gradient(135deg, #3B6CF6, #7c3aed); } .pro-badge.business { background: linear-gradient(135deg, #FFD27A, #E8A33A); color: #2a1a00; }
.pro-monter { margin-inline-start: auto; color: #FFD27A; font-weight: 800; font-size: .78rem; background: none; }
.pro-alerte { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(240, 68, 90, .18), rgba(240, 68, 90, .06)); border: 1px solid rgba(240, 68, 90, .35); color: #fff; margin-bottom: 12px; }
.pro-alerte span { flex: 1; display: grid; gap: 2px; } .pro-alerte small { color: #f3c2c9; } .pro-alerte .ic:last-child { transform: rotate(180deg); }
.pro-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.pro-kpi { display: grid; gap: 2px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .07); animation: menu-entree .5s var(--ressort) both; min-height: 92px; }
.pro-kpi.squelette { background: rgba(255, 255, 255, .05); }
.pro-kpi:nth-child(2) { animation-delay: .05s; } .pro-kpi:nth-child(3) { animation-delay: .1s; } .pro-kpi:nth-child(4) { animation-delay: .15s; }
.pro-kpi-e { font-size: 1.2rem; } .pro-kpi b { font-size: 1.35rem; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; } .pro-kpi small { color: #9aa6c2; font-size: .74rem; }
.pro-kpi.or { background: linear-gradient(150deg, rgba(255, 210, 122, .2), rgba(255, 210, 122, .04)); border-color: rgba(255, 210, 122, .3); } .pro-kpi.or b { color: #FFD27A; }
.pro-panneau { padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); margin-bottom: 12px; }
.pro-panneau-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #fff; } .pro-panneau-tete span { color: #FFD27A; font-weight: 800; }
.pro-graphe { width: 100%; height: 130px; display: block; }
.pro-graphe line { stroke: rgba(255, 255, 255, .07); stroke-width: .3; vector-effect: non-scaling-stroke; }
.pro-graphe rect { fill: #FFD27A; transform-origin: bottom; transform-box: fill-box; animation: barre-monte .7s var(--ressort) both; animation-delay: calc(var(--i) * 35ms); cursor: pointer; }
.pro-graphe rect:hover { fill: #fff3cf; }
@keyframes barre-monte { from { transform: scaleY(0); } }
.pro-graphe-axe { display: flex; justify-content: space-between; color: #7e8aa8; font-size: .7rem; margin-top: 4px; }
.pro-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pro-actions button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); color: #dfe5f3; font-size: .7rem; font-weight: 700; text-align: center; animation: menu-entree .45s var(--ressort) both; animation-delay: calc(var(--i) * 30ms + 100ms); transition: transform .3s var(--ressort), background .2s; }
.pro-actions button:active { transform: scale(.94); background: rgba(255, 210, 122, .12); }
.pro-actions span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 210, 122, .12); color: #FFD27A; } .pro-actions .ic { width: 19px; height: 19px; }
.pro-article { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; color: #e8ecf6; text-align: start; border-top: 1px solid rgba(255, 255, 255, .05); }
.pro-article img, .pro-article i { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .08); flex: none; }
.pro-article .t { flex: 1; min-width: 0; display: grid; } .pro-article small { color: #9aa6c2; }
.pro-rang { width: 22px; text-align: center; font-weight: 900; color: #FFD27A; }
.pro-vues { display: inline-flex; align-items: center; gap: 4px; color: #9aa6c2; font-size: .78rem; } .pro-vues .ic { width: 13px; height: 13px; }
.pro-titre { margin: 18px 0 10px; color: #fff; }
.pro-cockpit .carte { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); color: #e8ecf6; box-shadow: none; }
.pro-cockpit .carte div[style*="var(--fond)"] { background: rgba(255, 255, 255, .06) !important; }
.pro-cockpit .choix-creer button { background: rgba(255, 255, 255, .05); color: #e8ecf6; border-color: rgba(255, 255, 255, .07); }
.pro-cockpit .vide h2 { color: #fff; }
.pro-conseils ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: #c8d0e4; font-size: .86rem; }
@media (max-width: 380px) { .pro-actions { grid-template-columns: repeat(4, 1fr); gap: 6px; } .pro-actions button { font-size: .64rem; } }
/* ===== Le chat qui vit ===== */
.saisie.ecrit .zone #magie { transform: scale(.4); opacity: 0; width: 0; pointer-events: none; }
.saisie .rond.magie { font-size: 1.05rem; }
@media (max-width: 360px) { .saisie .zone #camera { display: none; } }
/* Bulles qui respirent selon l'émotion */
.bulle.emo-joie { animation: respire-joie 3.2s ease-in-out infinite; }
.bulle.emo-tendresse { animation: respire-tendresse 2.6s ease-in-out infinite; }
.bulle.emo-colere { animation: respire-colere 1.4s ease-in-out 3; }
.bulle.moi.emo-tendresse { background: linear-gradient(135deg, #ff6b9d, #c2185b); }
@keyframes respire-joie { 50% { transform: scale(1.025) rotate(-.4deg); box-shadow: 0 6px 22px rgba(255, 196, 0, .35); } }
@keyframes respire-tendresse { 50% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(255, 107, 157, .18), 0 8px 26px rgba(255, 107, 157, .35); } }
@keyframes respire-colere { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } 50% { box-shadow: 0 0 0 3px rgba(240, 68, 90, .3); } }
@media (prefers-reduced-motion: reduce) { .bulle[class*="emo-"] { animation: none; } }
/* Réactions */
.barre-reactions { display: flex; justify-content: space-between; gap: 4px; padding: 6px; margin: 0 0 12px; border-radius: 999px; background: var(--fond); }
.barre-reactions button { font-size: 1.7rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; animation: etoile-pop .45s var(--ressort) both; animation-delay: calc(var(--i) * 35ms); transition: transform .25s var(--ressort); }
.barre-reactions button:active { transform: scale(1.35); }
.bulle.a-reactions { margin-bottom: 16px; }
.reactions { position: absolute; bottom: -14px; inset-inline-end: 8px; display: flex; gap: 2px; padding: 2px 6px; border-radius: 999px; background: var(--carte); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); font-size: .82rem; }
.bulle:not(.moi) .reactions { inset-inline-end: auto; inset-inline-start: 8px; }
.reactions small { font-size: .66rem; font-weight: 800; color: var(--doux); margin-inline-start: 1px; }
.reactions.pop { animation: etoile-pop .45s var(--ressort); }
.bulle { position: relative; }
.eclat-scene { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.eclat-gros { position: fixed; font-size: 3rem; translate: -50% -50%; animation: eclat-gros 1s var(--doux-courbe) forwards; }
@keyframes eclat-gros { 0% { transform: scale(.2); } 30% { transform: scale(1.5) translateY(-30px); } 100% { transform: scale(1.2) translateY(-90px); opacity: 0; } }
.eclat-part { position: fixed; width: 8px; height: 8px; border-radius: 2px; translate: -50% -50%; animation: eclat-part .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes eclat-part { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.3); opacity: 0; } }
/* Ciel de l'autre */
.ciel-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--doux); }
.conversation.ciel-pluie .fil { background-image: repeating-linear-gradient(105deg, transparent 0 14px, rgba(120, 160, 220, .16) 14px 15px); background-size: 100% 200%; animation: pluie 1.1s linear infinite; }
.conversation.ciel-orage .fil { animation: pluie 1.1s linear infinite, eclair-ciel 7s infinite; }
@keyframes pluie { to { background-position: -40px 160px; } }
@keyframes eclair-ciel { 0%, 92%, 96%, 100% { filter: none; } 94% { filter: brightness(1.5); } }
.conversation.ciel-nuit.decor-defaut .fil { background-color: color-mix(in srgb, #0b1220 12%, var(--fond)); }
/* Capsule temporelle et message caché */
.bulle.capsule, .bulle.geo-cache { display: flex; align-items: center; gap: 12px; text-align: start; min-width: 230px; }
.bulle.capsule > span:nth-child(2), .bulle.geo-cache > span:nth-child(2) { display: grid; gap: 2px; }
.bulle.capsule small, .bulle.geo-cache small { opacity: .8; font-size: .76rem; }
.capsule-coffre, .geo-epingle { font-size: 2rem; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.bulle.capsule.fermee, .bulle.capsule.prete { background: linear-gradient(135deg, #3b2a12, #7a4b12); color: #ffe7b0; border: 0; }
.bulle.capsule.prete { background: linear-gradient(135deg, #e8a33a, #ffd27a); color: #2a1a00; animation: capsule-appel 1.8s ease-in-out infinite; }
.bulle.capsule.prete .capsule-coffre { animation: t-rebond 1.6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes capsule-appel { 50% { box-shadow: 0 0 0 6px rgba(255, 210, 122, .25), 0 10px 30px rgba(232, 163, 58, .45); } }
.bulle.capsule.secoue { animation: respire-colere .5s ease-in-out 2; }
.bulle.capsule.s-ouvre .capsule-coffre { animation: coffre-ouvre .65s var(--ressort) forwards; }
@keyframes coffre-ouvre { 50% { transform: scale(1.5) rotate(-12deg); } 100% { transform: scale(0) rotate(30deg); opacity: 0; } }
.bulle.revele { animation: menu-entree .6s var(--ressort) both; }
.capsule-texte { display: block; margin-top: 4px; white-space: pre-wrap; font-size: .95rem; }
.capsule-apercu { display: block; margin-top: 4px; opacity: .75; font-size: .82rem; white-space: pre-wrap; max-height: 3.6em; overflow: hidden; }
.bulle.geo-cache:not(.moi):not(.ouverte) { background: linear-gradient(135deg, #be123c, #fb7185); color: #fff; border: 0; }
.bulle.geo-cache:not(.moi):not(.ouverte) .geo-epingle { animation: t-epingle 2.2s ease-in-out infinite; }
.conv-tete .t small#ciel { display: block; }
.conv-tete .t small#ciel:empty { display: none; }

.bulle.capsule .meta, .bulle.geo-cache .meta { align-self: flex-end; white-space: nowrap; margin-inline-start: auto; }

/* ===== Identité et pays ===== */
.drapeau-vivant { display: inline-grid; place-items: center; width: 34px; height: 30px; font-size: 1.5rem; background: none; perspective: 200px; }
.drapeau-vivant span { display: inline-block; transform-origin: left center; animation: flotte-drapeau 2.6s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
@keyframes flotte-drapeau { 0%, 100% { transform: rotateY(0) skewY(0); } 25% { transform: rotateY(18deg) skewY(-3deg); } 75% { transform: rotateY(-12deg) skewY(2deg); } }
.carte-pays { display: grid; justify-items: center; gap: 6px; text-align: center; }
.cp-drapeau { font-size: 4.4rem; animation: flotte-drapeau 2.6s ease-in-out infinite; transform-origin: left center; }
.cp-bonjour { font-size: 1.2rem; font-weight: 800; color: var(--vert-2); animation: menu-entree .6s var(--ressort) both .15s; }
.cp-infos { display: flex; gap: 10px; justify-content: center; margin-top: 8px; width: 100%; }
.cp-infos > div { flex: 1; display: grid; justify-items: center; padding: 12px; border-radius: 18px; background: var(--fond); } .cp-infos span { font-size: 1.6rem; } .cp-infos b { font-size: 1.3rem; } .cp-infos small { color: var(--doux); }
.story-rond { position: relative; }
.couronne-fete { position: absolute; top: -14px; right: -6px; font-size: 2rem; animation: t-rebond 2s cubic-bezier(.3, 1.6, .5, 1) infinite; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.couronne-fete.mini { font-size: 1rem; top: -8px; right: -8px; }
.avatar-cadre { position: relative; }
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 210; overflow: hidden; }
.confettis i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
.grille-fetes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.grille-fetes button { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 18px; background: var(--fond); font-weight: 700; font-size: .82rem; color: var(--texte); border: 2px solid transparent; transition: transform .3s var(--ressort); }
.grille-fetes button span { font-size: 1.8rem; } .grille-fetes button.actif { border-color: var(--vert); } .grille-fetes button:active { transform: scale(.94); }
/* Passeport Fona */
.passeport-couverture { position: relative; display: grid; gap: 4px; padding: 26px 20px; border-radius: 22px; background: linear-gradient(140deg, #0b2a22, #10463a 60%, #0b1b17); color: #e9f5ef; box-shadow: var(--ombre-forte); overflow: hidden; }
.passeport-couverture::after { content: "🌍"; position: absolute; right: -10px; bottom: -20px; font-size: 7rem; opacity: .12; }
.pp-logo { justify-self: start; padding: 4px 12px; border: 2px solid #FFD27A; border-radius: 999px; color: #FFD27A; font-weight: 900; letter-spacing: .2em; font-size: .8rem; }
.passeport-couverture b { font-size: 1.3rem; margin-top: 8px; } .passeport-couverture small { opacity: .8; }
.tampons { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.tampon { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: 50%; aspect-ratio: 1; align-content: center; border: 3px double color-mix(in srgb, var(--vert-2) 70%, transparent); color: var(--vert-2); transform: rotate(var(--rot)); background: color-mix(in srgb, var(--vert) 6%, transparent); animation: tampon-pose .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.tampon:nth-child(3n+2) { border-color: color-mix(in srgb, #c2410c 70%, transparent); color: #c2410c; background: rgba(194, 65, 12, .06); }
.tampon:nth-child(3n) { border-color: color-mix(in srgb, #4338ca 70%, transparent); color: #4338ca; background: rgba(67, 56, 202, .06); }
.t-drapeau { font-size: 1.9rem; } .tampon b { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; line-height: 1.1; } .tampon small { font-size: .64rem; opacity: .8; }
@keyframes tampon-pose { 0% { transform: rotate(var(--rot)) scale(2.2); opacity: 0; } 70% { transform: rotate(var(--rot)) scale(.92); opacity: 1; } 100% { transform: rotate(var(--rot)) scale(1); } }
.img-drapeau { width: 1.35em; height: 1em; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.25); vertical-align: -2px; }
.cp-drapeau .img-drapeau, .t-drapeau .img-drapeau { width: 1.4em; height: 1em; border-radius: 6px; }

/* ---------- Sécurité de course : SOS ---------- */
.btn.sos { background: linear-gradient(135deg, #ff3b4e, #c1121f); color: #fff; box-shadow: 0 6px 20px rgba(220, 30, 50, .35); text-decoration: none; display: flex; align-items: center; justify-content: center; }
.sos-feuille { text-align: center; }
.sos-rond { width: 74px; height: 74px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: rgba(255, 59, 78, .14); animation: sos-pouls 1.4s ease-out infinite; }
@keyframes sos-pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, .5); } 100% { box-shadow: 0 0 0 22px rgba(255, 59, 78, 0); } }
@media (prefers-reduced-motion: reduce) { .sos-rond { animation: none; } }
/* ---------- Sécurité : appareils connectés ---------- */
.appareil { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.appareil + .appareil { border-top: 1px solid var(--bord); }
.appareil .ap-ic { font-size: 1.5rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--vert-doux); }
.appareil .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- Lisibilité : taille du texte, contraste, animations ---------- */
html[data-texte="grand"] { font-size: 112.5%; }
html[data-texte="tres-grand"] { font-size: 125%; }
html[data-contraste] { --doux: #2E3B37; --tres-doux: #4A5753; --bord: rgba(11, 27, 23, .28); --bord-fort: rgba(11, 27, 23, .45); }
@media (prefers-color-scheme: dark) { html[data-contraste] { --doux: #D5E3DE; --tres-doux: #B4C6C0; --bord: rgba(255, 255, 255, .28); --bord-fort: rgba(255, 255, 255, .45); } }
html[data-contraste] a, html[data-contraste] .lien-discret { text-decoration: underline; }
html[data-calme] *, html[data-calme] *::before, html[data-calme] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.choix-taille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choix-taille button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r-petit); border: 1.5px solid var(--bord-fort); background: var(--carte); color: var(--texte); cursor: pointer; }
.choix-taille button small { font-size: .75rem; color: var(--doux); }
.choix-taille button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-doux); }
.interrupteur-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; cursor: pointer; }
.interrupteur-ligne input { width: 22px; height: 22px; accent-color: var(--vert); }
/* ---------- Score de confiance + historique scellé ---------- */
.score-confiance { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 999px; border: 0; background: var(--vert-doux); color: var(--vert-2); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; vertical-align: middle; }
.score-confiance i { font-style: normal; min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); color: #fff; font-size: .72rem; }
.conf-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.conf-chiffres div { background: var(--vert-doux); border-radius: var(--r-petit); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.conf-chiffres b { font-size: 1.05rem; }
.conf-chiffres small { font-size: .68rem; color: var(--doux); }
.conf-ligne { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bord); }
.conf-ligne .t { display: flex; flex-direction: column; }
@media (max-width: 380px) { .conf-chiffres { grid-template-columns: repeat(2, 1fr); } }
/* Carte : ma position en temps réel */
.point-moi { width: 22px; height: 22px; border-radius: 50%; background: #3B82F6; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(59, 130, 246, .6), 0 2px 8px rgba(0,0,0,.3); animation: point-moi 1.8s ease-out infinite; }
@keyframes point-moi { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .6), 0 2px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 18px rgba(59, 130, 246, 0), 0 2px 8px rgba(0,0,0,.3); } }
/* Couverture : même format partout (5:2) = exactement le cadrage choisi */
.couverture { height: auto; aspect-ratio: 5 / 2; }
@media (min-width: 760px) { .couverture { height: auto; max-height: 300px; } }
.cadre-couverture { position: relative; width: 100%; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 16px; background: #000; touch-action: none; cursor: grab; }
.cadre-couverture img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.cadre-couverture::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.6); border-radius: 16px; pointer-events: none; }
/* ---------- Vie privée : profil verrouillé, réglages ---------- */
.profil-verrouille { display: flex; gap: 12px; align-items: center; width: 100%; max-width: 420px; padding: 14px 16px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--bord-fort); box-shadow: var(--ombre); }
.profil-verrouille > span { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-doux); flex: none; }
.carte-verrou { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 12px; border-radius: var(--r); background: linear-gradient(135deg, var(--vert-doux), transparent); border: 1px solid var(--bord-fort); cursor: pointer; }
.carte-verrou .cv-ic { font-size: 1.5rem; } .carte-verrou .t { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.carte-verrou input { width: 24px; height: 24px; accent-color: var(--vert); flex: none; }
/* Demande de message d'un inconnu */
.bandeau-demande { margin: 0 12px 8px; padding: 12px 14px; border-radius: var(--r); background: var(--verre); backdrop-filter: blur(14px); border: 1px solid var(--bord-fort); box-shadow: var(--ombre); display: grid; gap: 10px; }
.bandeau-demande p { margin: 0; font-size: .9rem; }
.bandeau-demande .ligne { gap: 8px; } .bandeau-demande .btn { flex: 1; }
/* Rappel : notifications indispensables pour sonner appli fermée */
.bandeau-appels { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(135deg, rgba(255, 194, 61, .18), rgba(255, 194, 61, .06)); border: 1px solid rgba(245, 163, 0, .35); }
.bandeau-appels > span { font-size: 1.4rem; animation: cloche 2.4s ease-in-out infinite; transform-origin: 50% 0; }
.bandeau-appels p { margin: 0; flex: 1; font-size: .86rem; }
@keyframes cloche { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 92% { transform: rotate(6deg); } }
/* ---------- Taxi façon Uber ---------- */
.taxi-ecran { position: fixed; inset: 0; display: flex; flex-direction: column; }
.taxi-carte { flex: 1; }
.taxi-haut { position: absolute; top: calc(12px + var(--haut)); left: 12px; right: 12px; z-index: 500; display: flex; gap: 10px; align-items: center; }
.taxi-recherche { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 999px; background: var(--verre); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--ombre-forte); border: 1px solid var(--bord); }
.taxi-recherche input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.02rem; font-weight: 700; color: var(--texte); outline: none; min-width: 0; }
.taxi-resultats { position: absolute; top: calc(72px + var(--haut)); left: 12px; right: 12px; z-index: 600; border-radius: 20px; background: var(--carte); box-shadow: var(--ombre-forte); overflow: hidden; max-height: 50dvh; overflow-y: auto; }
.taxi-resultats button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--texte); text-align: start; font: inherit; border-bottom: 1px solid var(--bord); cursor: pointer; }
.taxi-resultats button span { display: flex; flex-direction: column; min-width: 0; } .taxi-resultats small { color: var(--doux); }
.taxi-panneau { position: relative; max-height: 58dvh; border-radius: 26px 26px 0 0; animation: none; box-shadow: var(--ombre-forte); overflow-y: auto; }
.taxi-categories { display: grid; gap: 8px; margin-top: 8px; }
.taxi-cat { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--bord-fort); background: var(--carte); color: var(--texte); font: inherit; text-align: start; cursor: pointer; transition: border-color .2s, transform .2s var(--ressort); }
.taxi-cat .em { font-size: 1.8rem; } .taxi-cat .t { flex: 1; display: flex; flex-direction: column; } .taxi-cat small { color: var(--doux); }
.taxi-cat.actif { border-color: var(--vert); background: var(--vert-doux); transform: scale(1.01); }
.taxi-eta { margin: 4px 0 10px; font-size: 1.05rem; }
.voiture-carte { font-size: 1.5rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.marqueur-chauffeur { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.marqueur-chauffeur img, .marqueur-chauffeur > :first-child:not(b) { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #F5A300; box-shadow: 0 4px 12px rgba(0,0,0,.35); background: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.marqueur-chauffeur b { background: #0B1B17; color: #fff; font: 800 11px Jakarta, system-ui; padding: 2px 7px; border-radius: 999px; }
/* Mode chauffeur */
.bouton-en-ligne { display: flex; gap: 14px; align-items: center; width: 100%; padding: 18px; border-radius: 24px; border: 0; cursor: pointer; font: inherit; text-align: start; color: #fff; background: linear-gradient(135deg, #1f2a27, #0B1B17); box-shadow: var(--ombre-forte); transition: background .4s; }
.bouton-en-ligne .t { display: flex; flex-direction: column; } .bouton-en-ligne b { font-size: 1.2rem; } .bouton-en-ligne small { opacity: .8; }
.bouton-en-ligne .bel-rond { width: 26px; height: 26px; border-radius: 50%; background: #8E9B97; flex: none; }
.bouton-en-ligne[aria-pressed="true"] { background: var(--degrade); }
.bouton-en-ligne[aria-pressed="true"] .bel-rond { background: #fff; animation: point-moi 1.6s ease-out infinite; }
.demande-course { margin-bottom: 10px; animation: entree-carte .45s var(--ressort) both; }
.demande-course .dc-cat { font-size: 1.8rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--vert-doux); }
.course-active { border: 2px solid var(--vert); }
@keyframes entree-carte { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* ---------- Portefeuille façon banque : carte Fona en relief, qui se retourne ---------- */
.carte-banque { position: relative; aspect-ratio: 1.586; perspective: 1200px; cursor: pointer; --rx: 0deg; --ry: 0deg; margin-top: 4px; }
.cb-face { position: absolute; inset: 0; border-radius: 22px; padding: 18px 20px; color: #fff; backface-visibility: hidden; transition: transform .7s var(--ressort); transform: rotateX(var(--rx)) rotateY(var(--ry)); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #1fe39a 0%, transparent 45%), radial-gradient(120% 120% at 100% 100%, #f5a300 0%, transparent 40%), linear-gradient(135deg, #07936B, #0B1B17 70%); box-shadow: 0 22px 50px rgba(7, 147, 107, .35), inset 0 1px 0 rgba(255,255,255,.25); }
.cb-face::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); animation: reflet-carte 5s ease-in-out infinite; pointer-events: none; }
@keyframes reflet-carte { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.cb-arriere { transform: rotateY(180deg); display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; background: linear-gradient(135deg, #0B1B17, #10463a); }
.carte-banque.retournee .cb-avant { transform: rotateY(-180deg); }
.carte-banque.retournee .cb-arriere { transform: rotateY(0deg); }
.cb-haut { display: flex; justify-content: space-between; align-items: center; }
.cb-marque { font-weight: 900; letter-spacing: .12em; font-size: 1.15rem; } .cb-marque small { font-weight: 600; letter-spacing: 0; opacity: .8; margin-left: 3px; }
.cb-puce { width: 46px; height: 34px; border-radius: 8px; margin: 12px 0 6px; background: linear-gradient(135deg, #ffe7a3, #d4a537); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cb-solde { display: flex; flex-direction: column; margin: 0; } .cb-solde b { font-size: 1.6rem; } .cb-solde small { opacity: .8; font-size: .72rem; }
.cb-numero { font: 700 1.05rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; margin: 10px 0 6px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.cb-bas { display: flex; justify-content: space-between; align-items: end; } .cb-bas span { display: flex; flex-direction: column; } .cb-bas small { font-size: .62rem; opacity: .75; }
.cb-sans-contact { font-weight: 900; transform: rotate(90deg); opacity: .8; }
.cb-bande { position: absolute; top: 20px; left: 0; right: 0; height: 36px; background: #000; opacity: .7; }
.cb-qr { background: #fff; padding: 8px; border-radius: 12px; margin-top: 30px; } .cb-qr svg { display: block; width: 110px; height: 110px; }
.banque-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.banque-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: var(--ombre); }
.resume-mois { display: grid; gap: 10px; }
.rm-barres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .rm-barres > div { display: flex; flex-direction: column; gap: 3px; }
.rm-barres small { color: var(--doux); } .rm-barres .vert { color: var(--vert-2); }
.rm-barres i { height: 6px; border-radius: 3px; background: var(--bord); position: relative; overflow: hidden; }
.rm-barres i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--x); background: var(--degrade); border-radius: 3px; } .rm-barres i.rouge::after { background: var(--rouge); }
.releve { width: 100%; border-collapse: collapse; font-size: .88rem; } .releve td { padding: 7px 4px; border-bottom: 1px solid var(--bord); } .releve td:last-child { text-align: end; font-weight: 700; } .releve .vert { color: var(--vert-2); }
@media print { body.impression-releve > :not(.voile) { display: none !important; } body.impression-releve .voile { position: static; background: none; } body.impression-releve .feuille { box-shadow: none; max-height: none; } body.impression-releve #imprimer { display: none; } }
@media (prefers-reduced-motion: reduce) { .cb-face::after { animation: none; } }
.cb-avant { display: flex; flex-direction: column; justify-content: space-between; }
.cb-puce { position: absolute; top: 56px; right: 20px; margin: 0; }
.cb-numero { margin: 0; }
/* Vie pro séparée : ID Pro, puce « Boutique » / « Client » */
.pro-fp { margin-top: 4px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: inherit; border-radius: 999px; padding: 3px 10px; font: 700 .72rem ui-monospace, monospace; letter-spacing: .04em; cursor: pointer; }
.puce-pro { display: inline-block; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, rgba(255,194,61,.25), rgba(15,191,127,.2)); color: var(--texte); vertical-align: middle; }
/* =====================================================================
   Couche « futuriste » : fond aurore vivant, verre dépoli, lueurs.
   S'ajoute au design existant (mêmes couleurs, même navigation) ; coupée en mode léger et si l'on réduit les animations.
   ===================================================================== */
body::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 40vmax at 15% 10%, rgba(25, 211, 138, .16), transparent 60%), radial-gradient(35vmax 35vmax at 90% 20%, rgba(59, 130, 246, .12), transparent 60%), radial-gradient(45vmax 45vmax at 70% 95%, rgba(255, 194, 61, .12), transparent 60%);
  animation: aurore 26s ease-in-out infinite alternate; }
@keyframes aurore { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-3vmax, 2vmax, 0) rotate(8deg); } 100% { transform: translate3d(2vmax, -2vmax, 0) rotate(-6deg); } }
@media (prefers-color-scheme: dark) { body::before { background: radial-gradient(40vmax 40vmax at 15% 10%, rgba(25, 211, 138, .22), transparent 60%), radial-gradient(35vmax 35vmax at 90% 20%, rgba(99, 102, 241, .2), transparent 60%), radial-gradient(45vmax 45vmax at 70% 95%, rgba(255, 194, 61, .12), transparent 60%); } }
/* Barre d'onglets : verre flottant + lueur sous l'onglet actif */
#onglets { border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 18px 50px rgba(11, 27, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .5); }
@media (prefers-color-scheme: dark) { #onglets { border-color: rgba(255, 255, 255, .1); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); } }
#onglets button[aria-current="true"] { background: linear-gradient(180deg, var(--vert-doux), rgba(15, 191, 127, .2)); box-shadow: 0 0 0 1px rgba(15, 191, 127, .25), 0 6px 18px rgba(15, 191, 127, .28); }
#onglets button[aria-current="true"]::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--vert); box-shadow: 0 0 10px var(--vert); }
/* Cartes en verre (lisibles : fond presque opaque) */
.carte { background: color-mix(in srgb, var(--carte) 88%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
/* Boutons : reflet qui passe au survol / à l'appui */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--doux-courbe); pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }
.btn.second::after { background: linear-gradient(110deg, transparent 30%, rgba(15, 191, 127, .15) 50%, transparent 70%); }
/* Titres : léger dégradé */
.entete h1 { background: linear-gradient(120deg, var(--texte) 30%, var(--vert-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-color-scheme: dark) { .entete h1 { background: linear-gradient(120deg, #fff 30%, var(--vert)); -webkit-background-clip: text; background-clip: text; } }
/* Économie : pas d'aurore en mode léger ni si l'on réduit les animations */
body.mode-leger::before, html[data-calme] body::before { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } .btn::after { display: none; } }
/* Le fond est porté par <html> : <body> transparent pour laisser voir l'aurore */
body { background: transparent; }

/* ---------- Bouton Fona : la barre « dis ce que tu veux » ---------- */
.fona-barre { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--verre); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--bord-fort); box-shadow: var(--ombre), 0 0 0 0 rgba(15, 191, 127, 0); transition: box-shadow .3s; margin-bottom: 10px; position: relative; }
.fona-barre:focus-within { box-shadow: var(--ombre), 0 0 0 4px var(--vert-doux); }
.fona-logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: conic-gradient(from 0deg, #19D38A, #3B82F6, #A78BFA, #FFC23D, #19D38A); flex: none; animation: fona-tourne 8s linear infinite; }
.fona-barre input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; font-weight: 600; }
.fona-micro { background: var(--degrade); color: #fff; width: 46px; height: 46px; }
.fona-barre.ecoute .fona-micro { animation: point-moi 1.2s ease-out infinite; background: var(--rouge); }
.fona-barre.pense .fona-logo { animation-duration: 1s; }
.fona-exemples { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; } .fona-exemples .puce { flex: none; }
@keyframes fona-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fona-logo { animation: none; } }
/* ---------- Négociation en duel ---------- */
.duel { position: relative; height: 34px; margin: -2px 6px 12px; }
.duel::before { content: ""; position: absolute; left: 4%; right: 4%; top: 10px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--vert-doux), rgba(245, 163, 0, .25)); }
.duel i { position: absolute; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: left .9s var(--ressort); }
.duel .duel-client { background: var(--vert); } .duel .duel-chauffeur { background: #F5A300; }
.duel span { position: absolute; right: 4%; top: 20px; font-size: .7rem; font-weight: 800; color: var(--doux); }
.duel .duel-accord { color: var(--vert-2); }
.duel.conclu i { left: 50% !important; }
.duel-tampon { left: 50% !important; right: auto !important; top: -6px !important; transform: translateX(-50%) rotate(-8deg); padding: 3px 12px; border: 3px solid var(--vert-2); border-radius: 8px; color: var(--vert-2) !important; font-size: .95rem !important; font-weight: 900; background: var(--carte); animation: tampon .5s .5s var(--ressort) both; }
@keyframes tampon { from { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(2.2); } }
/* Motif du pays (couverture sans photo) : voile doux pour garder le texte lisible */
.couverture.motif-pays { box-shadow: inset 0 -60px 60px -20px rgba(0,0,0,.25); animation: motif-glisse 40s linear infinite; }
@keyframes motif-glisse { to { background-position: 56px 56px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .couverture.motif-pays { animation: none; } }

/* Traduction automatique sous le message reçu */
.trad-auto { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--bord-fort); font-size: .86em; opacity: .9; font-style: italic; }

/* Soirée ciné à distance */
.seance-bandeau { position: absolute; left: 50%; top: calc(64px + var(--haut)); transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 999px; background: rgba(15, 191, 127, .85); color: #fff; font-size: .82rem; font-weight: 700; backdrop-filter: blur(8px); white-space: nowrap; }
/* Profil vivant : niveau et statut */
.niveau-profil { border: 0; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; color: #3a2600; background: linear-gradient(135deg, #FFE27A, #F5A300); box-shadow: 0 4px 14px rgba(245, 163, 0, .35); }
.statut-profil { border: 1px solid var(--bord-fort); background: var(--carte); color: var(--texte); font: inherit; font-size: .9rem; padding: 6px 14px; border-radius: 18px 18px 18px 4px; cursor: pointer; max-width: 420px; box-shadow: var(--ombre); animation: entree-carte .5s var(--ressort) both; }
.statut-musique { display: inline-block; margin-left: 4px; color: var(--vert-2); font-weight: 700; animation: musique 2.4s ease-in-out infinite; }
@keyframes musique { 50% { transform: translateY(-2px); } }