:root{--surface:var(--plaque);--surface-2:var(--fond-2);--verre:rgba(255,255,255,.82);--lueur:rgba(31,94,255,.35)}
.fx{display:flex;flex-direction:column;gap:28px}
.fx-tete{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.fx-titre{display:grid;gap:10px;max-width:640px}
.fx-titre .doux b{color:var(--texte)}
.fx-fleches{display:flex;gap:10px}
.fx-fleches[hidden]{display:none}
.fx-fleches button{width:44px;height:44px;border-radius:999px;border:1px solid var(--trait);background:var(--verre);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--texte);display:grid;place-items:center;cursor:pointer;transition:border-color .25s,transform .35s var(--ressort),opacity .25s}
.fx-fleches button:hover{border-color:var(--accent)}
.fx-fleches button:active{transform:scale(.94)}
.fx-fleches button[disabled]{opacity:.3;cursor:default}
.fx-fleches svg{width:18px;height:18px}
/* La bande déborde à droite : on voit qu'il y a une suite. */
.fx-bande{--fx-pad:max(20px,calc((100vw - 1200px) / 2));display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--fx-pad);padding:6px var(--fx-pad) 10px;margin:0 calc(-1 * var(--fx-pad));scrollbar-width:none;overscroll-behavior-x:contain}
.fx-bande::-webkit-scrollbar{display:none}
.fx-bande:focus-visible{outline-offset:-2px}
.fx-carte{flex:0 0 min(300px,calc(100vw - 64px));scroll-snap-align:start;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--trait);border-radius:22px;overflow:hidden;transition:border-color .3s,transform .5s var(--ressort),box-shadow .5s var(--ressort)}
@media (hover:hover){.fx-carte:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--trait));transform:translateY(-3px);box-shadow:0 22px 50px -28px var(--lueur)}}
.fx-carte__haut{display:flex;align-items:center;gap:10px;padding:12px 10px 12px 14px}
.fx-avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:999px;flex:none;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px color-mix(in srgb,var(--accent) 70%,transparent);overflow:hidden}
.fx-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.fx-qui{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.fx-qui b{font-size:13.5px;font-weight:800;letter-spacing:-.01em;color:var(--texte)}
.fx-cat{font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--accent-texte);margin-top:2px}
.fx-ig{display:grid;place-items:center;width:36px;height:36px;border-radius:999px;color:var(--texte);transition:background .2s}
.fx-ig:hover{background:color-mix(in srgb,var(--texte) 7%,transparent)}
.fx-glyphe{width:18px;height:18px;flex:none}
.fx-carte__media{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;border:0;cursor:pointer;background:#07090E;overflow:hidden}
.fx-carte__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--ressort)}
.fx-lire{position:absolute;left:50%;top:50%;width:62px;height:62px;margin:-31px 0 0 -31px;border-radius:999px;display:grid;place-items:center;color:#fff;background:rgba(10,14,22,.38);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);border:1px solid rgba(255,255,255,.28);box-shadow:0 0 0 6px rgba(47,107,255,.14),0 12px 30px rgba(0,0,0,.35);transition:transform .45s var(--ressort),box-shadow .45s var(--ressort)}
.fx-lire svg{width:24px;height:24px;margin-left:3px}
.fx-type{position:absolute;top:10px;right:10px;width:28px;height:28px;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.fx-type svg{width:20px;height:20px}
@media (hover:hover){.fx-carte__media:hover img{transform:scale(1.035)}.fx-carte__media:hover .fx-lire{transform:scale(1.08);box-shadow:0 0 0 10px rgba(47,107,255,.2),0 14px 34px rgba(0,0,0,.4)}}
.fx-carte__media:active .fx-lire{transform:scale(.95)}
.fx-carte__bas{display:flex;flex-direction:column;gap:8px;padding:14px 16px 18px;flex:1}
.fx-carte__bas time{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--doux)}
.fx-carte h3{margin:0;font-size:18px;font-weight:800;letter-spacing:-.025em;line-height:1.2;color:var(--texte);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fx-extrait{margin:0;font-size:14px;line-height:1.55;color:var(--doux);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fx-plus{align-self:flex-start;margin-top:auto;padding:6px 0 0;border:0;background:none;color:var(--accent-texte);font:inherit;font-size:14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.fx-plus svg{width:14px;height:14px;transition:transform .35s var(--ressort)}
.fx-plus:hover svg{transform:translate(2px,-2px)}
/* Le Fil : la partie visible de la bande, avec sa tête lumineuse. */
.fx-rail{position:relative;height:2px;border-radius:2px;background:var(--trait)}
.fx-rail[hidden]{display:none}
.fx-rail span{position:absolute;top:0;bottom:0;left:0;width:30%;border-radius:2px;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 25%,transparent),var(--accent));transition:transform .15s linear}
.fx-rail span::after{content:"";position:absolute;right:-3px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:999px;background:var(--accent);box-shadow:0 0 12px 3px var(--lueur)}
.fx-pied{display:flex;justify-content:center}
.fx-suivre{gap:10px}
@media (min-width:900px){.fx-carte{flex-basis:320px}.fx-bande{gap:22px}}
@media (max-width:899px){.fx-tete{align-items:flex-start}.fx-fleches{display:none}}

/* ── Visionneuse ── */
.fxv[hidden]{display:none!important}
.fxv{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;--fxv-h:min(88vh,740px)}
.fxv__voile{position:absolute;inset:0;background:rgba(5,7,12,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.fxv__panneau{position:relative;display:grid;grid-template-columns:auto 380px;grid-template-rows:minmax(0,1fr);max-width:calc(100vw - 160px);height:var(--fxv-h);background:var(--surface);border:1px solid var(--trait);border-radius:26px;overflow:hidden;box-shadow:0 40px 100px -20px rgba(0,0,0,.6);animation:fxvEntree .5s var(--ressort)}
@keyframes fxvEntree{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.fxv__media{position:relative;background:#000;min-width:0;height:var(--fxv-h);aspect-ratio:var(--fxv-ar,4/5);max-width:calc(100vw - 540px)}
.fxv__piste{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.fxv__piste::-webkit-scrollbar{display:none}
.fxv__vue{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:center;display:grid;place-items:center;cursor:pointer}
.fxv__vue img,.fxv__vue video{width:100%;height:100%;object-fit:contain;background:#000}
.fxv__progres{position:absolute;left:14px;right:14px;top:12px;height:3px;border-radius:3px;background:rgba(255,255,255,.22);overflow:hidden;opacity:0;transition:opacity .3s;pointer-events:none}
.fxv--video .fxv__progres{opacity:1}
.fxv__progres span{position:absolute;inset:0;transform-origin:left;transform:scaleX(0);background:#fff;box-shadow:0 0 8px rgba(111,155,255,.8)}
.fxv__compteur{position:absolute;top:24px;right:12px;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.fxv__points{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:5px;pointer-events:none}
.fxv__points i{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.45)}
.fxv__points i.on{background:#fff}
.fxv__fleche{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:999px;border:0;display:grid;place-items:center;background:rgba(255,255,255,.9);color:#0B0D12;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.fxv__fleche svg{width:16px;height:16px}
.fxv__fleche--g{left:12px}.fxv__fleche--d{right:12px}
.fxv__fleche[disabled]{opacity:0;pointer-events:none}
.fxv__son{position:absolute;right:12px;bottom:12px;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;background:rgba(10,14,22,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer}
.fxv__son svg{width:18px;height:18px}
.fxv__lecture{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.fxv__lecture[hidden]{display:none}
.fxv__lecture span{display:grid;place-items:center;width:70px;height:70px;border-radius:999px;background:rgba(10,14,22,.4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.28);box-shadow:0 0 0 8px rgba(47,107,255,.16);color:#fff}
.fxv__lecture svg{width:28px;height:28px;margin-left:3px}
.fxv__ailleurs{position:absolute;inset:auto 16px 16px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px;border-radius:16px;background:rgba(0,0,0,.66);text-align:center;font-size:13.5px;color:#eee}
.fxv__cote{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid var(--trait)}
.fxv__entete{display:flex;align-items:center;gap:10px;padding:14px 12px 14px 18px;border-bottom:1px solid var(--trait)}
.fxv__qui{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.fxv__qui b{font-size:14px;font-weight:800;color:var(--texte)}
.fxv__fermer{width:40px;height:40px;border:0;border-radius:999px;background:transparent;color:var(--texte);display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .3s var(--ressort)}
.fxv__fermer:hover{background:color-mix(in srgb,var(--texte) 8%,transparent)}
.fxv__fermer:active{transform:scale(.92)}
.fxv__fermer svg{width:22px;height:22px}
.fxv__corps{flex:1;overflow-y:auto;padding:22px 20px 10px;overscroll-behavior:contain}
.fxv__corps h3{margin:0;font-size:24px;font-weight:800;letter-spacing:-.03em;line-height:1.15;color:var(--texte);text-wrap:balance}
.fxv__texte{margin-top:16px;display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:1.6;color:var(--doux)}
.fxv__texte p{margin:0}
.fxv__pied{padding:14px 20px 18px;border-top:1px solid var(--trait);display:flex;flex-direction:column;gap:12px}
.fxv__meta{display:flex;justify-content:flex-end;font-size:12.5px;color:var(--doux)}
.fxv__meta:empty{display:none}
.fxv__boutons{display:flex;gap:8px}
.fxv__boutons .bouton{flex:1;min-height:46px}
.fxv__boutons .fxv__ig{flex:0 0 46px;padding:0}
.fxv__outil{margin:0;font-size:12px;color:var(--doux);text-align:center}
.fxv__outil b{color:var(--texte)}
.fxv__pas{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(16,20,28,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .3s var(--ressort),opacity .2s}
.fxv__pas:active{transform:translateY(-50%) scale(.92)}
.fxv__pas svg{width:22px;height:22px}
.fxv__pas--g{left:24px}.fxv__pas--d{right:24px}
.fxv__pas[disabled]{opacity:.25;cursor:default}
.fxv__colonne,.fxv__plus{display:none}
/* Téléphone : plein écran façon Reels (comme bscustom.ch, variante C) : le média remplit l'écran, titre et
   2 lignes posés dessus, colonne d'actions à droite, glisser vers le haut = publication suivante. */
@media (max-width:899px){
 .fxv{display:block}
 .fxv__voile{display:none}
 .fxv__panneau{display:block;width:100%;max-width:none;height:100%;border:0;border-radius:0;background:#000;animation:fxvMonte .45s var(--ressort)}
 @keyframes fxvMonte{from{transform:translateY(28px);opacity:0}to{transform:none;opacity:1}}
 .fxv__media{position:absolute;inset:0;width:100%;max-width:none;height:100%;aspect-ratio:auto;touch-action:pan-x}
 .fxv__media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:58%;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.86));pointer-events:none;z-index:1}
 /* Vidéo entière, jamais rognée : nos vidéos ont du texte près des bords (bandes noires plutôt que texte coupé). */
 .fxv__fleche,.fxv__compteur,.fxv__son,.fxv__meta,.fxv__boutons .fxv__ig,.fxv__pas,.fxv__outil{display:none}
 .fxv__progres{top:calc(8px + env(safe-area-inset-top,0px));z-index:5}
 .fxv__points{top:calc(74px + env(safe-area-inset-top,0px));bottom:auto;z-index:2}
 .fxv__lecture{z-index:2}
 .fxv__ailleurs{bottom:auto;top:calc(100px + env(safe-area-inset-top,0px));z-index:4}
 .fxv__cote{display:block;border:0}
 .fxv__entete{position:absolute;top:0;left:0;right:0;z-index:4;border:0;background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,0));padding:calc(16px + env(safe-area-inset-top,0px)) 8px 28px 16px}
 .fxv__qui b{color:#fff}
 .fxv__qui .fx-cat{color:#9DBBFF}
 .fxv__qui b,.fxv__qui .fx-cat{text-shadow:0 1px 2px rgba(0,0,0,.6)}
 .fxv__entete .fx-avatar{box-shadow:0 0 0 2px #000,0 0 0 3.5px rgba(111,155,255,.8)}
 .fxv__fermer{color:#fff}
 .fxv__corps{position:absolute;left:0;right:76px;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:3;max-height:46vh;padding:0 0 0 16px;overflow:hidden;overscroll-behavior:contain}
 .fxv__corps h3{font-size:22px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
 .fxv__texte{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:6px;font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.6)}
 .fxv__texte p{display:inline}
 .fxv__texte p+p::before{content:" "}
 .fxv__plus{display:inline-block;margin-top:4px;padding:6px 0;border:0;background:none;color:#fff;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer}
 .fxv__plus[hidden]{display:none}
 .fxv--ouvert .fxv__corps{overflow-y:auto}
 .fxv--ouvert .fxv__texte{display:flex;-webkit-line-clamp:unset}
 .fxv--ouvert .fxv__texte p{display:block}
 .fxv--ouvert .fxv__texte p+p::before{content:none}
 .fxv--ouvert .fxv__media::after{height:100%;background:rgba(0,0,0,.62)}
 .fxv__colonne{position:absolute;right:12px;bottom:calc(98px + env(safe-area-inset-bottom,0px));z-index:3;display:flex;flex-direction:column;align-items:center;gap:14px}
 .fxv__colonne > *{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:none;color:#fff;font:inherit;font-size:11.5px;font-weight:600;text-decoration:none;text-shadow:0 1px 2px rgba(0,0,0,.7);cursor:pointer}
 .fxv__colonne > [hidden]{display:none}
 .fxv__colonne i{width:48px;height:48px;border-radius:999px;display:grid;place-items:center;background:rgba(10,14,22,.38);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .3s var(--ressort)}
 .fxv__colonne > :active i{transform:scale(.9)}
 .fxv__colonne svg{width:24px;height:24px}
 .fxv__colonne [data-fxv-pas] svg{transform:rotate(90deg)}
 .fxv__colonne button[disabled]{opacity:.35;cursor:default}
 .fxv__pied{position:absolute;left:0;right:0;bottom:0;z-index:3;border:0;background:none;padding:10px 16px calc(16px + env(safe-area-inset-bottom,0px))}
 .fxv__boutons .bouton.plein{min-height:50px;box-shadow:0 14px 34px -12px rgba(47,107,255,.7)}
 .fxv--epure .fxv__corps,.fxv--epure .fxv__pied,.fxv--epure .fxv__media::after{display:none}
 .fxv--epure .fxv__colonne > :not(.fxv__epure){display:none}
 .fxv--epure .fxv__colonne{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){.fxv__panneau{animation:none}.fx-carte,.fx-carte__media img,.fx-lire{transition:none}}
.bouton.contour{background:var(--plaque);color:var(--texte);border:1px solid var(--trait);box-shadow:var(--e1)}
