/* PRIMUD Glambot : le fil vertical (mise en page façon appli vidéo, marque PRIMUD, sans commentaires) */
html, body.fil { height: 100%; overflow: hidden; background: #000; }
body.fil { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }

.scene { position: fixed; inset: 0; display: flex; justify-content: center; background:
  radial-gradient(ellipse 60% 50% at 50% 0%, rgba(29, 92, 71, .35), transparent 70%), var(--fond); }
.ecran { position: relative; height: 100%; width: 100%; max-width: calc(100dvh * 9 / 16); background: #000; }

/* --- le fil --- */
.flux { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.flux::-webkit-scrollbar { display: none; }
.diapo { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.diapo video, .diapo .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo .poster { z-index: 0; }
.diapo video { z-index: 1; }
.diapo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); }
.diapo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 18%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }

.pause { position: absolute; left: 50%; top: 50%; z-index: 3; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(0, 0, 0, .35); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s; transform: scale(1.2); pointer-events: none; }
.pause svg { width: 34px; height: 34px; fill: rgba(255, 255, 255, .92); margin-left: 5px; }
.diapo.en-pause .pause { opacity: 1; transform: scale(1); }

/* --- colonne de droite --- */
.rail { position: absolute; right: 8px; bottom: 96px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rail__profil { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--or-clair); background: var(--fond) url(/img/logo-petit.png) center / 58% no-repeat; margin-bottom: 8px; }
.rail__profil::after { content: "11"; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font: 800 10px/18px var(--etroit); padding: 0 6px; border-radius: 9px; background: var(--degrade-or); color: #17140D; }
.action { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; text-decoration: none;
  font: 600 12px/1 var(--texte); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.action__rond { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.action svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.action--or .action__rond { background: var(--degrade-or); box-shadow: 0 6px 22px -6px rgba(215, 180, 95, .8); }
.action--or svg { width: 26px; height: 26px; filter: none; }
.action:active .action__rond { transform: scale(.9); }
.action--dl .action__rond { width: 48px; height: 48px; }
.action--dl svg { width: 36px; height: 36px; }
.action--dl.charge svg { animation: tourne .8s linear infinite; }
.action--dl.pret .action__rond { background: var(--degrade-or); }
.action--dl.pret svg path { fill: #17140D; }
.action--dl.pret .action__nombre { color: var(--or-clair); }
.action.fait .action__rond { background: var(--succes); }

.disque { width: 46px; height: 46px; border-radius: 50%; margin-top: 6px; padding: 9px;
  background: conic-gradient(from 0deg, #222, #3a3a3a, #222, #3a3a3a, #222); animation: tourne 5s linear infinite; }
.disque span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--fond) url(/img/logo-petit.png) center / 62% no-repeat; border: 1px solid var(--or); }
.diapo.en-pause .disque { animation-play-state: paused; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* --- texte du bas --- */
.legende { position: absolute; left: 14px; right: 78px; bottom: 22px; z-index: 4; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.legende__compte { font: 700 16px/1.2 var(--texte); display: flex; align-items: center; gap: 6px; }
.legende__compte .certif { width: 15px; height: 15px; }
.legende__date { font: 500 13px var(--texte); color: rgba(255, 255, 255, .7); }
.legende__texte { margin: 6px 0 8px; font: 400 14px/1.35 var(--texte); }
.legende__texte b { font-weight: 600; }
.legende__son { display: flex; align-items: center; gap: 6px; font: 500 13px var(--texte); overflow: hidden; white-space: nowrap; }
.legende__son svg { width: 14px; height: 14px; flex: none; fill: #fff; }
.defile { overflow: hidden; width: 70%; }
.defile span { display: inline-block; padding-left: 100%; animation: defile 9s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }

.progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(255, 255, 255, .18); }
.progression i { display: block; height: 100%; width: 0; background: var(--or-clair); }

/* --- montage en cours --- */
.diapo--montage { display: grid; place-items: center; background:
  radial-gradient(ellipse 60% 45% at 50% 0%, rgba(243, 230, 194, .18), transparent 70%), radial-gradient(ellipse 90% 60% at 50% 10%, rgba(29, 92, 71, .6), transparent 70%), var(--fond); }
.diapo--montage::before, .diapo--montage::after { display: none; }
.montage { text-align: center; padding: 0 30px; }
.montage img { width: 120px; margin: 0 auto 26px; animation: respire 2.4s ease-in-out infinite; }
.montage h2 { font-size: 30px; margin: 0 0 10px; }
.montage p { color: var(--creme-2); font-size: 15px; line-height: 1.5; margin: 0; }
.montage .roue { width: 34px; height: 34px; margin: 26px auto 0; border-radius: 50%; border: 2.5px solid var(--ligne); border-top-color: var(--or-clair); animation: tourne .9s linear infinite; }
@keyframes respire { 50% { transform: scale(1.05); filter: brightness(1.15); } }

/* --- fin du fil / vide --- */
.diapo--info { display: grid; place-items: center; text-align: center; padding: 0 28px; background: var(--fond); }
.diapo--info::before, .diapo--info::after { display: none; }
.diapo--info h2 { font-size: 28px; margin: 14px 0 10px; }
.diapo--info p { color: var(--creme-2); line-height: 1.5; margin: 0 0 20px; }

/* --- haut de l'écran --- */
.haut { position: absolute; inset: 0 0 auto 0; z-index: 6; padding: max(12px, env(safe-area-inset-top)) 14px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.haut > * { pointer-events: auto; }
.haut__logo { width: 30px; height: 38px; background: url(/img/logo-petit.png) center / contain no-repeat; }
.onglets { display: flex; gap: 18px; }
.onglet { background: none; border: 0; padding: 6px 0; cursor: pointer; font: 600 16px var(--texte); color: rgba(255, 255, 255, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); position: relative; }
.onglet[aria-selected="true"] { color: #fff; }
.onglet[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: var(--or-clair); }
.direct { justify-self: end; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid var(--ligne-2); font: 600 11px var(--texte); color: #fff; }
.direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 8px var(--or); animation: pouls 1.2s ease-in-out infinite; }
.direct.repos i { animation: none; background: var(--creme-3); box-shadow: none; }
@keyframes pouls { 50% { opacity: .3; } }

.bulle { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 46px); left: 50%; z-index: 7; transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  padding: 9px 16px; border-radius: 999px; border: 0; background: var(--degrade-or); color: #17140D; font: 700 13px var(--texte); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: .25s; cursor: pointer; }
.bulle.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.son-off { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(12px, env(safe-area-inset-top)) + 46px); z-index: 6; display: none; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 0;
  background: rgba(255, 255, 255, .9); color: #000; font: 600 13px var(--texte); cursor: pointer; }
.muet .son-off { display: flex; }
.son-off svg { width: 16px; height: 16px; }

.toast { position: absolute; left: 50%; top: 45%; z-index: 8; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: rgba(0, 0, 0, .78); color: #fff; font: 500 14px var(--texte); pointer-events: none; }

/* --- ordinateur : flèches comme les applis vidéo --- */
.fleches { display: none; }
@media (min-width: 900px) {
  .ecran { border-radius: 14px; overflow: hidden; margin: 16px 0; height: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border: 1px solid var(--ligne); }
  .fleches { display: flex; flex-direction: column; gap: 14px; position: fixed; right: 32px; top: 50%; transform: translateY(-50%); }
  .fleches button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne-2); background: rgba(15, 59, 46, .5); color: var(--creme); cursor: pointer; font-size: 20px; }
  .fleches button:hover { border-color: var(--or); }
  .lien-grille { position: fixed; left: 28px; top: 24px; }
}
.lien-grille { display: none; }
@media (min-width: 900px) { .lien-grille { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .disque, .defile span, .montage img, .montage .roue, .direct i { animation: none; } }

/* --- reprise de la structure de s-shemmee/TikTok-UI-Clone (GPL-3.0) : profil « + », barre du bas --- */
.flux { bottom: calc(50px + env(safe-area-inset-bottom)); }
.rail__profil::after { content: "+"; font-size: 14px; line-height: 18px; width: 18px; padding: 0; text-align: center; }
.action__nombre { margin-top: 2px; }
.nav-bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: space-around; align-items: center; background: #0b0b0b; border-top: 1px solid rgba(255, 255, 255, .06); }
.nav-bas__item { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; cursor: pointer; color: #a8a8a8; font: 500 10px var(--texte); text-decoration: none; min-width: 52px; }
.nav-bas__item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-bas__item.actif { color: #fff; }
.nav-bas__plus { width: 48px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1D5C47, #0F3B2E); border: 1px solid rgba(237, 205, 120, .55); box-shadow: 0 0 14px -4px rgba(215, 180, 95, .6); }
.nav-bas__plus span { width: 24px; height: 24px; background: url(/img/logo-petit.png) center / contain no-repeat; transition: transform .8s ease; }
.tourne .nav-bas__plus span { transform: rotate(360deg); }
.nav-bas__badge { position: absolute; margin: -4px 0 0 18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--or); color: #17140D; font: 700 10px/16px var(--texte); }
.nav-bas__item { position: relative; }
