/* Ta life — feuille de style de l'application. Charte WILO : noir pétant, bleu électrique, Montserrat. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noir: #06070a;
  --noir-2: #0d0f15;
  --noir-3: #141824;
  --bord: rgba(255, 255, 255, .08);
  --bord-fort: rgba(255, 255, 255, .16);
  --blanc: #ffffff;
  --texte: #e9edf5;
  --texte-2: #a6afc3;
  --texte-3: #6f788e;
  --bleu: #0763ff;
  --bleu-2: #1aa0ff;
  --bleu-doux: #77a7da;
  --degrade: linear-gradient(100deg, #0a4dff 0%, #0770ff 45%, #1aa0ff 100%);
  --ok: #2fd18a;
  --alerte: #ffb454;
  --erreur: #ff6b6b;
  --rayon: 16px;
  --rayon-s: 10px;
  --ombre: 0 20px 60px rgba(0, 0, 0, .45);
  --police: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --barre-h: 60px;
  --lateral-l: 250px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--noir); color-scheme: dark; }
body { margin: 0; height: 100%; overflow: hidden; background: var(--noir); color: var(--texte); font-family: var(--police); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: rgba(26, 160, 255, .35); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }

#appli { height: 100%; height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.scene { position: relative; min-height: 0; overflow: hidden; }
.lateral { display: none; }

/* ------------------------------------------------------------------ barre du bas (mobile) */
.barre { display: flex; align-items: stretch; justify-content: space-around; height: calc(var(--barre-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--noir); border-top: 1px solid var(--bord); position: relative; z-index: 20; }
.barre a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--texte-3); font-size: 10px; font-weight: 600; letter-spacing: .02em; position: relative; }
.barre a .ico { width: 24px; height: 24px; }
.barre a.actif { color: var(--blanc); }
.barre a.plus .ico { width: 44px; height: 30px; border-radius: 10px; background: var(--degrade); color: #fff; padding: 4px 10px; box-shadow: 0 6px 18px rgba(7, 99, 255, .4); }
.barre a.plus span.lib { display: none; }
.badge { position: absolute; top: 8px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--erreur); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------------ icônes */
.ico { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.plein svg { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: baseline; gap: .18em; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.logo b { color: #fff; font-weight: 800; }
.logo i { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.logo-ico { width: 34px; height: 34px; border-radius: 9px; }

/* ------------------------------------------------------------------ flux vertical */
.flux { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.flux::-webkit-scrollbar { display: none; }
.carte { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.carte video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.carte.paysage video { object-fit: contain; }
.carte .voile-bas { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.carte .voile-haut { position: absolute; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.carte .infos { position: absolute; left: 14px; right: 84px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.carte .infos .pseudo { font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 6px; }
.carte .infos .pseudo .ico { width: 16px; height: 16px; color: var(--bleu-2); }
.carte .infos .legende { font-size: .95rem; max-height: 4.4em; overflow: hidden; }
.carte .infos .legende.ouverte { max-height: none; }
.carte .infos .legende a { font-weight: 700; color: #cfe6ff; }
.carte .infos .meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: #cfd6e4; }
.carte .infos .etiquette-v { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255, 180, 84, .18); color: #ffd79b; border: 1px solid rgba(255, 180, 84, .35); width: max-content; }
.carte .rail { position: absolute; right: 10px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.carte .rail button, .carte .rail a.avatar-lien { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-size: .74rem; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.carte .rail .ico { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); transition: transform .15s; }
.carte .rail button:active .ico { transform: scale(.85); }
.carte .rail .aime .ico { color: #ff3b5c; }
.carte .rail .aime .ico, .carte .rail .favori-actif .ico { animation: pop .35s ease; }
.carte .rail .favori-actif .ico { color: var(--bleu-2); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.avatar-lien { position: relative; margin-bottom: 6px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--noir-3); border: 2px solid #fff; display: block; }
.avatar.lettre { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--degrade); text-transform: uppercase; }
.avatar-lien .suivre { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.avatar-lien .suivre .ico { width: 14px; height: 14px; filter: none; }
.avatar-lien .suivre.ok { background: var(--ok); }
.carte .progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.carte .progression i { display: block; height: 100%; width: 0; background: var(--degrade); }
.carte .pause-ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; color: rgba(255, 255, 255, .85); pointer-events: none; opacity: 0; transition: opacity .15s; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.carte.en-pause .pause-ico { opacity: 1; }
.carte .coeur-anim { position: absolute; width: 110px; height: 110px; color: #ff3b5c; pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: coeur .8s ease forwards; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
@keyframes coeur { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1.15) rotate(-8deg); } 60% { transform: translate(-50%, -50%) scale(1) rotate(4deg); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1.1); opacity: 0; } }
.carte .chargeur { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.carte.masquee video { filter: grayscale(.6) brightness(.6); }

.flux .fin, .flux .vide { height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; color: var(--texte-2); }
.flux .vide .ico { width: 54px; height: 54px; color: var(--bleu-2); }
.flux .vide h3 { color: #fff; font-size: 1.2rem; }

/* en-tête flottant du flux */
.entete-flux { position: absolute; top: calc(var(--safe-t) + 8px); left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 14px; pointer-events: none; }
.entete-flux > * { pointer-events: auto; }
.entete-flux .onglets { display: flex; gap: 22px; }
.entete-flux .onglets button { font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, .6); padding: 8px 2px; position: relative; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.entete-flux .onglets button.actif { color: #fff; }
.entete-flux .onglets button.actif::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 3px; border-radius: 2px; background: var(--degrade); }
.entete-flux .coin { position: absolute; top: 4px; display: flex; gap: 8px; }
.entete-flux .coin.droite { right: 10px; }
.entete-flux .coin.gauche { left: 10px; }
.bouton-rond { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.bouton-rond .ico { width: 22px; height: 22px; }
.entete-flux .titre { font-weight: 800; font-size: 1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); padding: 8px 0; }
.son-pastille { position: absolute; top: calc(var(--safe-t) + 60px); left: 50%; transform: translateX(-50%); z-index: 6; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); border: 1px solid var(--bord-fort); display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; animation: monter .3s ease; }
@keyframes monter { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ------------------------------------------------------------------ pages classiques */
.page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: calc(var(--safe-t) + 12px) 16px 24px; -webkit-overflow-scrolling: touch; }
.page.sans-marge { padding-left: 0; padding-right: 0; }
.entete-page { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.entete-page h1 { font-size: 1.25rem; font-weight: 800; flex: 1; }
.entete-page .retour { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.sur-titre { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu-2); }
.sur-titre::before { content: ""; width: 22px; height: 2px; background: var(--degrade); border-radius: 2px; }
.muet { color: var(--texte-2); font-size: .9rem; }
.petit { font-size: .8rem; color: var(--texte-3); }
.carte-panneau { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; }
.liste-simple > * + * { border-top: 1px solid var(--bord); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; background: var(--degrade); color: #fff; box-shadow: 0 8px 22px rgba(7, 99, 255, .3); transition: transform .12s, filter .12s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.btn.secondaire { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: none; border: 1px solid var(--bord-fort); }
.btn.danger { background: rgba(255, 107, 107, .14); color: #ffb3b3; box-shadow: none; border: 1px solid rgba(255, 107, 107, .35); }
.btn.petit-btn { padding: 7px 14px; font-size: .85rem; }
.btn.bloc { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* champs */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label { font-size: .8rem; font-weight: 700; color: var(--texte-2); letter-spacing: .03em; }
.champ input, .champ textarea, .champ select { width: 100%; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--noir-3); border: 1px solid var(--bord); color: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--bleu-2); box-shadow: 0 0 0 3px rgba(26, 160, 255, .18); }
.champ textarea { min-height: 90px; resize: vertical; }
.champ .aide { font-size: .78rem; color: var(--texte-3); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--texte-2); margin: 10px 0; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--bleu); flex: none; margin-top: 1px; }
.erreur-txt { padding: 10px 12px; border-radius: var(--rayon-s); background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); color: #ffb3b3; font-size: .88rem; margin-bottom: 12px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.interrupteur input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--noir-3); border: 1px solid var(--bord-fort); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interrupteur input:checked { background: var(--bleu); border-color: var(--bleu); }
.interrupteur input:checked::after { transform: translateX(18px); }

/* ------------------------------------------------------------------ feuilles (bottom sheets) et modales */
#voiles { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); pointer-events: auto; animation: fondu .2s ease; display: flex; align-items: flex-end; justify-content: center; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.feuille { width: 100%; max-width: 560px; max-height: 88%; background: var(--noir-2); border: 1px solid var(--bord); border-bottom: 0; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: glisser .25s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--ombre); padding-bottom: var(--safe-b); }
@keyframes glisser { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.feuille .poignee { width: 42px; height: 4px; border-radius: 2px; background: var(--bord-fort); margin: 10px auto 4px; flex: none; }
.feuille .tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; border-bottom: 1px solid var(--bord); flex: none; }
.feuille .tete h2 { font-size: 1rem; font-weight: 800; }
.feuille .tete .fermer { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); }
.feuille .corps { overflow-y: auto; padding: 14px 18px; flex: 1; min-height: 0; }
.feuille .pied { flex: none; border-top: 1px solid var(--bord); padding: 10px 14px; background: var(--noir-2); }
.feuille.haute { height: 75%; }

/* menu d'actions */
.menu-actions { display: flex; flex-direction: column; }
.menu-actions button { display: flex; align-items: center; gap: 12px; padding: 14px 6px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--bord); }
.menu-actions button:last-child { border-bottom: 0; }
.menu-actions button .ico { color: var(--texte-2); }
.menu-actions button.danger { color: #ffb3b3; }
.menu-actions button.danger .ico { color: #ff8a8a; }

/* ------------------------------------------------------------------ commentaires */
.commentaire { display: flex; gap: 10px; padding: 10px 0; }
.commentaire .avatar { width: 36px; height: 36px; border: 0; font-size: .85rem; }
.commentaire .contenu { flex: 1; min-width: 0; }
.commentaire .qui { font-size: .8rem; font-weight: 700; color: var(--texte-2); display: flex; gap: 6px; align-items: center; }
.commentaire .qui .ico { width: 13px; height: 13px; color: var(--bleu-2); }
.commentaire .texte { white-space: pre-wrap; word-break: break-word; margin: 2px 0 4px; }
.commentaire .texte a { color: #8ec3ff; font-weight: 600; }
.commentaire .actions { display: flex; flex-wrap: wrap; gap: 4px 14px; white-space: nowrap; font-size: .78rem; color: var(--texte-3); }
.commentaire .actions button { font-weight: 600; color: var(--texte-3); display: inline-flex; align-items: center; gap: 4px; }
.commentaire .actions button.actif { color: #ff3b5c; }
.commentaire .actions .ico { width: 15px; height: 15px; }
.commentaire .reponses { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--bord); }
.commentaire .a-verifier { display: inline-block; font-size: .68rem; color: #ffd79b; background: rgba(255, 180, 84, .16); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.saisie-commentaire { display: flex; gap: 8px; align-items: flex-end; }
.saisie-commentaire textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px; background: var(--noir-3); border: 1px solid var(--bord); resize: none; outline: none; color: #fff; }
.saisie-commentaire textarea:focus { border-color: var(--bleu-2); }
.saisie-commentaire button { width: 42px; height: 42px; border-radius: 50%; background: var(--degrade); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.saisie-commentaire button:disabled { opacity: .4; }
.repondre-a { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--texte-2); padding: 0 4px 8px; }

/* ------------------------------------------------------------------ profil */
.profil-tete { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 12px; }
.profil-tete .avatar { width: 96px; height: 96px; font-size: 2rem; border: 3px solid var(--noir-3); box-shadow: 0 0 0 2px var(--bleu); }
.profil-tete h1 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.profil-tete h1 .ico { width: 18px; height: 18px; color: var(--bleu-2); }
.profil-tete .nom2 { color: var(--texte-2); font-size: .9rem; }
.profil-tete .bio { color: var(--texte); max-width: 420px; white-space: pre-wrap; font-size: .9rem; }
.profil-chiffres { display: flex; gap: 26px; justify-content: center; padding: 8px 0; }
.profil-chiffres div { text-align: center; }
.profil-chiffres b { display: block; font-size: 1.15rem; font-weight: 800; }
.profil-chiffres span { font-size: .75rem; color: var(--texte-3); font-weight: 600; }
.profil-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.onglets-profil { display: flex; border-bottom: 1px solid var(--bord); margin: 10px -16px 0; }
.onglets-profil button { flex: 1; padding: 12px 0; font-weight: 700; color: var(--texte-3); display: flex; justify-content: center; gap: 6px; border-bottom: 2px solid transparent; }
.onglets-profil button.actif { color: #fff; border-bottom-color: var(--bleu-2); }
.onglets-profil .ico { width: 18px; height: 18px; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 2px -16px 0; }
.grille a { position: relative; aspect-ratio: 9 / 14; background: var(--noir-3); overflow: hidden; display: block; }
.grille a img { width: 100%; height: 100%; object-fit: cover; }
.grille a .vues { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.grille a .vues .ico { width: 14px; height: 14px; }
.grille a .etat { position: absolute; top: 6px; right: 6px; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 180, 84, .9); color: #2b1a00; }
.grille a .sans-affiche { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--texte-3); }
.grille-vide { padding: 40px 16px; text-align: center; color: var(--texte-3); }

/* ------------------------------------------------------------------ découvrir */
.recherche { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--noir-3); border: 1px solid var(--bord); margin-bottom: 18px; }
.recherche input { flex: 1; background: none; border: 0; outline: none; color: #fff; }
.recherche .ico { color: var(--texte-3); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(7, 99, 255, .14); color: #8ec3ff; border: 1px solid rgba(26, 160, 255, .25); font-size: .85rem; font-weight: 600; }
.puce small { color: var(--bleu-doux); font-weight: 600; }
.createurs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.createurs::-webkit-scrollbar { display: none; }
.createur { flex: none; width: 128px; padding: 14px 10px; border-radius: var(--rayon); background: rgba(255, 255, 255, .03); border: 1px solid var(--bord); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.createur .avatar { width: 56px; height: 56px; border: 0; }
.createur b { font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.createur small { color: var(--texte-3); font-size: .72rem; }
.createur .btn { padding: 6px 12px; font-size: .78rem; }
.grille.decouvrir { margin: 0; gap: 4px; grid-template-columns: repeat(2, 1fr); }
.grille.decouvrir a { border-radius: var(--rayon-s); }
.grille.decouvrir .legende-mini { position: absolute; left: 8px; right: 8px; bottom: 24px; font-size: .78rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ligne-utilisateur { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ligne-utilisateur .avatar { width: 46px; height: 46px; border: 0; }
.ligne-utilisateur .txt { flex: 1; min-width: 0; }
.ligne-utilisateur b { display: flex; align-items: center; gap: 5px; }
.ligne-utilisateur b .ico { width: 14px; height: 14px; color: var(--bleu-2); }
.ligne-utilisateur small { color: var(--texte-3); display: block; }

/* ------------------------------------------------------------------ notifications */
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.notif.non-lue { background: linear-gradient(90deg, rgba(7, 99, 255, .08), transparent); margin: 0 -16px; padding: 12px 16px; }
.notif .avatar { width: 44px; height: 44px; border: 0; }
.notif .txt { flex: 1; min-width: 0; font-size: .9rem; }
.notif .txt b { font-weight: 800; }
.notif .txt small { display: block; color: var(--texte-3); }
.notif .mini { width: 40px; height: 54px; border-radius: 6px; object-fit: cover; background: var(--noir-3); flex: none; }
.notif .type-ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(7, 99, 255, .15); color: var(--bleu-2); flex: none; }

/* ------------------------------------------------------------------ publier */
.publier-choix { display: grid; gap: 14px; margin-top: 10px; }
.publier-choix button { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--rayon); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--bord); text-align: left; }
.publier-choix button .ico { width: 44px; height: 44px; color: var(--bleu-2); flex: none; }
.publier-choix button b { display: block; font-size: 1.05rem; }
.publier-choix button small { color: var(--texte-2); }
.regle-15 { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--rayon); background: rgba(7, 99, 255, .1); border: 1px solid rgba(26, 160, 255, .25); margin-bottom: 16px; }
.regle-15 .chiffre-15 { font-size: 1.8rem; font-weight: 800; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.regle-15 small { color: var(--texte-2); }
.camera { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; }
.camera video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.camera.miroir video { transform: scaleX(-1); }
.camera .commandes { position: absolute; left: 0; right: 0; bottom: calc(26px + var(--safe-b)); display: flex; align-items: center; justify-content: center; gap: 40px; }
.camera .declencheur { width: 84px; height: 84px; border-radius: 50%; border: 5px solid #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.camera .declencheur i { width: 62px; height: 62px; border-radius: 50%; background: #ff3b5c; transition: all .2s; }
.camera .declencheur.enregistre i { width: 30px; height: 30px; border-radius: 6px; }
.camera .declencheur svg.anneau { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); }
.camera .declencheur svg.anneau circle { fill: none; stroke: var(--bleu-2); stroke-width: 5; stroke-linecap: round; }
.camera .chrono { position: absolute; top: calc(var(--safe-t) + 14px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-weight: 800; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center; }
.camera .chrono i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; animation: clignote 1s infinite; }
@keyframes clignote { 50% { opacity: .2; } }
.apercu-video { position: relative; width: 100%; max-height: 52vh; aspect-ratio: 9 / 16; border-radius: var(--rayon); overflow: hidden; background: #000; margin: 0 auto 14px; }
.apercu-video video { width: 100%; height: 100%; object-fit: contain; }
.apercu-video .duree { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .8rem; font-weight: 700; }
.apercu-video .duree.trop { background: rgba(255, 107, 107, .85); }
.coupe { margin-bottom: 16px; }
.coupe input[type=range] { width: 100%; accent-color: var(--bleu-2); }
.barre-progression { height: 8px; border-radius: 4px; background: var(--noir-3); overflow: hidden; margin: 12px 0; }
.barre-progression i { display: block; height: 100%; width: 0; background: var(--degrade); transition: width .2s; }
.compteur { text-align: right; font-size: .75rem; color: var(--texte-3); }

/* ------------------------------------------------------------------ réglages */
.liste-reglages { display: flex; flex-direction: column; }
.liste-reglages button, .liste-reglages a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bord); font-weight: 600; text-align: left; width: 100%; }
.liste-reglages .ico { color: var(--texte-2); }
.liste-reglages .fleche { margin-left: auto; color: var(--texte-3); width: 18px; height: 18px; }
.charte-points { display: flex; flex-direction: column; gap: 12px; }
.charte-points div { padding: 12px 14px; border-radius: var(--rayon-s); background: rgba(255, 255, 255, .03); border: 1px solid var(--bord); }
.charte-points b { display: block; margin-bottom: 3px; color: #fff; }
.charte-points span { color: var(--texte-2); font-size: .9rem; }
.charte-points div.regle { border-color: rgba(26, 160, 255, .4); background: rgba(7, 99, 255, .1); }

/* ------------------------------------------------------------------ accueil « connecte-toi » */
.invitation { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 20px; height: 100%; }
.invitation .ico { width: 56px; height: 56px; color: var(--bleu-2); }
.invitation h2 { font-size: 1.2rem; }
.invitation p { color: var(--texte-2); margin: 0; max-width: 320px; }

/* ------------------------------------------------------------------ toasts */
#toasts { position: fixed; left: 50%; bottom: calc(var(--barre-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92%, 420px); }
.toast { padding: 10px 16px; border-radius: 999px; background: rgba(13, 15, 21, .95); border: 1px solid var(--bord-fort); color: #fff; font-size: .88rem; font-weight: 600; box-shadow: var(--ombre); animation: monter2 .25s ease; text-align: center; }
.toast.erreur { border-color: rgba(255, 107, 107, .5); color: #ffb3b3; }
.toast.ok { border-color: rgba(47, 209, 138, .5); color: #9ff0c9; }
@keyframes monter2 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* chargeur */
.chargeur { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--bleu-2); animation: tourne .8s linear infinite; margin: 20px auto; }
@keyframes tourne { to { transform: rotate(360deg); } }
.centre { display: flex; align-items: center; justify-content: center; padding: 30px; }

/* ------------------------------------------------------------------ ordinateur / tablette */
@media (min-width: 900px) {
  #appli { grid-template-columns: var(--lateral-l) 1fr; grid-template-rows: 1fr; }
  .barre { display: none; }
  .lateral { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; border-right: 1px solid var(--bord); background: var(--noir); }
  .lateral .logo-bloc { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
  .lateral .logo { font-size: 1.7rem; }
  .lateral nav { display: flex; flex-direction: column; gap: 2px; }
  .lateral nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--texte-2); position: relative; }
  .lateral nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
  .lateral nav a.actif { color: #fff; background: rgba(7, 99, 255, .12); }
  .lateral nav a .ico { width: 24px; height: 24px; }
  .lateral nav a .badge { position: static; margin-left: auto; }
  .lateral .btn { margin-top: 12px; }
  .lateral .pied { margin-top: auto; font-size: .72rem; color: var(--texte-3); padding: 8px; line-height: 1.6; }
  .lateral .pied a { color: var(--texte-2); }
  .lateral .compte { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
  .lateral .compte .avatar { width: 38px; height: 38px; border: 0; font-size: .9rem; }
  .lateral .compte b { display: block; font-size: .9rem; }
  .lateral .compte small { color: var(--texte-3); }
  .scene { background: var(--noir); }
  .flux { left: 50%; transform: translateX(-50%); width: min(100%, 520px); right: auto; border-left: 1px solid var(--bord); border-right: 1px solid var(--bord); }
  .flux .carte { border-radius: 0; }
  .entete-flux { left: 50%; right: auto; width: min(100%, 520px); transform: translateX(-50%); }
  .page { max-width: 760px; margin: 0 auto; left: 0; right: 0; }
  .page .grille, .onglets-profil { margin-left: 0; margin-right: 0; }
  .notif.non-lue { margin: 0; padding: 12px; border-radius: var(--rayon-s); }
  #toasts { bottom: 24px; }
  .feuille { border-radius: 22px; border-bottom: 1px solid var(--bord); margin-bottom: 4vh; max-height: 84%; }
  .voile { align-items: center; }
  .flux-fleches { position: absolute; right: calc(50% - 300px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 6; }
  .flux-fleches button { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid var(--bord-fort); display: flex; align-items: center; justify-content: center; color: #fff; }
  .flux-fleches button:hover { background: rgba(7, 99, 255, .3); }
}
@media (max-width: 899px) { .flux-fleches { display: none; } }
