/* ============================================================================
   FLORAMVS — mise en page façon fil social
   ----------------------------------------------------------------------------
   Mesures relevées sur le site de référence et reprises à l'identique :
     grille          275px / 600px / 350px, gouttière 28px
     fond            noir pur, photo en plein écran, voile + vignette + grain
     colonne centre  fond noir à 72 %, filet blanc à 15 %
     accent          #F5B734 (ambre)
     polices         Inter pour l'interface, Fraunces pour le logo et les titres
   ========================================================================== */

:root{
  /* Couleurs — pour changer l'accent, une seule ligne suffit */
  --or:#F5B734;
  --or-sombre:#d99f22;
  --cyan:#2BB3E0;

  --noir:#000;
  --txt:#E7E9EA;
  --gris:#8B98A5;
  --gris-2:#536471;
  --panneau:#16181C;
  --panneau-2:#1D1F23;
  --filet:rgba(255,255,255,.15);
  --filet-doux:rgba(255,255,255,.08);
  --survol:rgba(255,255,255,.06);

  --ui:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --serif:'Fraunces',Georgia,serif;

  color-scheme:dark;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--noir);
  color:var(--txt);
  font-family:var(--ui);
  font-size:15px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
::selection{ background:var(--or); color:#000; }
:focus-visible{ outline:2px solid var(--or); outline-offset:2px; border-radius:4px; }

.ico{ width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
/* Le logo X est une forme pleine, pas un tracé */
.ico use[href="#i-x"]{ fill:currentColor; stroke:none; }
#i-x path{ fill:currentColor; stroke:none; }
#i-lecture path{ fill:currentColor; stroke:none; }

/* ==========================================================================
   FOND
   ========================================================================== */
.fond{ position:fixed; inset:0; z-index:-1; background:var(--noir); overflow:hidden; }
.fond-media{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  transition:opacity .6s ease, filter .6s ease;
}
.fond-voile{ position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.5)); }
.fond-vignette{ position:absolute; inset:0; background:radial-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.7) 100%); }
.fond-grain{
  position:absolute; inset:0; opacity:.5;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.22'/></svg>");
}
/* Les trois réglages du panneau Affichage.
   La luminosité passe par une variable : comme ça la vidéo peut gérer son
   propre fondu d'apparition sans écraser le réglage choisi. */
/* Le fond garde toujours la luminosité « allumée » : le bouton Lumières
   ne change que l'interface (sombre ou blanche). */
html[data-fond] .fond{ --lum:.90; }

.fond-affiche{ opacity:var(--lum, .90); filter:saturate(.75); }
.fond-video{ opacity:0; filter:saturate(.75); }

/* Une fois la vidéo lancée, elle remplace l'affiche */
.fond.video-ok .fond-affiche{ opacity:0; }
.fond.video-ok .fond-video{ opacity:var(--lum, .90); }

/* Personne qui préfère moins d'animation : on reste sur l'image fixe */
@media (prefers-reduced-motion: reduce){
  .fond.video-ok .fond-affiche{ opacity:var(--lum, .90); }
  .fond.video-ok .fond-video{ opacity:0; }
}

/* ==========================================================================
   GRILLE
   ========================================================================== */
.page{
  display:grid;
  grid-template-columns:275px 600px 350px;
  gap:0 28px;
  width:max-content;
  margin-inline:auto;
  align-items:start;
}

/* ==========================================================================
   BARRE DE GAUCHE
   ========================================================================== */
.rail{
  position:sticky; top:0;
  height:100vh;
  display:flex; flex-direction:column;
  padding:14px 8px 20px 0;
}
.rail-logo{
  font-family:var(--serif);
  font-weight:700; font-size:25px;
  letter-spacing:.015em;
  padding:8px 14px 20px;
}

.rail-nav{ display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.rail-item{
  display:flex; align-items:center; gap:17px;
  width:100%;
  padding:11px 18px 11px 14px;
  border-radius:999px;
  font-size:19px; font-weight:400;
  color:var(--txt);
  text-align:left;
  transition:background .18s ease, color .18s ease;
}
.rail-item:hover{ background:var(--survol); }
.rail-item.actif{ color:var(--or); font-weight:600; }

.rail-cta{
  margin:18px 10px 0 4px;
  justify-content:center;
  width:calc(100% - 14px);
  font-size:16px;
  padding-block:14px;
}

/* ==========================================================================
   PILULES
   ========================================================================== */
.pilule{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:9px 19px;
  border-radius:999px;
  font-size:14.5px; font-weight:700;
  white-space:nowrap;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.pilule .ico{ width:18px; height:18px; }
.pilule--or{ background:var(--or); color:#000; }
.pilule--or:hover{ background:var(--or-sombre); }   /* pas de mouvement au survol */
.pilule--vide{ border:1px solid var(--filet); color:var(--txt); }
.pilule--vide:hover{ background:var(--survol); border-color:var(--or); }
.pilule--blanc{ background:var(--txt); color:#000; padding:7px 16px; }
.pilule--blanc:hover{ background:#fff; }

.rond{
  display:grid; place-items:center;
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--filet);
  color:var(--txt);
  transition:background .18s ease, border-color .18s ease;
}
.rond:hover{ background:var(--survol); border-color:var(--or); }
.rond .ico{ width:18px; height:18px; }

/* ==========================================================================
   COLONNE CENTRALE
   ========================================================================== */
.centre{
  min-height:100vh;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  border-inline:1px solid var(--filet);
}

.centre-tete{
  position:sticky; top:0; z-index:20;
  padding:9px 16px;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--filet);
}
.centre-tete b{ display:block; font-size:16px; font-weight:700; line-height:1.3; }
.centre-tete span{ display:block; font-size:13px; color:var(--gris); }

.banniere{ aspect-ratio:3/1; overflow:hidden; background:var(--panneau); }
.banniere img{ width:100%; height:100%; object-fit:cover; }

.profil{ padding:0 16px 14px; }
.profil-haut{
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-top:-67px; margin-bottom:12px;
}
.avatar{
  width:134px; height:134px; border-radius:50%;
  object-fit:cover; object-position:center top;
  border:4px solid #000;
  background:var(--panneau);
}
.profil-boutons{ display:flex; align-items:center; gap:8px; padding-bottom:4px; }

.profil-nom{
  font-family:var(--ui);
  font-weight:800; font-size:22px; line-height:1.2;
  margin:0;
}
.profil-pseudo{ font-size:15px; color:var(--gris); margin:1px 0 12px; }
.profil-bio{ font-size:15px; line-height:1.45; margin:0 0 12px; }
.profil-bio a{ color:var(--cyan); }
.profil-bio a:hover{ text-decoration:underline; }

.profil-liens{
  display:flex; flex-wrap:wrap; gap:6px 18px;
  font-size:14.5px; color:var(--gris);
  margin-bottom:12px;
}
.profil-liens span{ display:inline-flex; align-items:center; gap:6px; }
.profil-liens .ico{ width:17px; height:17px; }
.profil-liens a{ color:var(--cyan); }
.profil-liens a:hover{ text-decoration:underline; }

.profil-compte{ display:flex; gap:20px; font-size:14.5px; color:var(--gris); }
.profil-compte b{ color:var(--txt); font-weight:700; }

/* ---- Onglets ---- */
.onglets{ display:flex; border-bottom:1px solid var(--filet); }
.onglet{
  position:relative; flex:1;
  padding:16px 0 14px;
  font-size:15px; font-weight:500;
  color:var(--gris);
  transition:background .18s ease, color .18s ease;
}
.onglet:hover{ background:var(--survol); color:var(--txt); }
.onglet.actif{ color:var(--txt); font-weight:700; }
.onglet.actif::after{
  content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:58px; height:4px; border-radius:4px; background:var(--or);
}

/* ==========================================================================
   UN POST
   ========================================================================== */
.post{
  padding:14px 16px;
  border-bottom:1px solid var(--filet);
  transition:background .18s ease;
}
.post:hover{ background:rgba(255,255,255,.022); }

.post-epingle{
  display:flex; align-items:center; gap:11px;
  margin:0 0 7px 31px;
  font-size:13px; font-weight:700;
  color:var(--gris);
}
.post-epingle .ico{ width:15px; height:15px; }

.post-corps{ display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; }
.post-av{ width:44px; height:44px; border-radius:50%; object-fit:cover; object-position:center top; }
/* Fil de posts : un trait relie l'avatar au post suivant */
.post-col{ display:flex; flex-direction:column; align-items:center; }
.post-corps--suite .post-col::after{
  content:""; flex:1; width:2px; margin-top:4px;
  border-radius:2px;
  /* piste grise, remplie de jaune selon --rempli (0 à 1), posé par app.js */
  background:
    linear-gradient(var(--or), var(--or)) top / 100% calc(var(--rempli, 0) * 100%) no-repeat,
    var(--filet);
}
.post-corps--suite > .post-droite{ padding-bottom:16px; }

.post-tete{
  display:flex; align-items:center; gap:5px; flex-wrap:wrap;
  font-size:15px; margin-bottom:3px;
}
.post-tete b{ font-weight:700; }
.post-tete span{ color:var(--gris); }

.post-texte{
  font-size:15px; line-height:1.48;
  white-space:pre-line;
  margin:0 0 11px;
  overflow-wrap:anywhere;
}
.post-texte a{ color:var(--cyan); }
.post-texte a:hover{ text-decoration:underline; }

.post-media{
  display:block;
  margin:0 0 12px;
  border:1px solid var(--filet);
  border-radius:16px;
  overflow:hidden;
}
.post-media img{ width:100%; max-height:510px; object-fit:cover; transition:transform .5s ease; }
.post-media:hover img{ transform:scale(1.015); }

/* Vidéo dans un post. Le cadre épouse la vidéo : une vidéo verticale
   reste à sa taille au lieu de laisser deux bandes noires. */
.post-media--video{
  width:fit-content; max-width:100%;
  background:#000;
  line-height:0;
}
.post-media--video video{
  display:block;
  max-width:100%; max-height:540px;
  border-radius:16px;
}
.post-media--video:hover video{ transform:none; }

/* Vidéo qui renvoie vers X. Le bouton lecture au centre ne se voit que
   quand elle est à l'arrêt. */
a.post-media--video{ position:relative; }
.post-media--video.en-lecture .post-lecture{ opacity:0; }
.post-lecture{
  position:absolute; top:50%; left:50%;
  width:60px; height:60px; margin:-30px 0 0 -30px;
  display:grid; place-items:center;
  background:rgba(0,0,0,.6);
  border:2px solid #fff; border-radius:50%;
  color:#fff;
  transition:transform .2s ease, opacity .2s ease;
}
.post-lecture .ico{ width:26px; height:26px; }
.post-media--video:hover .post-lecture{ transform:scale(1.08); }

/* Image montrée en entier (mèmes, affiches) : le cadre épouse l'image */
.post-media--entiere{ border:0; border-radius:0; }
.post-media--entiere img{
  display:block; width:auto; max-width:100%; max-height:640px;
  border:1px solid var(--filet); border-radius:16px;
}

/* Zoom puis dézoom de l'image (2 s chacun), en boucle (champ « anime: "zoom" ») */
.post-media--anime{ overflow:hidden; }
.post-media--anime img{ animation:zoomLent 2s ease-in-out infinite alternate; will-change:transform; }
@keyframes zoomLent{ from{ transform:scale(1); } to{ transform:scale(1.08); } }
@media (prefers-reduced-motion: reduce){ .post-media--anime img{ animation:none; } }

/* Logos des clients : un titre jaune par groupe, puis une bande qui défile.
   Bords en fondu, pause au survol, une rangée sur deux dans l'autre sens. */
.post-logos{ display:flex; flex-direction:column; gap:18px; margin:6px 0 14px; }
.logos-groupe + .logos-groupe{ position:relative; padding-top:26px; }
/* Trait jaune entre les groupes : épais et très flou (comme un pinceau de
   dureté 0), qui s'efface en haut, en bas et aux deux bouts */
.logos-groupe + .logos-groupe::before{
  content:""; position:absolute; top:-8px; left:0; right:0; height:18px;
  background:linear-gradient(180deg,
    rgba(245,183,52,0) 0%, rgba(245,183,52,.35) 25%, rgba(245,183,52,.85) 50%,
    rgba(245,183,52,.35) 75%, rgba(245,183,52,0) 100%);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  filter:blur(2px);
}
.logos-titre{
  margin:0 0 12px; font-family:var(--serif);   /* même police que les titres « Ce qui se passe » */
  font-size:13px; font-weight:600; letter-spacing:.35em;
  text-transform:uppercase; color:var(--or);
  text-align:center; padding-left:.35em; /* compense l'espace laissé après la dernière lettre */
}
.logos-defile{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-piste{
  display:flex; align-items:center; gap:14px; width:max-content;
  animation:defilerLogos calc(var(--nb) * 2.4s) linear infinite;
}
/* La piste contient la bande deux fois : on la décale d'une moitié, gap compris */
@keyframes defilerLogos{ to{ transform:translateX(calc(-50% - 7px)); } }
.logos-defile--inverse .logos-piste{ animation-direction:reverse; }
.logos-defile:hover .logos-piste{ animation-play-state:paused; }
.logos-piste img{
  flex:none; display:block; height:54px; width:auto; aspect-ratio:16/9; object-fit:cover;
  border-radius:10px; border:1px solid var(--filet);
}
.logos-defile--rond .logos-piste img{ width:62px; height:62px; aspect-ratio:1; border-radius:50%; border:2px solid var(--filet); }
@media (prefers-reduced-motion: reduce){
  .logos-defile{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .logos-piste{ animation:none; }
}

/* Petite fenêtre au survol d'un logo, dans le style de la bienvenue du bureau */
.etiquette{
  position:fixed; left:0; top:0; z-index:60; pointer-events:none;
  padding:7px 12px; font-size:14px; font-weight:600; white-space:nowrap;
  font-family:'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color:#fff; background:#202020; border:1px solid #3a3a3a; border-radius:8px;
  box-shadow:0 12px 34px rgba(0,0,0,.5); overflow:hidden;
  opacity:0; transition:opacity .12s ease;
}
.etiquette.visible{ opacity:1; }


/* Bande d'affiches qui défile de droite à gauche, en boucle.
   Bords en fondu, pause au survol. */
.defile{
  margin:2px 0 12px;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.defile-piste{
  display:flex; gap:10px; width:max-content;
  animation:defiler calc(var(--nb) * 3.2s) linear infinite;
}
.defile:hover .defile-piste{ animation-play-state:paused; }
.defile-piste a{ flex:none; display:block; border-radius:12px; overflow:hidden; border:1px solid var(--filet); }
.defile-piste img{
  display:block; width:150px; aspect-ratio:3/4; object-fit:cover;
  transition:transform .3s ease;
}
.defile-piste a:hover img{ transform:scale(1.04); }
/* La piste contient la liste deux fois : on la décale d'une moitié, gap compris */
@keyframes defiler{ to{ transform:translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce){
  .defile{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .defile-piste{ animation:none; }
}

/* Deux images côte à côte, comme sur X */
.post-media--grille{ display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.post-media--grille img{ height:100%; max-height:420px; aspect-ratio:3/4; object-fit:cover; }
.post-media--grille:hover img{ transform:none; }
.post-media--grille img:hover{ transform:scale(1.02); }
/* Trois ou quatre captures : grille 2 × 2 au format écran */
.post-media--grille > a{ display:block; overflow:hidden; }
.post-media--quatre img{ height:auto; aspect-ratio:16/9; max-height:none; object-position:left top; }

/* Petit titre au-dessus de la grille de chiffres */
.post-stats-titre{
  grid-column:1 / -1; margin:0; padding:11px 16px;
  background:#2a1f05; font-size:13px; font-weight:600; color:#f3d48a;
}
.post-stats-titre a{ color:var(--cyan); }

/* Grille de chiffres dans un post */
.post-stats{
  display:grid; grid-template-columns:1fr 1fr;
  gap:1px;
  background:rgba(245,183,52,.35);
  border:1px solid rgba(245,183,52,.55);
  border-radius:16px;
  overflow:hidden;
  margin:0 0 12px;
}
.post-stats div{ padding:14px 16px; background:#1c1608; }   /* fond jaune très sombre */
.post-stats b{ color:var(--or); }
.post-stats b{
  display:block;
  font-family:var(--serif);
  font-weight:700; font-size:25px; line-height:1.1;
  margin-bottom:3px;
}
.post-stats span{ display:block; font-size:13px; color:var(--gris); line-height:1.35; }

.post-boutons{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }

/* Barre d'engagement */
.post-actions{ display:flex; justify-content:space-between; max-width:430px; color:var(--gris-2); }
.act{
  display:flex; align-items:center; gap:7px;
  font-size:13px;
  padding:5px 7px 5px 5px;
  border-radius:999px;
  transition:color .18s ease, background .18s ease;
}
.act .ico{ width:18px; height:18px; }
.act--rep:hover { color:var(--cyan); background:rgba(43,179,224,.1); }
.act--rt:hover  { color:#00ba7c;     background:rgba(0,186,124,.1); }
.act--like:hover{ color:#f91880;     background:rgba(249,24,128,.1); }
.act--vue:hover { color:var(--cyan); background:rgba(43,179,224,.1); }

/* Pastille « exemple à remplacer » */
.a-remplir{
  display:inline-flex; align-items:center; gap:7px;
  margin:0 0 9px;
  padding:3px 10px;
  border-radius:999px;
  font-size:12px; font-weight:600; letter-spacing:.04em;
  color:var(--or);
  background:rgba(245,183,52,.125);
  border:1px solid rgba(245,183,52,.4);
}
.a-remplir::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--or); }

/* Message en bas d'un onglet (Moments forts, Joueuse, Mèmes) */
/* Sans cadre : juste le texte, centré (blanc, ou noir en lumières allumées) */
.fin-onglet{ margin:18px 16px 4px; padding:10px 18px 6px; text-align:center; }
.fin-onglet p{ margin:0; font-size:15px; line-height:1.5; color:var(--txt); }
.fin-onglet .pilule{ margin-top:12px; }

.fin{ padding:26px 16px 70px; text-align:center; font-size:14px; color:var(--gris); }
.fin a{ color:var(--cyan); }
.fin a:hover{ text-decoration:underline; }

/* ==========================================================================
   COLONNE DE DROITE
   ========================================================================== */
.droite{
  position:sticky; top:0;
  height:100vh; overflow-y:auto;
  padding:10px 0 28px;
  scrollbar-width:thin; scrollbar-color:var(--filet) transparent;
}
.droite::-webkit-scrollbar{ width:6px; }
.droite::-webkit-scrollbar-thumb{ background:var(--filet); border-radius:3px; }

.cherche{ position:relative; margin-bottom:14px; }
.cherche .ico{
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; color:var(--gris); pointer-events:none;
}
.cherche input{
  width:100%;
  padding:12px 16px 12px 44px;
  font-family:var(--ui); font-size:14.5px;
  color:var(--txt);
  background:var(--panneau);
  border:1px solid transparent;
  border-radius:999px;
}
.cherche input::placeholder{ color:var(--gris); }
.cherche input:focus{ outline:none; border-color:var(--or); background:#000; }

.bloc{
  background:var(--panneau);
  border-radius:16px;
  margin-bottom:14px;
  overflow:hidden;
}
.bloc h2{
  font-family:var(--ui);   /* police de l'interface, comme les titres de X */
  font-weight:800; font-size:20px; letter-spacing:-.01em;
  margin:0; padding:13px 16px 8px;
}
.bloc-item{ display:block; padding:9px 16px; transition:background .18s ease; }
.bloc-item:hover{ background:var(--survol); }
.bloc-item .haut{ display:block; font-size:12.5px; color:var(--gris); }
.bloc-item .nom{ display:block; font-size:15px; font-weight:700; line-height:1.3; }
.bloc-item .bas{ display:block; font-size:12.5px; color:var(--gris); }
.bloc-pied{
  display:block; padding:12px 16px;
  font-size:14.5px; color:var(--or);
  transition:background .18s ease;
}
.bloc-pied:hover{ background:var(--survol); }
.bloc-reseaux{ margin:0; color:var(--gris); }
.bloc-reseaux:hover{ background:none; }
.bloc-reseaux a{ color:var(--or); }
.bloc-reseaux a:hover{ text-decoration:underline; }

/* ---- Réglage de l'affichage ---- */
.affichage{ display:flex; gap:8px; padding:4px 16px 16px; }
.choix{
  flex:1;
  display:flex; align-items:center; gap:7px;
  padding:10px 9px;
  border:1px solid var(--filet);
  border-radius:8px;
  font-size:12.5px; line-height:1.2;
  color:var(--gris);
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}
.choix i{
  width:14px; height:14px; flex:none;
  border:1px solid var(--gris);
  border-radius:50%;
  transition:border-color .18s ease, box-shadow .18s ease;
}
/* Lumières éteintes : bloc noir. Lumières allumées : bloc blanc. */
.choix[data-fond="eteint"]{ background:#000; color:#fff; }
.choix[data-fond="clair"]{ background:#fff; color:#000; border-color:#fff; }
.choix[data-fond="clair"] i{ border-color:#000; }
.choix:hover{ filter:brightness(.9); }
.choix.actif{ border-color:var(--or); box-shadow:0 0 0 1px var(--or); }
.choix.actif i{ border-color:var(--or); box-shadow:inset 0 0 0 3px var(--or); }

/* ---- À suivre ---- */
.suivre{
  display:flex; align-items:center; gap:11px; padding:9px 16px 14px;
  color:inherit; transition:background .18s ease;
}
.suivre:hover{ background:var(--survol); }
.suivre img{ width:42px; height:42px; border-radius:50%; object-fit:cover; object-position:center top; }
.suivre-txt{ flex:1; min-width:0; }
.suivre-txt b{ display:block; font-size:14.5px; font-weight:700; }
.suivre-txt span{ display:block; font-size:13.5px; color:var(--gris); }

.menu-bas{
  display:flex; flex-wrap:wrap; gap:5px 13px;
  padding:2px 16px;
  font-size:13px; color:var(--gris);
}
.menu-bas a:hover{ text-decoration:underline; }

/* ==========================================================================
   LECTEUR FLOTTANT
   ========================================================================== */
.lecteur{
  position:fixed; left:18px; bottom:18px; z-index:40;
  display:flex; align-items:center; gap:12px;
  width:290px; padding:11px;
  background:rgba(22,24,28,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--filet);
  border-radius:14px;
  transition:opacity .3s ease, transform .3s ease, visibility .3s;
}
.lecteur[hidden]{ display:flex; opacity:0; visibility:hidden; transform:translateY(12px); }
.lecteur-pochette{ width:52px; height:52px; border-radius:8px; object-fit:cover; flex:none; }
.lecteur-txt{ flex:1; min-width:0; }
.lecteur-txt b{ display:block; font-size:13.5px; font-weight:700; }
.lecteur-txt span{
  display:block; font-size:12px; color:var(--gris);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lecteur-lien{ display:inline-block; margin-top:3px; font-size:12px; color:var(--or); }
.lecteur-lien:hover{ text-decoration:underline; }
.lecteur-play{
  display:grid; place-items:center;
  width:34px; height:34px; border-radius:50%; flex:none;
  background:var(--txt); color:#000;
  transition:background .18s ease, transform .18s ease;
}
.lecteur-play:hover{ background:var(--or); transform:scale(1.06); }
.lecteur-play .ico{ width:17px; height:17px; }
.lecteur-fermer{
  position:absolute; top:-9px; right:-9px;
  display:grid; place-items:center;
  width:22px; height:22px; border-radius:50%;
  background:var(--panneau-2); color:var(--gris);
  border:1px solid var(--filet);
}
.lecteur-fermer:hover{ color:var(--txt); }
.lecteur-fermer .ico{ width:12px; height:12px; }

/* ==========================================================================
   CROIX EN HAUT À DROITE : retour au bureau
   ========================================================================== */
.fermer-page{
  position:fixed; top:10px; right:14px; z-index:45;
  display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
  /* Rond blanc, croix noire : bien visible sur le fond sombre */
  color:#000; background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.45);
  transition:transform .18s ease, background .18s ease;
}
.fermer-page:hover{ background:#e6e6e6; transform:scale(1.06); }
/* Quand la colonne de droite touche le bord, la recherche laisse la place à la croix */
@media (max-width:1400px) and (min-width:1091px){ .cherche{ margin-right:46px; } }

/* ==========================================================================
   BULLE DE CONTACT
   ========================================================================== */
.bulle{
  position:fixed; right:18px; bottom:18px; z-index:40;
  display:grid; place-items:center;
  width:58px; height:58px; border-radius:50%;
  background:#000; color:#fff;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 4px 18px rgba(0,0,0,.45);
  transition:background .18s ease, transform .18s ease;
}
.bulle:hover{ background:#181a1f; }
.bulle .ico{ width:27px; height:27px; }

/* ==========================================================================
   ÉCRANS PLUS ÉTROITS
   ========================================================================== */
@media (max-width:1320px){
  .page{ grid-template-columns:88px 600px 350px; gap:0 22px; }
  .rail-logo{ font-size:20px; text-align:center; padding:8px 0 20px; }
  .rail-item span{ display:none; }
  .rail-item{ justify-content:center; padding:13px; width:auto; }
  .rail-nav{ align-items:center; }
  .rail-cta{ width:52px; height:52px; padding:0; margin-inline:auto; border-radius:50%; }
  .rail-cta span{ display:none; }
}
@media (max-width:1090px){
  .page{ grid-template-columns:88px minmax(0,600px); }
  .droite{ display:none; }
  .lecteur{ width:252px; }
}
@media (max-width:780px){
  .page{ grid-template-columns:minmax(0,1fr); width:auto; }
  .centre{ border-inline:0; }
  .rail{
    position:fixed; left:0; right:0; bottom:0; top:auto; z-index:50;
    flex-direction:row; align-items:center;
    height:auto; padding:6px 4px;
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(14px);
    border-top:1px solid var(--filet);
  }
  .rail-logo, .rail-cta{ display:none; }
  .rail-nav{ flex-direction:row; width:100%; justify-content:space-around; }
  .rail-item{ padding:10px; }
  .fin{ padding-bottom:110px; }
  /* Le son se règle déjà depuis la barre du bas : la carte du lecteur
     prendrait un quart de l'écran pour rien, on la retire. */
  .lecteur, .lecteur[hidden]{ display:none; }
  .bulle{ right:12px; bottom:calc(76px + env(safe-area-inset-bottom, 0px)); width:52px; height:52px; }
  .bulle .ico{ width:24px; height:24px; }
  .rail{ padding-bottom:calc(6px + env(safe-area-inset-bottom, 0px)); }
  .avatar{ width:96px; height:96px; }
  .profil-haut{ margin-top:-48px; flex-wrap:wrap; gap:10px; }
  /* « Moments forts » est plus long : chaque onglet prend la largeur de son mot */
  .onglet{ flex:auto; padding-inline:8px; font-size:14px; white-space:nowrap; }
  /* Les onglets restent en haut pendant qu'on fait défiler le fil */
  .onglets{ position:sticky; top:58px;   /* hauteur de la barre du nom, juste au-dessus */ z-index:19; background:rgba(0,0,0,.88);
            backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
  /* Posts un peu plus serrés pour laisser la place au texte et aux médias */
  .post{ padding:12px 12px; }
  .post-corps{ grid-template-columns:40px minmax(0,1fr); gap:10px; }
  .post-av{ width:40px; height:40px; }
  .post-epingle{ margin-left:27px; }
  .post-actions{ max-width:none; }
}

/* ==========================================================================
   LUMIÈRES ALLUMÉES : l'interface façon X passe en blanc, le fond ne change pas
   ----------------------------------------------------------------------------
   Les couleurs de base passent par les variables du haut ; ici on reprend
   seulement les endroits où une couleur sombre est écrite en dur.
   ========================================================================== */
html[data-fond="clair"]{
  --noir:#fff;
  --txt:#0F1419;
  --gris:#536471;
  --gris-2:#8B98A5;
  --panneau:#F2F4F5;
  --panneau-2:#E9EDEF;
  --filet:rgba(15,20,25,.13);
  --filet-doux:rgba(15,20,25,.07);
  --survol:rgba(15,20,25,.045);
  --cyan:#1D9BF0;
  --or-texte:#B07A00;          /* le jaune vif se lit mal sur du blanc : version foncée pour le texte */
  color-scheme:light;
}
/* Le fond reste le même qu'en lumières éteintes (vidéo lumineuse, voile sombre) :
   seule l'interface passe en blanc. */
html[data-fond="clair"] .fond{ background:#000; }

html[data-fond="clair"] .centre{ background:rgba(255,255,255,.9); }
html[data-fond="clair"] .centre-tete{ background:rgba(255,255,255,.86); }
html[data-fond="clair"] .avatar{ border-color:#fff; }
html[data-fond="clair"] .post:hover{ background:rgba(15,20,25,.025); }
html[data-fond="clair"] .pilule--blanc{ color:#fff; }
html[data-fond="clair"] .pilule--blanc:hover{ background:#000; }
html[data-fond="clair"] .cherche input:focus{ background:#fff; }

/* Textes en jaune : version foncée, lisible sur le blanc */
html[data-fond="clair"] .post-stats b,
html[data-fond="clair"] .logos-titre,
html[data-fond="clair"] .lecteur-lien{ color:var(--or-texte); }

/* Bloc des chiffres : jaune très clair au lieu de jaune très sombre */
html[data-fond="clair"] .post-stats-titre{ background:#FBEBC2; color:#6E4E00; }
html[data-fond="clair"] .post-stats div{ background:#FFF8E6; }

/* Panneau Affichage : le bloc « allumé » blanc garde un contour visible */
html[data-fond="clair"] .choix[data-fond="clair"]{ border-color:var(--filet); }

/* Lecteur et bulle : versions claires (la croix reste blanche, elle est sur le fond) */
html[data-fond="clair"] .lecteur{ background:rgba(255,255,255,.94); box-shadow:0 4px 18px rgba(15,20,25,.12); }
html[data-fond="clair"] .lecteur-play{ color:#fff; }
html[data-fond="clair"] .bulle{ border-color:transparent; box-shadow:0 4px 18px rgba(15,20,25,.25); }

/* La barre de gauche est posée sur le fond sombre : elle garde ses textes clairs */
html[data-fond="clair"] .rail{ --txt:#E7E9EA; --gris:#8B98A5; --survol:rgba(255,255,255,.06); --filet:rgba(255,255,255,.15); color:var(--txt); }

@media (max-width:780px){
  /* Sur téléphone, elle devient la barre blanche du bas : textes foncés */
  html[data-fond="clair"] .rail{ background:rgba(255,255,255,.94);
    --txt:#0F1419; --gris:#536471; --survol:rgba(15,20,25,.045); --filet:rgba(15,20,25,.13); }
  html[data-fond="clair"] .rail-item.actif{ color:var(--or-texte); }
  html[data-fond="clair"] .onglets{ background:rgba(255,255,255,.9); }
}
