:root {
  --texte: #fff;
  --doux: rgba(255,255,255,.72);
  --verre: rgba(30,30,34,.55);
  --verre-clair: rgba(255,255,255,.16);
  --rouge: #ff3b30;
  --vert: #34c759;
  --jaune: #ffd60a;
  --violet: #8e5cf7;
  --appli-fond: #f2f2f6;
  --appli-carte: #fff;
  --appli-texte: #111;
  --appli-doux: #6e6e73;
  --accent: #ff2d6f;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #1b1b1f radial-gradient(circle at 50% 20%, #34343c, #111114 70%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  overflow: hidden;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Cadre du téléphone ---------- */
.cadre { height: 100%; display: grid; place-items: center; padding: 16px; }
.telephone {
  position: relative; overflow: hidden;
  width: 390px; height: 844px; max-height: calc(100vh - 32px);
  border-radius: 56px; background: #000;
  box-shadow: 0 0 0 11px #0b0b0c, 0 0 0 13px #3a3a3f, 0 30px 80px rgba(0,0,0,.6);
}
.ilot { position: absolute; z-index: 60; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px; border-radius: 20px; background: #000; }
@media (max-width: 500px) {
  .cadre { padding: 0; }
  .telephone { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
  .ilot { display: none; }
}

/* ---------- Fond d'écran ---------- */
.fond { position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: filter .35s, transform .35s; }
.telephone.ouvert .fond { filter: blur(0); }
.telephone.dans-appli .fond { transform: scale(1.08); filter: blur(14px) brightness(.7); }

/* ---------- Barre d'état ---------- */
.barre-etat { position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px;
  font-weight: 600; font-size: 16px; letter-spacing: .2px; pointer-events: none; transition: color .3s; }
.telephone.clair .barre-etat { color: #000; }
.barre-etat .droite { display: flex; align-items: center; gap: 6px; }
.reseau { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.reseau i { width: 3.5px; border-radius: 1px; background: currentColor; }
.reseau i.off { opacity: .3; }
.reseau .sans { font-size: 12px; font-weight: 600; }
.wifi svg { width: 17px; height: 17px; display: block; }
.wifi.off { opacity: .3; }
.batterie { display: flex; align-items: center; gap: 4px; }
.batterie .pct { font-size: 12px; font-weight: 700; }
.pile { position: relative; width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .95; }
.pile::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.pile b { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; border-radius: 1.5px; background: currentColor; }
.pile.basse b { background: var(--rouge); }
.pile.charge b { background: var(--vert); }

/* ---------- Écrans ---------- */
.ecran { position: absolute; inset: 0; z-index: 10; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.ecran.actif { opacity: 1; pointer-events: auto; transform: none; }
.barre-geste { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); cursor: pointer; }
.barre-geste::before { content: ""; position: absolute; inset: -18px -40px; }

/* Verrouillé */
.verrou { display: flex; flex-direction: column; transform: translateY(0); touch-action: none; } /* sinon le téléphone annule le glissé vers le haut (pointercancel) */
.verrou:not(.actif) { transform: translateY(-40px); }
.verrou-haut { text-align: center; padding-top: 74px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.date { font-size: 19px; font-weight: 600; text-transform: capitalize; opacity: .92; }
.grande-heure { font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -2px; margin-top: 2px;
  font-variant-numeric: tabular-nums; }
.pile-notifs { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 8px; padding: 12px 12px 20px; }
.notif { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 22px;
  background: rgba(245,245,247,.62); color: #111; backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); animation: monte .45s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.notif .app-mini { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.notif .app-mini .ico { width: 22px; height: 22px; }
.notif .contenu { flex: 1; min-width: 0; }
.notif .ligne1 { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.notif .ligne1 b { font-weight: 650; }
.notif .ligne1 span { color: rgba(0,0,0,.5); font-size: 13px; white-space: nowrap; }
.notif p { font-size: 14px; line-height: 1.3; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes monte { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.verrou-bas { display: flex; align-items: center; justify-content: space-between; padding: 0 46px 46px; }
.rond { width: 50px; height: 50px; border-radius: 50%; background: rgba(0,0,0,.32);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; }
.rond .ico { width: 22px; height: 22px; }
.indice { font-size: 13px; opacity: .8; animation: respire 2.4s infinite; }
@keyframes respire { 50% { opacity: .35; } }

/* Accueil */
.accueil { padding: 62px 22px 0; transform: scale(1.06); }
.widget { border-radius: 24px; padding: 14px 16px; background: var(--verre);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); margin-bottom: 22px; }
.widget-tete { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--doux); margin-bottom: 10px; }
.widget-tete b { color: #fff; font-size: 15px; }
.jauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.jauge { display: flex; align-items: center; gap: 8px; }
.jauge .ico { width: 18px; height: 18px; flex: none; }
.jauge .nom { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; }
.jauge .barre { height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.jauge .barre b { display: block; height: 100%; border-radius: 3px; transition: width .6s; }
.jauge > div { flex: 1; }
.jauge.alerte .nom span { color: #ff8a80; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 0; justify-items: center; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; position: relative; }
.app .carre { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.2); transition: transform .15s; }
.app:active .carre { transform: scale(.9); filter: brightness(.85); }
.app .carre .ico { width: 32px; height: 32px; }
.app .carre { overflow: hidden; }
.app .carre .vraie { width: 100%; height: 100%; display: block; object-fit: cover; }   /* icônes réalistes de Codex (10/11) */
/* Dossier « Jeux » (nos applis sur Google Play) : verre dépoli et 3 × 3 mini icônes, comme un vrai téléphone. */
.app .carre.dossier { background: rgba(255,255,255,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; grid-template-columns: repeat(3, 15px); gap: 3px; place-content: center; }
.app .carre.dossier img { width: 15px; height: 15px; border-radius: 4px; display: block; }
.dossier-ouvert { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; justify-items: center; margin: 14px 0 6px; }
.dossier-ouvert .app .nom { color: #111; text-shadow: none; font-size: 11px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
.feuille .notre-ico { width: 44px; height: 44px; border-radius: 11px; }
.feuille .bouton + .bouton, .feuille a.bouton { margin-top: 10px; }
.feuille a.bouton { text-align: center; text-decoration: none; }
.app .nom { font-size: 12px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.4); white-space: nowrap; }
.pastille { position: absolute; top: -6px; right: 0; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 12px;
  background: var(--rouge); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.points { display: flex; justify-content: center; gap: 8px; position: absolute; left: 0; right: 0; bottom: 128px; }
.points i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.points i.on { background: #fff; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 26px; height: 92px; border-radius: 34px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  display: flex; justify-content: space-around; align-items: center; }
.dock .app .nom { display: none; }

/* Couleurs des applis */
.c-followoo { background: linear-gradient(145deg, #ff5f8f, #ff2d6f 45%, #b3127a); }
.c-messages { background: linear-gradient(180deg, #5bf675, #22c94a); }
.c-mail { background: linear-gradient(180deg, #2fa8ff, #1773f0); }
.c-camera { background: linear-gradient(180deg, #d8d8dc, #9a9aa0); color: #222 !important; }
.c-agenda { background: #fff; color: #ff3b30 !important; }
.c-banque { background: linear-gradient(180deg, #2c2c34, #0d0d12); color: #e8c46a !important; }
.c-stats { background: linear-gradient(180deg, #ffb23f, #ff7a00); }
.c-musique { background: linear-gradient(180deg, #ff6a7d, #fa2d48); }
.c-reglages { background: linear-gradient(180deg, #a5a5ad, #6b6b73); }
.c-boutique { background: linear-gradient(180deg, #a77bff, #6a35e0); }
.c-photos { background: #fff; color: #ff9500 !important; }
.c-telephone { background: linear-gradient(180deg, #5bf675, #22c94a); }

/* Appli ouverte */
.appli { background: var(--appli-fond); color: var(--appli-texte); transform: scale(.9) translateY(30px); border-radius: 40px; }
.appli.actif { border-radius: 0; }
.appli-tete { display: flex; align-items: center; justify-content: space-between; padding: 54px 12px 8px;
  background: rgba(242,242,246,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 2; }
.appli-tete h1 { font-size: 17px; font-weight: 650; }
.retour, .appli-tete .vide { width: 40px; height: 36px; display: grid; place-items: center; color: #0a84ff; }
.retour .ico { width: 24px; height: 24px; stroke-width: 2.4; }
.appli-corps { position: absolute; top: 98px; bottom: 0; left: 0; right: 0; overflow-y: auto; padding: 8px 16px 60px;
  -webkit-overflow-scrolling: touch; }
.appli .barre-geste { background: rgba(0,0,0,.75); }
.groupe { background: var(--appli-carte); border-radius: 14px; overflow: hidden; margin: 10px 0 18px; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: .5px solid #e0e0e5; cursor: pointer; }
.ligne:last-child { border-bottom: 0; }
.ligne .avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 650; font-size: 17px; color: #fff; background-size: cover; background-position: center; }
.ligne .txt { flex: 1; min-width: 0; }
.ligne .txt b { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.ligne .txt b span { font-weight: 400; font-size: 13px; color: var(--appli-doux); }
.ligne .txt p { font-size: 14px; color: var(--appli-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ligne.non-lu .txt b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #0a84ff; margin: 5px 6px 0 -15px; flex: none; }
.ligne.non-lu .txt b { justify-content: flex-start; }
.ligne.non-lu .txt b span { margin-left: auto; }
.titre-section { font-size: 13px; color: var(--appli-doux); text-transform: uppercase; letter-spacing: .4px; margin: 18px 4px 6px; }
.grand-titre { font-size: 32px; font-weight: 750; margin: 2px 2px 10px; letter-spacing: -.5px; }

/* Conversation */
.fil { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.bulle { max-width: 76%; padding: 9px 13px; border-radius: 19px; font-size: 15.5px; line-height: 1.3; animation: monte .3s; }
.bulle.eux { align-self: flex-start; background: #e5e5ea; border-bottom-left-radius: 6px; }
.bulle.moi { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.bulle.tape { color: var(--appli-doux); font-style: italic; }
.reponses { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.reponses button { text-align: left; padding: 12px 14px; border-radius: 14px; background: #fff; color: #0a84ff;
  font-weight: 600; font-size: 15px; box-shadow: 0 1px 0 #d6d6db; }
.effet { font-size: 12.5px; color: var(--appli-doux); text-align: center; margin: 6px 0; }

/* Mail lu */
.mail-entete { padding: 6px 2px 14px; border-bottom: .5px solid #d6d6db; margin-bottom: 14px; }
.mail-entete h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.mail-entete p { font-size: 14px; color: var(--appli-doux); }
.mail-texte { font-size: 16px; line-height: 1.5; white-space: pre-line; }

/* Followoo */
.profil { text-align: center; padding: 10px 0 4px; }
.profil .photo { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px;
  background: #ddd center/cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); display: grid; place-items: center; color: #999; }
.profil .photo .ico { width: 44px; height: 44px; }
.profil h2 { font-size: 20px; }
.compteurs { display: flex; justify-content: center; gap: 28px; margin: 12px 0; }
.compteurs div { font-size: 13px; color: var(--appli-doux); }
.compteurs b { display: block; font-size: 18px; color: var(--appli-texte); }
.champ { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #d6d6db; font: inherit; font-size: 16px; background: #fff; margin: 8px 0; }
.bouton { display: block; width: 100%; padding: 14px; border-radius: 14px; font-weight: 650; font-size: 16px;
  background: rgba(255,255,255,.16); color: #fff; margin-top: 10px; }
.bouton.plein { background: #fff; color: #000; }
.appli .bouton { background: #e5e5ea; color: var(--appli-texte); }
.appli .bouton.plein { background: var(--accent); color: #fff; }
.grille-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 12px; }
.grille-videos div { aspect-ratio: 9/16; background: #d1d1d6; display: grid; place-items: center; color: #8e8e93; font-size: 12px; }

/* Réglages */
.fonds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fonds button { aspect-ratio: 9/19.5; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px #d6d6db; }
.fonds button.choisi { box-shadow: 0 0 0 3px #0a84ff; }
.interrupteur { margin-left: auto; width: 51px; height: 31px; border-radius: 16px; background: #e5e5ea; position: relative; transition: background .2s; flex: none; }
.interrupteur::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.interrupteur.on { background: var(--vert); }
.interrupteur.on::after { transform: translateX(20px); }
.ico-carre { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.ico-carre .ico { width: 19px; height: 19px; }

/* Bannière */
.banniere { position: absolute; z-index: 55; left: 9px; right: 9px; top: 8px; transform: translateY(-140%);
  transition: transform .45s cubic-bezier(.2,.9,.25,1.15); }
.banniere.vue { transform: translateY(44px); }
.banniere .notif { background: rgba(245,245,247,.82); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: none; }

/* Batterie vide */
.noir { background: #000; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.pile-vide { width: 90px; height: 42px; border: 3px solid #555; border-radius: 10px; position: relative; margin-bottom: 22px; }
.pile-vide::after { content: ""; position: absolute; right: -9px; top: 12px; width: 5px; height: 12px; background: #555; border-radius: 0 3px 3px 0; }
.pile-vide span { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 8px; border-radius: 4px; background: var(--rouge); animation: respire 1.4s infinite; }
.noir-titre { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.noir-texte { color: #999; font-size: 15px; line-height: 1.4; max-width: 280px; }
.noir-choix { width: 100%; max-width: 300px; margin-top: 24px; }

/* Feuille du bas */
.voile { position: absolute; inset: 0; z-index: 58; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.voile.vue { opacity: 1; pointer-events: auto; }
.feuille { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 22px 18px 18px; border-radius: 34px;
  background: #fff; color: #111; transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.voile.vue .feuille { transform: none; }
.feuille h3 { font-size: 20px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feuille p { color: #555; font-size: 15px; line-height: 1.4; }
.feuille .bouton { background: #e5e5ea; color: #111; }
.feuille .bouton.plein { background: var(--accent); color: #fff; }
.packs { display: grid; gap: 10px; margin-top: 14px; }
.pack { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f2f2f6; text-align: left; width: 100%; }
.pack .ico-carre { width: 44px; height: 44px; border-radius: 12px; }
.pack .ico-carre .ico { width: 26px; height: 26px; }
.pack b { display: block; font-size: 15px; }
.pack span { font-size: 13px; color: #666; }
.pack .prix { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }
.fiole-violette { background: linear-gradient(160deg, #b388ff, #6a1b9a); }
.fiole-jaune { background: linear-gradient(160deg, #ffe57f, #f5a300); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Clavier et saisie ---------- */
.appli.avec-clavier .appli-corps { bottom: 372px; }
.saisie { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: #d1d3d9; padding-bottom: 26px;
  animation: clavier-monte .3s cubic-bezier(.2,.8,.2,1); }
@keyframes clavier-monte { from { transform: translateY(100%); } }
.suggestions { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 6px; background: #f2f2f6; }
.suggestions button { text-align: left; padding: 9px 12px; border-radius: 12px; background: #fff; color: #111; font-size: 14px; line-height: 1.3;
  box-shadow: 0 1px 0 #c8c8cd; }
.suggestions button.choisie { background: #0a84ff; color: #fff; }
.suggestions.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.barre-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: #f2f2f6; border-top: .5px solid #d6d6db; }
.champ-saisie { flex: 1; min-height: 36px; padding: 8px 14px; border-radius: 18px; background: #fff; border: 1px solid #d6d6db;
  font-size: 15.5px; line-height: 1.3; color: #111; }
.champ-saisie .ph { color: #a1a1a6; }
.curseur { display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #0a84ff; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.envoyer { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #c7c7cc; color: #fff; display: grid; place-items: center; margin-bottom: 1px; }
.envoyer .ico { width: 18px; height: 18px; }
.envoyer.pret { background: #0a84ff; }
.touches { padding: 6px 3px 0; }
.rangee { display: flex; justify-content: center; gap: 5px; margin-bottom: 9px; }
.touche { flex: 1; max-width: 33px; height: 42px; border-radius: 6px; background: #fff; color: #111; display: grid; place-items: center;
  font-size: 21px; box-shadow: 0 1px 0 #898a8d; cursor: pointer; }
.touche.large { max-width: 44px; flex: 1.3; background: #abb0ba; font-size: 16px; }
.touche.espace { max-width: none; flex: 5; font-size: 15px; }
.touche.appuyee { background: #b8bcc4; transform: translateY(1px); }
.vu { align-self: flex-end; font-size: 11.5px; color: var(--appli-doux); margin: -2px 4px 2px; }
.points-tape { display: flex; gap: 4px; padding: 13px 14px; }
.points-tape i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; animation: rebond 1.2s infinite; }
.points-tape i:nth-child(2) { animation-delay: .15s; }
.points-tape i:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.redaction { background: #fff; border-radius: 14px; overflow: hidden; }
.redaction div { padding: 12px 14px; border-bottom: .5px solid #e0e0e5; font-size: 15px; }
.redaction span { color: var(--appli-doux); margin-right: 6px; }
.mail-reponse { margin-top: 18px; padding: 12px 14px; background: #fff; border-left: 3px solid #0a84ff; border-radius: 10px; font-size: 15px; line-height: 1.4; }
.mail-reponse b { display: block; font-size: 13px; color: var(--appli-doux); margin-bottom: 4px; }
.envoye { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 120px; color: #0a84ff; font-weight: 650; }
.envoye .ico { width: 54px; height: 54px; animation: monte .4s; }

.vignette { background-size: cover; background-position: center; cursor: pointer; }
.photo-pleine { display: block; width: calc(100% + 32px); margin: -8px -16px; }

/* ---------- Ce que voient ses yeux autour du téléphone ---------- */
body { background: #111 var(--decor, none) center/cover no-repeat; }
body::before { content: ""; position: fixed; inset: 0; backdrop-filter: blur(6px) brightness(.55); -webkit-backdrop-filter: blur(6px) brightness(.55); }
.cadre { position: relative; }
/* Téléphone posé : écran éteint ; une notification l'allume un instant */
.telephone.veille .ecran, .telephone.veille .fond, .telephone.veille .barre-etat { opacity: 0 !important; transition: opacity .6s; }
.telephone.veille.flash .ecran.verrou, .telephone.veille.flash .fond, .telephone.veille.flash .barre-etat { opacity: 1 !important; }

.suggestions { max-height: 210px; overflow-y: auto; }
.suggestions button:disabled { opacity: .45; }
.suggestions button em { display: block; font-style: normal; font-size: 12px; color: #ff3b30; margin-top: 2px; }
.ligne.ko { opacity: .5; cursor: default; }
.coche { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c7c7cc; flex: none; }
.badge-niveau { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 10px; background: #ffe4ee; color: var(--accent); font-size: 12px; font-weight: 700; }
.onglets { display: flex; gap: 6px; margin: 4px 0 8px; }
.onglets button { flex: 1; padding: 9px; border-radius: 10px; background: #e5e5ea; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.onglets button.on { background: #111; color: #fff; }
.pastille.petite { position: static; min-width: 18px; height: 18px; font-size: 11px; }
.bouton .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.tuile-video { position: relative; aspect-ratio: 9/16; padding: 8px; display: flex !important; flex-direction: column; justify-content: space-between; align-items: flex-start !important;
  background: linear-gradient(160deg, #3a2d5c, #b3127a) !important; color: #fff !important; font-size: 11px; line-height: 1.25; text-align: left; }
.tuile-video.viral { background: linear-gradient(160deg, #ff7a00, #ff2d6f) !important; }
.tuile-video.flop { background: linear-gradient(160deg, #3a3a40, #6b6b73) !important; }
.tuile-video b { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.tuile-video b .ico { width: 12px; height: 12px; fill: #fff; }
.viseur { margin: -8px -16px; height: calc(100% + 68px); min-height: 640px; background: #000 center/cover; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 70px; color: #fff; }
.viseur p { background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 22px; text-align: center; max-width: 80%; }
.rec { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: respire 1s infinite; }
.declencheur { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.declencheur span { width: 30px; height: 30px; border-radius: 7px; background: #ff3b30; }
.live { padding: 16px; text-align: center; }
.live p { font-size: 13px; color: var(--appli-doux); }
.gros-chiffre { font-size: 44px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.gros-chiffre small { font-size: 16px; font-weight: 600; color: var(--appli-doux); }
.barre-live { height: 6px; border-radius: 3px; background: #e5e5ea; overflow: hidden; margin-bottom: 8px; }
.barre-live b { display: block; height: 100%; background: linear-gradient(90deg, #ff2d6f, #ff9f0a); transition: width 1s linear; }
.mail-photo { width: 100%; border-radius: 12px; margin-bottom: 14px; display: block; }
a.bouton { text-align: center; text-decoration: none; }

/* ---------- Live ---------- */
.live-ecran { justify-content: flex-end; }
.coeurs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.coeurs i { position: absolute; bottom: 110px; font-style: normal; font-size: 26px; animation: envol 3s ease-out forwards; }
@keyframes envol { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1); } 100% { transform: translateY(-420px) translateX(-30px) scale(1.1); opacity: 0; } }
.com-live { position: absolute; left: 12px; bottom: 170px; width: 62%; display: flex; flex-direction: column; gap: 6px; }
.com-live p { background: rgba(0,0,0,.4); border-radius: 12px; padding: 5px 10px; font-size: 13px; line-height: 1.3; animation: monte .3s; width: fit-content; max-width: 100%; margin: 0; text-align: left; }
.com-live b { margin-right: 4px; }
.cadeau-live { position: absolute; left: 12px; top: 64px; display: flex; align-items: center; gap: 6px; padding: 6px 14px 6px 6px; border-radius: 22px;
  background: linear-gradient(90deg, rgba(255,45,111,.9), rgba(255,159,10,.9)); font-size: 13px; opacity: 0; }
.cadeau-live span { font-size: 26px; }
.cadeau-live.vu { animation: cadeau 2.6s ease-out; }
@keyframes cadeau { 0% { opacity: 0; transform: translateX(-30px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.viseur .gains-live { font-size: 13px; }

/* ---------- Le joueur sait toujours quoi faire ---------- */
.guide { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: -10px 0 18px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,.9); color: #111; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.guide b { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); white-space: nowrap; }
.guide span { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.25; }
.guide .fleche { width: 16px; height: 16px; transform: rotate(180deg); color: #999; flex: none; }
.app.a-faire .carre { animation: appel 1.6s ease-in-out infinite; }
@keyframes appel { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.0), 0 2px 8px rgba(0,0,0,.2); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.55), 0 2px 8px rgba(0,0,0,.2); } }
.rec { white-space: nowrap; }
.live-ecran .com-live { bottom: 200px; }
.live-ecran .gains-live { margin-bottom: 14px; }

/* ---------- La qualité de l'image suit le matériel (seule la photo est abîmée, pas l'écran) ---------- */
.viseur { overflow: hidden; isolation: isolate; }
.viseur::before { content: ""; position: absolute; inset: -6px; z-index: -1; background: var(--photo) center/cover no-repeat; }
.viseur::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.viseur.qualite-1::before { filter: saturate(.75) contrast(.9) brightness(.92) blur(.8px); animation: tremble .35s steps(2) infinite; }
.viseur.qualite-1::after { opacity: .4; background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.2) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.viseur.qualite-2::before { filter: saturate(.92) contrast(.97); animation: tremble 1.2s steps(2) infinite; }
.viseur.qualite-3::before { filter: saturate(1.08) contrast(1.05); }
@keyframes tremble { 0% { transform: translate(0, 0); } 50% { transform: translate(2px, -1.5px); } 100% { transform: translate(-1.5px, 2px); } }

/* ---------- Vocaux ---------- */
.bulle.vocal { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 210px; }
.vocal .lecture { width: 30px; height: 30px; border-radius: 50%; background: #0a84ff; color: #fff; display: grid; place-items: center; flex: none; }
.vocal .lecture .ico { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.vocal .onde { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.vocal .onde i { width: 3px; border-radius: 2px; background: #9a9aa0; }
.vocal .onde i.lu { background: #0a84ff; }
.vocal .duree { font-size: 12px; color: #6e6e73; }
.vocal.joue .lecture { animation: respire 1s infinite; }
/* ---------- Appel ---------- */
.appel { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between; padding: 110px 30px 70px;
  background: linear-gradient(180deg, rgba(40,40,48,.92), rgba(10,10,14,.97)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: monte .35s; }
.appel.part { opacity: 0; transition: opacity .3s; }
.appel-haut { text-align: center; }
.avatar-appel { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 40px; font-weight: 700; }
.appel h2 { font-size: 32px; font-weight: 600; }
.appel p { color: rgba(255,255,255,.7); margin-top: 6px; font-size: 17px; }
.appel-boutons { display: flex; justify-content: space-around; }
.appel-boutons button { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.appel-boutons .ico { width: 32px; height: 32px; fill: #fff; }
.appel-boutons .rouge { background: #ff3b30; }
.appel-boutons .rouge .ico { transform: rotate(135deg); }
.appel-boutons .vert { background: #34c759; animation: respire 1.2s infinite; }
.appel.en-ligne .appel-boutons { justify-content: center; }
/* ---------- Pour toi ---------- */
.pour-toi { position: relative; margin: -8px -16px; height: calc(100% + 68px); min-height: 640px; background: #000; overflow: hidden; }
.pour-toi video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.sous-titre { position: absolute; left: 10%; right: 10%; top: 44%; text-align: center; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2;
  text-shadow: 0 2px 0 #000, 0 0 6px rgba(0,0,0,.8); -webkit-text-stroke: .6px #000; }
.pt-infos { position: absolute; left: 14px; bottom: 120px; color: #fff; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pt-infos span { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.pt-infos .ico { width: 18px; height: 18px; fill: #ff2d6f; stroke: #ff2d6f; }
.pt-suivant { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); padding: 10px 18px; border-radius: 20px; background: rgba(255,255,255,.2);
  color: #fff; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.bientot { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #ffe4ee; color: #b3127a; font-weight: 600; text-align: center; }

/* Glisser dans « Pour toi », comme sur un vrai réseau */
.pour-toi { touch-action: none; user-select: none; }

/* Like Rush, le petit jeu du téléphone */
.c-likerush { background: linear-gradient(145deg, #3a2a66, #1a1230); color: #ff2d6f !important; }
.lr { position: relative; margin: -8px -16px; min-height: calc(100% + 68px); padding: 14px 14px 70px; background: radial-gradient(120% 60% at 50% 0%, #2a1d45, #14101f 60%); color: #fff; }
.lr-haut { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #a59fbb; }
.lr-haut b { font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.lr-barre { height: 5px; border-radius: 3px; background: #ffffff1a; overflow: hidden; margin: 10px 0 6px; }
.lr-barre i { display: block; height: 100%; background: linear-gradient(90deg, #ff2d6f, #ff9f0a); transform-origin: left; }
.lr-piece { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.lr-piece > span svg { width: 40px; height: 40px; filter: drop-shadow(0 3px 8px #0008); }
.lr-piece small { display: flex; align-items: center; gap: 6px; color: #a59fbb; font-size: 12px; }
.lr-piece small svg { width: 22px; height: 22px; }
.lr-grille { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 5px; border-radius: 16px; background: #ffffff08; }
.lr-col { display: grid; grid-template-rows: repeat(8, 1fr); gap: 5px; border-radius: 10px; cursor: pointer; }
.lr-col:active { background: #ffffff12; }
.lr-case { aspect-ratio: 1; border-radius: 9px; background: #221b33; display: grid; place-items: center; }
.lr-case svg { width: 76%; height: 76%; }
.lr-case.pop svg { animation: lr-pop .26s ease forwards; }
@keyframes lr-pop { to { transform: scale(1.6); opacity: 0; } }
.lr .effet { color: #a59fbb; margin-top: 10px; }
.lr-fin { position: absolute; inset: 0; background: #0b0912e8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; text-align: center; }
.lr-fin p { color: #a59fbb; }
.lr-fin p:first-child { color: #fff; font-size: 22px; font-weight: 700; }
.lr-fin b { font-size: 40px; }
.lr-fin .bouton { margin-top: 14px; max-width: 240px; }

/* Les galères du téléphone */
.feuille { max-height: calc(100% - 60px); overflow-y: auto; }
.telephone.g-lunettes .ecran, .telephone.g-lunettes .banniere, .telephone.g-lunettes .barre-etat, .telephone.g-lunettes .pop-virus { filter: blur(5px) saturate(.9); }
.fissure { display: none; position: absolute; inset: 0; z-index: 54; pointer-events: none; }
.fissure svg { width: 100%; height: 100%; display: block; }
.telephone.g-ecran .fissure { display: block; }
.zone-morte { display: none; position: absolute; z-index: 54; top: 40px; right: 0; width: 48%; height: 26%; }
.telephone.g-ecran .zone-morte { display: block; }
/* Les pannes : comme l'écran d'un vrai téléphone (fond noir, texte sobre, rien de « jeu ») */
.panne { background: #000; color: #fff; z-index: 46; display: flex; flex-direction: column; padding: 70px 34px 40px; text-align: center; }
.panne-centre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.panne-bas { width: 100%; }
.panne-bas .bouton { margin-top: 10px; background: #1c1c1e; color: #fff; font-size: 14px; padding: 12px; }
.panne-bas .bouton.plein { background: #fff; color: #000; }
.panne .noir-titre { font-size: 20px; font-weight: 600; margin: 14px 0 4px; }
.panne .noir-texte { color: #c7c7cc; font-size: 15px; }
.panne-ico .ico { width: 64px; height: 64px; stroke-width: 1.4; }
.panne-ico.rouge { color: #ff9f0a; }
.panne-ico.bleu { color: #64d2ff; }
.panne-petit { position: absolute; bottom: 40px; left: 0; right: 0; color: #fff; font-size: 15px; }
.panne-chaud .panne-bas, .panne-eau .panne-bas { margin-bottom: 40px; }
.panne-code { background: var(--fond-verrou) center/cover; }
.panne-code::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.panne-code > * { position: relative; }
.panne-code .panne-ico .ico { width: 34px; height: 34px; stroke-width: 1.8; }
.panne-code .noir-titre { font-size: 26px; }
.panne-maj .panne-logo .ico { width: 70px; height: 70px; stroke-width: 1.3; color: #fff; }
.panne-progression { width: 150px; height: 4px; border-radius: 2px; background: #3a3a3c; margin: 34px 0 14px; overflow: hidden; }
.panne-progression i { display: block; height: 100%; width: 3%; background: #fff; transition: width 1s linear; }
.panne-maj .noir-texte { font-size: 13px; color: #8e8e93; }

/* Les pubs du virus : de fausses pages de navigateur, criardes, qui s'empilent */
.pop-virus { position: absolute; z-index: 56; padding: 0 0 14px; border-radius: 12px; text-align: center; overflow: hidden;
  background: #fff; color: #111; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.15); font-family: Arial, sans-serif; }
.pv-url { display: flex; align-items: center; justify-content: space-between; background: #f2f2f2; border-bottom: 1px solid #ddd; padding: 5px 8px; font-size: 10px; color: #555; }
.pv-url button { width: 16px; height: 16px; font-size: 9px; border: 0; background: transparent; color: #999; cursor: pointer; padding: 0; }
.pop-virus b { display: block; font-size: 20px; font-weight: 900; padding: 12px 12px 4px; letter-spacing: -.3px; }
.pop-virus p { font-size: 13px; padding: 0 14px; line-height: 1.3; }
.pv-bouton { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #fff; animation: respire .7s infinite; }
.pop-virus.jaune b { color: #e60000; background: linear-gradient(#fff200, #ffb300); } .pop-virus.jaune .pv-bouton { background: #00a000; }
.pop-virus.rouge b { color: #fff; background: #d70000; } .pop-virus.rouge .pv-bouton { background: #d70000; }
.pop-virus.rose b { color: #fff; background: linear-gradient(90deg, #ff00a8, #7a00ff); } .pop-virus.rose .pv-bouton { background: #ff00a8; }
.pop-virus.vert b { color: #ffe600; background: #0b5d1e; } .pop-virus.vert .pv-bouton { background: #ff8a00; }
.pop-virus.bleu b { color: #fff; background: #0047b3; font-size: 17px; } .pop-virus.bleu .pv-bouton { background: #ffcc00; color: #111; }

/* Sa vraie photo de profil (en option, dès 1 000 abonnés) */
.profil .photo.modifiable { cursor: pointer; position: relative; }
.profil .photo.modifiable::after { content: "+"; position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; line-height: 23px; text-align: center; border: 2px solid #fff; }

/* Like Rush : qu'on sache tout de suite où toucher (sa demande du 10/11 : « hyper intuitif ») */
.lr-rec { display: flex; align-items: center; gap: 8px; }
.lr-aide-btn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #a59fbb; background: transparent; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.lr-piece > span { display: flex; align-items: center; gap: 8px; }
.lr-piece em { font-style: normal; font-size: 12px; color: #a59fbb; }
.lr-fleches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 0 5px 4px; }
.lr-fleches button { height: 24px; border: 0; border-radius: 8px; background: #ffffff14; color: #ff2d6f; font-size: 12px; cursor: pointer; animation: lr-appel 1.6s ease-in-out infinite; }
.lr-fleches button:disabled { opacity: .2; animation: none; }
@keyframes lr-appel { 50% { transform: translateY(3px); } }
.lr-case.cible { outline: 1.5px dashed #ffffff55; outline-offset: -3px; }
.lr-case.cible svg { opacity: .28; }
.lr-col.pleine { opacity: .55; }
.lr-col.secoue { animation: lr-non .35s; }
@keyframes lr-non { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lr-aide { position: absolute; inset: 0; z-index: 3; background: #0b0912f2; padding: 26px 20px; display: flex; flex-direction: column; justify-content: center; }
.lr-aide h3 { font-size: 22px; margin-bottom: 14px; text-align: center; }
.lr-aide ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 14px; }
.lr-aide li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; color: #e6e1f5; }
.lr-ex { flex: 0 0 64px; height: 40px; border-radius: 10px; background: #221b33; display: flex; align-items: center; justify-content: center; gap: 1px; }
.lr-ex svg { width: 20px; height: 20px; }
.lr-ex:first-child svg:only-child { width: 28px; height: 28px; }
.lr-doigt { font-size: 22px; color: #fff; }
.lr-mini-barre { padding: 0 10px; }
.lr-mini-barre i { display: block; width: 100%; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ff2d6f 40%, #ffffff22 40%); }
.lr-grille, .lr-fleches { width: 84%; margin-left: auto; margin-right: auto; }
.lr { padding-top: 10px; }
.lr-piece { height: 40px; }
