/* ============================================================
   Afrovid — Édition « sombre » (fond noir, vert)
   Direction affiche éditoriale · piment + maïs · Unbounded / Archivo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Vert Afrovid (primaire) + or (accent) — thème clair */
  --piment:      #10B768;
  --piment-deep: #0A8F50;
  --piment-soft: rgba(16,183,104,.12);
  --maize:       #F4A91C;
  --maize-soft:  rgba(244,169,28,.16);
  --maize-ink:   #A9730A;
  --lagoon:      #0EA371;
  --lagoon-soft: rgba(14,163,113,.12);

  /* Surfaces claires (fond blanc) */
  --canvas:   #FAFBFB;
  --canvas-2: #F1F4F2;
  --panel:    #FFFFFF;
  --panel-2:  #EFF3F0;
  --inset:    #F3F6F4;

  /* Encre (texte foncé) */
  --ink:        #0F1A14;
  --ink-soft:   #586A60;
  --ink-faint:  #8A9991;
  --line:        rgba(15,26,20,.10);
  --line-strong: rgba(15,26,20,.16);

  /* Alias des anciens noms (styles inline des .php) */
  --accent: var(--piment); --accent-deep: var(--piment-deep); --accent-soft: var(--piment-soft);
  --green: var(--lagoon); --green-deep: #0A8F50; --green-soft: var(--lagoon-soft);
  --cream: var(--ink); --cream-soft: var(--ink-soft); --cream-faint: var(--ink-faint);
  --paper: var(--canvas); --bg: var(--panel); --bg-2: var(--panel-2); --bg-3: var(--panel-2);

  --font:         'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

  --ribbon-h: 66px;
  --maxw: 1320px;
  --r-sm: 9px; --r-md: 13px; --r-lg: 20px;

  --shadow:     0 6px 22px -10px rgba(15,26,20,.20);
  --shadow-pop: 0 20px 48px -18px rgba(15,26,20,.26);
  --ring:       0 0 0 3px var(--piment-soft);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--piment); color: #fff; }
:focus-visible { outline: 2px solid var(--piment); outline-offset: 2px; }

.eyebrow, .kicker {
  font-family: var(--font); font-weight: 700; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--piment);
}

/* ============================================================ RUBAN */
.ribbon {
  position: sticky; top: 0; z-index: 200; background: rgba(8,18,12,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ribbon-in { max-width: var(--maxw); margin: 0 auto; height: var(--ribbon-h);
  display: flex; align-items: center; gap: 22px; padding: 0 26px; }
.brand { display: flex; align-items: baseline; gap: 1px; font-family: var(--font-display); font-weight: 800;
  font-size: 23px; letter-spacing: -.02em; line-height: 1; }
.brand .b-lol { color: var(--piment); }
.brand .b-dot { color: var(--maize); }
.brand .b-rest { color: var(--ink); }

.ribbon-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.ribbon-nav a { font-weight: 600; font-size: 14px; color: var(--ink-soft); padding: 9px 14px; border-radius: 40px;
  transition: color .15s, background .15s; }
.ribbon-nav a:hover { color: var(--ink); background: var(--panel-2); }
.ribbon-nav a.active { color: #fff; background: var(--piment); font-weight: 700; }

.ribbon-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: none; color: var(--ink); transition: background .15s, transform .1s; }
.icon-btn:hover { background: var(--panel-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 23px; height: 23px; }
.burger { display: none; }

/* Recherche escamotable */
.searchwrap { border-bottom: 1px solid var(--line); background: var(--canvas-2); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.searchwrap.open { max-height: 92px; overflow: visible; }
.searchbar { max-width: var(--maxw); margin: 0 auto; padding: 14px 26px; }
.search-box { position: relative; width: 100%; }
.search { display: flex; width: 100%; }
.search input { flex: 1; height: 50px; border: 1.5px solid var(--line-strong); border-right: none;
  border-radius: 50px 0 0 50px; padding: 0 22px; font-size: 16px; font-family: var(--font);
  outline: none; color: var(--ink); background: var(--canvas); transition: border-color .15s; }
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { border-color: var(--piment); }
.search button { width: 64px; border: 1.5px solid var(--line-strong); background: var(--panel-2);
  border-radius: 0 50px 50px 0; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.search:focus-within button { border-color: var(--piment); color: var(--piment); }
.search button svg { width: 22px; height: 22px; }

.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop);
  overflow: hidden; z-index: 400; padding: 7px 0; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; font-size: 14px; }
.suggest-item:hover, .suggest-item.active { background: var(--panel-2); }
.suggest-item svg { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; }
.suggest-item .s-thumb { width: 56px; height: 33px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background:#000; }
.suggest-item b { font-weight: 600; color: var(--ink); }
.suggest-item small { color: var(--ink-faint); }

/* Feuille nav mobile */
.navsheet { position: fixed; top: var(--ribbon-h); left: 0; right: 0; z-index: 190; background: var(--canvas);
  border-bottom: 1px solid var(--line); padding: 10px; transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all .2s; box-shadow: var(--shadow); }
.navsheet.open { transform: translateY(0); opacity: 1; visibility: visible; }
.navsheet a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-sm); font-weight: 600; }
.navsheet a:hover { background: var(--panel-2); }
.navsheet a svg { width: 22px; height: 22px; color: var(--ink-soft); }

/* ============================================================ BOUTONS */
.btn { font-family: var(--font); font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  border-radius: 40px; padding: 11px 18px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, box-shadow .15s, color .15s, transform .08s, border-color .15s;
  white-space: nowrap; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--piment); color: #fff; box-shadow: 0 4px 14px rgba(17,195,107,.34); }
.btn-primary:hover { background: var(--piment-deep); }
.btn-soft { background: var(--piment-soft); color: var(--piment-deep); }
.btn-soft:hover { background: rgba(17,195,107,.22); }
.btn-ghost { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--ink-faint); }
.btn-chip { background: var(--panel-2); color: var(--ink); }
.btn-chip:hover { background: var(--canvas-2); }
.btn-dark { background: var(--ink); color: #fff; border: none; }
.btn-dark:hover { background: #26382F; }
.btn-block { width: 100%; justify-content: center; padding: 14px; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.create-btn { font-weight: 800; }

/* ============================================================ AVATAR + MENUS */
.user-menu, .notif-menu { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--piment); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; cursor: pointer; overflow: hidden;
  flex-shrink: 0; font-family: var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: absolute; right: 0; top: 54px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop); min-width: 240px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: all .16s ease; }
.user-menu.open .dropdown, .notif-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 14px; padding: 11px 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--panel-2); }
.dropdown a svg { width: 21px; height: 21px; color: var(--ink-soft); }
.dropdown hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; }

.notif-badge { position: absolute; top: 6px; right: 6px; background: var(--piment); color: #fff; font-size: 10px;
  font-weight: 800; min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-items: center;
  padding: 0 4px; border: 2px solid var(--canvas); }
.notif-dropdown { width: 320px; padding: 0; max-height: 72vh; overflow-y: auto; }
.notif-head { font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.notif-empty { padding: 28px 16px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.notif-item { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; color: var(--ink); }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex-shrink: 0; }
.notif-item.unread { background: var(--piment-soft); }
.notif-item.unread .dot { background: var(--piment); }
.notif-item .msg { display: block; font-size: 14px; line-height: 1.4; }
.notif-item .time { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.notif-all { display: block; text-align: center; padding: 13px; font-size: 13px; color: var(--piment-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); }
.notif-all:hover { background: var(--panel-2); }

/* ============================================================ STRUCTURE */
.app-shell { max-width: var(--maxw); margin: 0 auto; }
.main-content { padding: 26px 26px 80px; min-width: 0; }
.backdrop { position: fixed; inset: 0; top: var(--ribbon-h); background: rgba(26,20,16,.4); z-index: 180; opacity: 0; visibility: hidden; transition: opacity .2s; }
body.nav-open .backdrop { opacity: 1; visibility: visible; }

/* ============================================================ ACCUEIL */
.tabstrip { display: flex; align-items: center; gap: 26px; overflow-x: auto; padding: 4px 0 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabstrip::-webkit-scrollbar { display: none; }
.tab { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-faint);
  white-space: nowrap; cursor: pointer; padding: 6px 0; position: relative; letter-spacing: -.01em;
  transition: color .15s; background: none; border: none; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -17px; height: 3px; background: var(--piment); border-radius: 3px; }

.feature { display: grid; grid-template-columns: 1.35fr .9fr; gap: 22px; margin-bottom: 46px; }
.feature-media { position: relative; grid-row: span 2; border-radius: var(--r-lg); overflow: hidden; background: #000;
  aspect-ratio: 16/10; box-shadow: var(--shadow); display: block; }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-media .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,10,7,.85) 6%, rgba(15,10,7,.05) 55%); }
.feature-media .eyebrow { position: absolute; top: 18px; left: 20px; background: #fff; padding: 7px 12px; border-radius: 40px; z-index: 2; }
.feature-media .fm-play { position: absolute; left: 20px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--piment); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255,77,28,.5); transition: transform .18s; z-index: 2; }
.feature-media:hover .fm-play { transform: scale(1.08); }
.feature-media .fm-play svg { width: 26px; height: 26px; }
.feature-body { align-self: end; }
.feature-body .kicker { display: inline-block; margin-bottom: 12px; }
.feature-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04; letter-spacing: -.03em; color: var(--ink); margin-bottom: 14px; }
.feature-title:hover { color: var(--piment); }
.feature-meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.feature-meta b { color: var(--ink); font-weight: 700; }
.feature-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.toplist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; align-self: stretch; box-shadow: var(--shadow); }
.toplist-head { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink); padding: 13px 14px 10px; }
.toprow { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: var(--r-sm); }
.toprow:hover { background: var(--panel-2); }
.toprow .rank { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--piment); width: 30px; flex-shrink: 0; }
.toprow .tr-body { min-width: 0; }
.toprow .tr-title { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toprow .tr-meta { color: var(--ink-faint); font-size: 12px; margin-top: 3px; }

.sec-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; }
.sec-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; }
.rule2 { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
.section-head h1, .section-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.section-head h1::before, .section-head h2::before { content: ''; width: 6px; height: 22px; border-radius: 3px; background: var(--piment); flex-shrink: 0; }
.section-head .count { color: var(--ink-soft); font-weight: 500; font-size: 14px; }

/* ============================================================ MUR (cartes affiches) */
.grid, .feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 26px 20px; }
.card { display: block; animation: fade .45s both; }
.poster { position: relative; aspect-ratio: 4/5; background: #000; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover .poster { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.poster .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,8,5,.92) 8%, rgba(12,8,5,.04) 52%); }
.poster .stub { position: absolute; top: 10px; right: 10px; background: rgba(8,18,12,.8); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 6px; z-index: 2; }
.poster .p-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; z-index: 2; }
.poster .p-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.18; letter-spacing: -.01em;
  color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poster .p-by { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: rgba(255,255,255,.82); font-size: 12px; }
.poster .p-av { width: 22px; height: 22px; border-radius: 50%; background: var(--lagoon); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 11px; overflow: hidden; flex-shrink: 0; font-family: var(--font-display); }
.poster .p-av img { width: 100%; height: 100%; object-fit: cover; }
.poster .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .18s; z-index: 3; }
.card:hover .poster .play-overlay { opacity: 1; }
.poster .play-overlay span { width: 52px; height: 52px; border-radius: 50%; background: var(--piment); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,77,28,.55); }
.poster .play-overlay span svg { width: 22px; height: 22px; }

/* Aperçu au survol (générique : cartes, à la une, tableaux, suggestions) */
.hover-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; background: #000; pointer-events: none; }
.hover-vid.ready { opacity: 1; }
.vthumb { position: relative; display: block; overflow: hidden; border-radius: 7px; background: #000; }
.vthumb img, .vthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================ LECTURE */
.watch { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }
.player-wrap { background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  position: relative; display: flex; align-items: center; justify-content: center;
  max-height: 80vh; min-height: 240px; }
.player-wrap video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; background: #000; }
.watch h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 20px 0 10px; line-height: 1.18; letter-spacing: -.02em; }
.watch-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.watch-stats { color: var(--ink-soft); font-size: 14px; }
.watch-stats b { color: var(--ink); font-weight: 700; }
.watch-actions { display: flex; gap: 8px; margin-left: auto; }
.like-btn { background: var(--panel-2); color: var(--ink); }
.like-btn:hover { background: var(--canvas-2); }
.like-btn.liked { background: var(--piment-soft); color: var(--piment-deep); }
.like-btn.liked svg { fill: var(--piment); }
.author-box { display: flex; align-items: center; gap: 14px; padding: 18px 0; margin-top: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box .avatar { width: 48px; height: 48px; cursor: default; font-size: 19px; }
.author-box .name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.author-box .since { color: var(--ink-soft); font-size: 13px; }
.video-desc { background: var(--canvas-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 16px;
  white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--ink); }

.comments { margin-top: 30px; }
.comments h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 28px; align-items: flex-start; }
.comment-form textarea { flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px;
  font: 400 14px var(--font); resize: vertical; min-height: 46px; outline: none; background: var(--canvas); color: var(--ink); transition: border-color .15s; }
.comment-form textarea:focus { border-color: var(--piment); }
.comment { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 42px; height: 42px; cursor: default; }
.comment .c-head { display: flex; gap: 8px; align-items: baseline; }
.comment .c-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.comment .c-time { color: var(--ink-faint); font-size: 12px; }
.comment .c-text { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink); }

.sidebar-rel h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.side-card { display: flex; gap: 11px; margin-bottom: 10px; padding: 7px; border-radius: var(--r-sm); transition: background .15s; }
.side-card:hover { background: var(--panel-2); }
.side-card .thumb { position: relative; width: 150px; flex-shrink: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16/9; background:#000; }
.side-card .thumb img, .side-card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.side-card .duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; z-index: 2; }
.side-card .s-title { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-card .s-meta { color: var(--ink-faint); font-size: 12px; margin-top: 5px; }

/* ============================================================ FORMULAIRES */
.auth-wrap { max-width: 470px; margin: 36px auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 38px 34px; box-shadow: var(--shadow); }
.auth-wrap.wide { max-width: 700px; }
.auth-wrap h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.auth-wrap .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px;
  font: 400 15px var(--font); outline: none; background: var(--canvas); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--piment); box-shadow: var(--ring); }
.field .hint { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
.auth-foot a { color: var(--piment-deep); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-md); padding: 42px 20px; text-align: center;
  background: var(--canvas-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--piment); background: var(--piment-soft); }
.dropzone .big svg { width: 46px; height: 46px; color: var(--piment); }
.dropzone p { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.dropzone .file-name { margin-top: 10px; font-weight: 700; color: var(--piment-deep); }

.flash-zone { margin-bottom: 16px; }
.flash { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.flash.info    { background: var(--canvas-2); color: var(--ink); border-color: var(--line-strong); }
.flash.success { background: var(--lagoon-soft); color: var(--green-deep); border-color: rgba(17,195,107,.34); }
.flash.error   { background: rgba(255,90,80,.13); color: #C0392B; border-color: rgba(255,90,80,.32); }
.flash svg { width: 18px; height: 18px; flex-shrink: 0; }
.flash a { font-weight: 700; text-decoration: underline; color: var(--piment-deep); }

.profile-head { display: flex; align-items: center; gap: 26px; margin-bottom: 32px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 0% 0%, var(--piment-soft), transparent 55%), var(--panel); box-shadow: var(--shadow); }
.profile-head .avatar { width: 100px; height: 100px; font-size: 42px; cursor: default; box-shadow: var(--shadow); }
.profile-head .eyebrow { display: block; margin-bottom: 8px; }
.profile-head h1 { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.profile-head .stats { color: var(--ink-soft); margin-top: 8px; font-size: 14px; }
.profile-head .stats b { color: var(--ink); font-weight: 700; }
.ph-bio { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; max-width: 560px; }

.empty { text-align: center; padding: 80px 20px; color: var(--ink-soft); }
.empty .big svg { width: 60px; height: 60px; color: var(--ink-faint); }
.empty h3 { font-family: var(--font-display); color: var(--ink); font-size: 21px; font-weight: 800; margin: 18px 0 6px; }
.empty p { font-size: 14px; }

.site-footer { max-width: var(--maxw); margin: 50px auto 0; padding: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.site-footer a:hover { color: var(--piment-deep); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.foot-links a { font-weight: 700; }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================ TABLEAUX DE BORD / ADMIN */
.dash-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 24px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; }
.dash-head .spacer { flex: 1; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px;
  display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.stat .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--piment-soft); color: var(--piment-deep); display: grid; place-items: center; flex-shrink: 0; }
.stat:nth-child(2) .ic { background: var(--maize-soft); color: var(--maize-ink); }
.stat:nth-child(3) .ic { background: var(--lagoon-soft); color: var(--green-deep); }
.stat .ic svg { width: 23px; height: 23px; }
.stat > div { min-width: 0; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat .l { color: var(--ink-soft); font-size: 13px; margin-top: 5px; font-weight: 500; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-mini { position: relative; display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--line-strong); border-radius: 40px;
  padding: 9px 16px; background: var(--canvas); max-width: 380px; flex: 1; transition: border-color .15s, box-shadow .15s; }
.search-mini:focus-within { border-color: var(--piment); box-shadow: var(--ring); }
.search-mini svg { width: 18px; height: 18px; color: var(--ink-faint); }
.search-mini input { border: none; outline: none; flex: 1; font: 400 14px var(--font); background: transparent; color: var(--ink); }
.search-mini input::placeholder { color: var(--ink-faint); }
.search-mini .search-suggest { left: 0; right: 0; }

table.admin { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
table.admin th, table.admin td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; color: var(--ink); }
table.admin th { background: var(--canvas-2); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
table.admin tr:last-child td { border-bottom: none; }
table.admin tbody tr:hover td, table.admin tr:hover td { background: var(--canvas-2); }
.t-title { display: flex; align-items: center; gap: 11px; }
.t-title .vthumb, .t-title img, .t-title video { width: 66px; height: 40px; border-radius: 7px; object-fit: cover; background:#000; flex-shrink: 0; }
.t-title a { font-weight: 600; color: var(--ink); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions button, .row-actions a { cursor: pointer; }

.badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: inline-block; text-transform: uppercase; letter-spacing: .03em; }
.badge.published { background: var(--lagoon-soft); color: var(--green-deep); }
.badge.pending   { background: var(--maize-soft); color: var(--maize-ink); }
.badge.blocked   { background: rgba(255,90,80,.14); color: #C0392B; }
.badge.admin     { background: var(--piment-soft); color: var(--piment-deep); }
.badge.member    { background: var(--panel-2); color: var(--ink-soft); }
.badge.banned    { background: rgba(255,90,80,.14); color: #C0392B; }

.verify-note { text-align: center; }
.verify-note .big svg { width: 54px; height: 54px; color: var(--piment); }
.verify-note h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 14px 0 8px; }

.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.auth-wrap .big { display: grid; place-items: center; }

.feed-loader { display: flex; justify-content: center; padding: 32px 0; }
.feed-loader[hidden] { display: none; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--panel-2); border-top-color: var(--piment); animation: l2b-spin .7s linear infinite; }
@keyframes l2b-spin { to { transform: rotate(360deg); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; animation: l2b-fade .15s ease; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 30px 26px 22px;
  width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow-pop); animation: l2b-pop .18s ease; }
.modal-ic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(255,90,80,.14); color: #C0392B; }
.modal-ic svg { width: 27px; height: 27px; }
.modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.modal p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions .btn { min-width: 124px; justify-content: center; }
.btn-danger { background: var(--piment); color: #fff; }
.btn-danger:hover { background: var(--piment-deep); }
@keyframes l2b-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes l2b-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { grid-row: auto; aspect-ratio: 16/9; }
  .watch { grid-template-columns: 1fr; }
  .ribbon-nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 680px) {
  .ribbon-in { padding: 0 16px; gap: 12px; }
  .main-content { padding: 18px 16px 60px; }
  .grid, .feed { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
  .create-btn .create-label { display: none; }
  .feature-title { font-size: 26px; }
  .profile-head { flex-direction: column; text-align: center; align-items: center; gap: 16px; }
  .ph-bio { margin-left: auto; margin-right: auto; }
}
@media (max-width: 460px) {
  .auth-link-label { display: none; }
  .grid, .feed { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   STATISTIQUES AVANCÉES + PARTAGE / SIGNALEMENT
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); }
.panel-head { font-family: var(--font-display); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.panel-head svg { width: 18px; height: 18px; color: var(--piment); }

/* Barres horizontales */
.chart { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-label a:hover { color: var(--piment); }
.bar-sub { display: block; color: var(--ink-faint); font-size: 11px; font-weight: 500; }
.bar-track { background: var(--panel-2); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; min-width: 6px; transition: width .4s ease; }
.bar-val { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); }

/* Histogramme vertical (séries temporelles) */
.spark { display: flex; align-items: flex-end; gap: 5px; height: 126px; }
.sb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; }
.sb span { width: 100%; max-width: 24px; background: linear-gradient(var(--piment), var(--maize)); border-radius: 5px 5px 0 0; min-height: 3px; transition: height .4s ease; }
.sb em { font-size: 9px; color: var(--ink-faint); font-style: normal; white-space: nowrap; }

/* Donut (répartition) */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut-hole { position: absolute; inset: 22px; background: var(--panel); border-radius: 50%; display: grid; place-items: center; text-align: center; }
.donut-hole b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--ink); }
.donut-hole span { font-size: 11px; color: var(--ink-soft); }
.legend { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; min-width: 150px; }
.legend li { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.legend b { margin-left: auto; font-family: var(--font-display); color: var(--ink); }

/* Badge onglet (signalements) */
.tab-badge { background: var(--piment); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-left: 2px; }

/* Fenêtre de partage / signalement */
.modal { position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--panel-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.modal-close:hover { background: var(--canvas-2); }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 16px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: var(--r-sm); font-weight: 700; color: #fff; font-size: 14px; }
.share-btn:hover { filter: brightness(1.08); }
.share-btn.wa { background: #25D366; } .share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #111; } .share-btn.tg { background: #229ED9; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 13px; font: 500 13px var(--font); background: var(--inset); color: var(--ink-soft); outline: none; }
.report-modal { text-align: center; }
.report-modal .field { margin-bottom: 14px; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 96px 1fr auto; gap: 9px; }
  .sb em { font-size: 8px; }
}

/* ============================================================
   LOGO · FOOTER ESPACÉ · DÉTAILS STATS · MESSAGERIE
   ============================================================ */
.brand-logo { height: 30px; width: auto; display: block; }

/* Footer : marges basses après le logo, le titre (tagline) et le menu */
.foot-brand { display: inline-block; margin-bottom: 14px; }
.foot-brand img { height: 46px; width: auto; display: block; }
.foot-tag { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.foot-base { color: var(--ink-faint); font-size: 13px; }

/* Détails sous les métriques (espace membre) */
.stat-sub { color: var(--ink-faint); font-size: 11px; margin-top: 3px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Messagerie ---------- */
.msg-wrap { max-width: 760px; }
.conv-head { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.conv-head .avatar { width: 48px; height: 48px; cursor: default; font-size: 19px; }
.conv-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
a.conv-name:hover { color: var(--piment); }
.conv-sub { color: var(--ink-soft); font-size: 13px; }

.thread { display: flex; flex-direction: column; gap: 10px; max-height: 54vh; overflow-y: auto; padding: 6px 4px; }
.thread-empty { text-align: center; color: var(--ink-soft); padding: 42px 10px; }
.bubble { max-width: 74%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.bubble.them { align-self: flex-start; background: var(--panel-2); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.me   { align-self: flex-end; background: var(--piment); color: #fff; border-bottom-right-radius: 5px; }
.bubble .b-time { display: block; font-size: 10px; opacity: .72; margin-top: 5px; }

.msg-compose { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.msg-compose textarea { flex: 1; border: 1.5px solid var(--line-strong); border-radius: 20px; padding: 12px 16px;
  font: 400 14px var(--font); resize: none; outline: none; background: var(--canvas); color: var(--ink); max-height: 130px; }
.msg-compose textarea:focus { border-color: var(--piment); }

.conv-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.conv-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.conv-item:last-child { border-bottom: none; }
.conv-item:hover { background: var(--panel-2); }
.conv-item .avatar { width: 48px; height: 48px; cursor: default; font-size: 19px; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: baseline; gap: 10px; }
.conv-top .conv-name { font-size: 15px; }
.conv-time { margin-left: auto; color: var(--ink-faint); font-size: 12px; flex-shrink: 0; }
.conv-snip { color: var(--ink-soft); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item.unread .conv-name { font-weight: 800; }
.conv-item.unread .conv-snip { color: var(--ink); font-weight: 600; }
.conv-snip .you { color: var(--ink-faint); font-weight: 500; }
.conv-badge { background: var(--piment); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px;
  border-radius: 10px; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0; }

@media (max-width: 680px) { .brand-logo { height: 25px; } .bubble { max-width: 84%; } }

/* Encart explicatif des métriques (espace membre) */
.metric-notes .notes-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.metric-notes .notes-list li { display: flex; gap: 14px; align-items: flex-start; }
.metric-notes .note-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--piment-soft);
  color: var(--piment-deep); display: grid; place-items: center; flex-shrink: 0; }
.metric-notes .note-ic.maize { background: var(--maize-soft); color: var(--maize-ink); }
.metric-notes .note-ic svg { width: 18px; height: 18px; }
.metric-notes .notes-list b { font-size: 14px; color: var(--ink); }
.metric-notes .notes-list p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin-top: 4px; }
.metric-notes .notes-list strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   LECTURE AUTO — vidéo suivante (façon YouTube)
   ============================================================ */
.player-wrap { position: relative; }
.upnext { position: absolute; inset: 0; background: rgba(12,8,5,.82); display: flex; align-items: center; justify-content: center;
  z-index: 5; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.upnext[hidden] { display: none; }
.upnext-card { text-align: center; color: #fff; padding: 24px; max-width: 440px; }
.upnext-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--maize); }
.upnext-kicker svg { width: 16px; height: 16px; }
.upnext-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; margin: 12px 0 4px; }
.upnext-by { color: rgba(255,255,255,.7); font-size: 13px; }
.upnext-count { margin: 16px 0 18px; font-size: 14px; color: rgba(255,255,255,.85); }
.upnext-count b { font-family: var(--font-display); font-size: 18px; color: #fff; }
.upnext-actions { display: flex; gap: 10px; justify-content: center; }

.rel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rel-head h3 { margin: 0; }
.autoplay-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-soft); user-select: none; }
.autoplay-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.autoplay-toggle .switch { width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; transition: background .18s; flex-shrink: 0; }
.autoplay-toggle .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.autoplay-toggle input:checked + .switch { background: var(--piment); }
.autoplay-toggle input:checked + .switch::after { transform: translateX(16px); }

/* ============================================================
   NOTIFICATIONS — icônes par type, marquage lu, page
   ============================================================ */
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notif-readall { font-size: 12px; font-weight: 700; color: var(--piment-deep); text-transform: none; letter-spacing: 0; }
.notif-readall:hover { text-decoration: underline; }

.notif-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.notif-ic svg { width: 16px; height: 16px; }
.notif-ic.pink  { background: rgba(255,90,150,.16); color: #D6336C; }
.notif-ic.blue  { background: rgba(90,150,255,.16); color: #1F6FD6; }
.notif-ic.green { background: var(--lagoon-soft); color: var(--green-deep); }
.notif-ic.amber { background: var(--maize-soft); color: var(--maize-ink); }
.notif-ic.red   { background: rgba(255,90,80,.14); color: #C0392B; }
.notif-ic.grey  { background: var(--panel-2); color: var(--ink-soft); }

.notif-dropdown .notif-item { align-items: center; }
.notif-body { display: flex; flex-direction: column; min-width: 0; }

/* Page « Toutes les notifications » */
.notif-page { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.notif-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--panel); color: var(--ink); transition: background .15s, border-color .15s; }
a.notif-row:hover { background: var(--panel-2); border-color: var(--line-strong); }
.notif-row .notif-body { flex: 1; }
.notif-row .msg { font-size: 14px; line-height: 1.4; }
.notif-row .time { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.notif-row .notif-go { color: var(--ink-faint); flex-shrink: 0; }
.notif-row .notif-go svg { width: 16px; height: 16px; }

/* Localisation sur le profil */
.ph-loc { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 6px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.ph-loc svg { width: 16px; height: 16px; color: var(--piment); }

/* Messagerie : aucun résultat de recherche */
.conv-empty { padding: 22px 16px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* ============================================================
   UPLOAD — caméra, rognage, image de couverture
   ============================================================ */
.up-or { display: flex; align-items: center; text-align: center; color: var(--ink-faint); font-size: 13px; margin: 14px 0; }
.up-or::before, .up-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.up-or span { padding: 0 12px; }

.editor { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--panel); }
.ed-video { border-radius: var(--r-md); overflow: hidden; background: #000; margin-bottom: 16px; }
.ed-video video { width: 100%; max-height: 380px; display: block; }
.ed-block { padding: 14px 0; border-top: 1px solid var(--line); }
.ed-block:first-of-type { border-top: none; padding-top: 0; }
.ed-head { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 12px; }
.ed-head svg { width: 16px; height: 16px; color: var(--piment); }
.cover-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-prev { width: 200px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel-2); display: none; }
.cover-actions { display: flex; flex-direction: column; gap: 10px; }

.cam-modal { max-width: 560px; }
.cam-live { border-radius: var(--r-md); overflow: hidden; background: #000; margin: 6px 0 14px; position: relative; }
.cam-live video { width: 100%; max-height: 360px; display: block; }
.cam-dot { position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-radius: 50%; background: #e0231c; animation: campulse 1.2s infinite; }
@keyframes campulse { 0% { box-shadow: 0 0 0 0 rgba(224,35,28,.55) } 70% { box-shadow: 0 0 0 12px rgba(224,35,28,0) } 100% { box-shadow: 0 0 0 0 rgba(224,35,28,0) } }
.cam-controls { display: flex; gap: 10px; flex-wrap: wrap; }

/* Bouton « activer le son » (autoplay muet) */
.unmute-btn { position: absolute; bottom: 64px; right: 14px; z-index: 6; background: rgba(12,8,5,.78); color: #fff;
  border: none; border-radius: 30px; padding: 9px 16px; font: 600 13px var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.unmute-btn:hover { background: var(--piment); }

/* Encart « Comprendre ces chiffres » repliable */
.notes-toggle { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; text-align: left; padding: 0; font: inherit; color: inherit; }
.notes-chev { color: var(--ink-soft); display: inline-flex; }
.notes-chev svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.metric-notes.collapsed .notes-chev svg { transform: rotate(0deg); }
.metric-notes.collapsed .notes-list { display: none; }
.metric-notes.collapsed .notes-toggle { margin-bottom: 0; }

/* Chrono d'enregistrement caméra */
.cam-timer { position: absolute; top: 12px; right: 12px; background: rgba(12,8,5,.72); color: #fff;
  font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 20px; letter-spacing: .4px; }

/* ============================================================
   ADAPTATION MOBILE APRÈS CONNEXION (barre admin + menus)
   ============================================================ */
.admin-nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 680px) {
  /* Barre d'administration : bande défilable horizontalement, pleine largeur */
  .section-head { flex-wrap: wrap; gap: 10px; }
  .admin-nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .admin-nav .btn { flex-shrink: 0; }
}

@media (max-width: 560px) {
  /* Menus déroulants (notifications) : plein écran, ne débordent plus */
  .notif-dropdown { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; max-height: 74vh; overflow-y: auto; }
  .user-menu .dropdown { right: 0; min-width: 210px; max-height: 80vh; overflow-y: auto; }
}

/* ============================================================
   ADAPTATION MOBILE — tableau de bord, tables admin, lecteur, diagnostic
   ============================================================ */

/* Colonnes secondaires réellement masquées sur petit écran */
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* Tables admin (vidéos / membres / signalements) → cartes empilées sur mobile */
@media (max-width: 680px) {
  table.admin { display: block; border: none; background: transparent; box-shadow: none; }
  table.admin tbody { display: block; }
  table.admin tr { display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; margin-bottom: 12px; padding: 10px 12px; }
  table.admin tr:first-child { display: none; }              /* en-tête de colonnes */
  table.admin td { display: block; border: none; padding: 5px 2px; font-size: 14px; }
  table.admin tr:hover td, table.admin tbody tr:hover td { background: transparent; }
  table.admin .t-title { gap: 10px; }
  table.admin .row-actions { margin-top: 8px; }
}

/* Cartes statistiques : icône masquée + plus compactes sur mobile */
@media (max-width: 680px) {
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .stat { min-width: 0; }
  .stat { padding: 14px; }
  .stat .n { font-size: 23px; }
}
@media (max-width: 380px) { .stat-cards { grid-template-columns: minmax(0, 1fr); } }

/* Lecteur vidéo : pleine largeur, actions repliées proprement */
@media (max-width: 680px) {
  .watch h1 { font-size: 20px; }
  .watch-meta { gap: 10px; }
  .watch-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .watch-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Bouton « masquer les statistiques » */
.stats-toggle .st-ico { display: inline-flex; }

/* Table de diagnostic : colonnes bien dimensionnées sur mobile */
@media (max-width: 680px) {
  .diag td { padding: 9px 6px; }
  .diag-name { white-space: normal; }
}
@media (max-width: 520px) {
  .diag, .diag tbody, .diag tr, .diag td { display: block; }
  .diag tr { border-top: 1px solid var(--line); padding: 9px 0; }
  .diag tr:first-child { border-top: none; }
  .diag td { border: none; padding: 2px 0; }
  .diag .diag-ic, .diag .diag-name { display: inline-block; vertical-align: middle; }
  .diag .diag-name { margin-left: 4px; }
}

/* Photo du membre dans la table d'administration */
.u-cell { display: flex; align-items: center; gap: 12px; }
.u-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--piment); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 16px; }
.u-av { text-decoration: none; }
.u-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-meta a { font-weight: 600; color: var(--ink); }
.u-name { color: var(--ink-soft); font-size: 12px; }
.u-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

/* Blocs graphiques (vues, statut, répartition) : adaptation mobile */
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
  .donut-wrap { justify-content: center; gap: 18px; }
  .legend { min-width: 0; width: 100%; }
  .panel-card { padding: 16px; }
  .spark { height: 112px; }
}

/* ============================================================
   CORRECTIFS DÉBORDEMENT MOBILE (graphiques, code, titres)
   ============================================================ */
/* Mini-graphique de vues : barres compressibles, étiquettes de dates masquées */
@media (max-width: 680px) {
  .spark { gap: 3px; }
  .sb { min-width: 0; }
  .sb span { max-width: 18px; }
  .sb em { display: none; }
}
/* Chemins / extraits de code : césure pour ne pas déborder */
code { word-break: break-word; overflow-wrap: anywhere; }
.diag-info, .diag-name { overflow-wrap: anywhere; }
/* Titres longs dans les cartes de table : autoriser le retour à la ligne */
@media (max-width: 680px) {
  table.admin .t-title a { min-width: 0; overflow-wrap: anywhere; }
}

/* ============================================================
   FICHE / PROFIL MEMBRE (administration) — design bannière
   ============================================================ */
.prof { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.prof-cover { height: 130px; background: linear-gradient(120deg, var(--piment), var(--maize)); position: relative; }
.prof-cover::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px); background-size: 22px 22px; }
.prof-body { padding: 0 26px 24px; }
.prof-avatar { width: 112px; height: 112px; border-radius: 50%; border: 5px solid var(--panel); margin-top: -56px;
  overflow: hidden; background: var(--piment); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 44px; box-shadow: var(--shadow); position: relative; }
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.prof-id { min-width: 0; }
.prof-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.prof-handle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; margin-top: 5px; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prof-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 4px; }
.ps { background: var(--panel-2); border-radius: 14px; padding: 12px 18px; min-width: 84px; text-align: center; }
.ps b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.ps span { font-size: 12px; color: var(--ink-soft); }
.prof-fields { list-style: none; display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 18px 0 0; }
.prof-fields li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.prof-fields li svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.prof-fields a { color: var(--ink); }
.prof-bio { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--ink); }
@media (max-width: 560px) {
  .prof-body { padding: 0 16px 20px; }
  .prof-avatar { width: 88px; height: 88px; margin-top: -44px; font-size: 36px; }
  .prof-head h1 { font-size: 22px; }
  .prof-actions { width: 100%; }
  .prof-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prof-stats .ps { min-width: 0; padding: 12px 8px; }
}

/* ============================================================
   LECTEUR VIDÉO FAÇON YOUTUBE
   ============================================================ */
.player-wrap { position: relative; }
.player-wrap video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }

.yt { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.yt.controls-hidden { cursor: none; }

.yt-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; cursor: pointer; z-index: 4; transition: opacity .15s, transform .15s; }
.yt-big svg { width: 34px; height: 34px; margin-left: 3px; }
.yt-big.hidden { opacity: 0; transform: translate(-50%, -50%) scale(.7); pointer-events: none; }

.yt-ctrls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 10px 6px; z-index: 5;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease; }
.yt.show .yt-ctrls { opacity: 1; transform: none; }
.yt.controls-hidden .yt-ctrls { opacity: 0; transform: translateY(8px); }

.yt-seek { padding: 9px 0; cursor: pointer; }
.yt-seek-line { position: relative; height: 4px; background: rgba(255,255,255,.32); border-radius: 3px; transition: height .12s; }
.yt-seek:hover .yt-seek-line { height: 6px; }
.yt-buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.5); border-radius: 3px; }
.yt-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--piment); border-radius: 3px; }
.yt-knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--piment); transform: translate(-50%, -50%) scale(0); transition: transform .12s; }
.yt-seek:hover .yt-knob { transform: translate(-50%, -50%) scale(1); }

.yt-row { display: flex; align-items: center; gap: 4px; color: #fff; }
.yt-b { width: 38px; height: 38px; border: none; background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px; padding: 0; }
.yt-b:hover { background: rgba(255,255,255,.16); }
.yt-b svg { width: 22px; height: 22px; display: block; }
.yt-rate { width: auto; min-width: 40px; padding: 0 10px; font-weight: 800; font-size: 13px; }
.yt-vol { width: 76px; height: 4px; accent-color: var(--piment); cursor: pointer; margin: 0 4px; }
.yt-time { font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .96; margin-left: 6px; white-space: nowrap; }
.yt-spacer { flex: 1; }

.yt-rate-wrap { position: relative; }
.yt-rate-menu { position: absolute; right: 0; bottom: 46px; background: rgba(22,18,16,.97); border-radius: 12px;
  padding: 6px; display: flex; flex-direction: column; min-width: 132px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.yt-rate-menu[hidden] { display: none; }
.yt-rate-menu button { background: transparent; border: none; color: #fff; text-align: left; padding: 9px 12px;
  border-radius: 8px; cursor: pointer; font-size: 13px; }
.yt-rate-menu button:hover { background: rgba(255,255,255,.14); }
.yt-rate-menu button.on { color: var(--piment); font-weight: 800; }

.player-wrap:fullscreen { width: 100vw; height: 100vh; border-radius: 0; aspect-ratio: auto; }
.player-wrap:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.player-wrap:-webkit-full-screen { width: 100vw; height: 100vh; }

@media (max-width: 560px) {
  .yt-vol { display: none; }
  .yt-b { width: 36px; height: 36px; }
  .yt-time { font-size: 11.5px; margin-left: 3px; }
  .yt-big { width: 60px; height: 60px; }
}

/* Aperçu vignette au survol de la barre (façon YouTube) */
.yt-preview { position: absolute; bottom: 56px; width: 160px; z-index: 6; pointer-events: none; text-align: center; }
.yt-preview video { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; background: #000;
  border: 2px solid rgba(255,255,255,.85); display: block; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.yt-preview-time { display: inline-block; margin-top: 5px; background: rgba(0,0,0,.82); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .yt-preview { bottom: 52px; } }

/* Case issue de la planche d'images pré-générée */

/* ============================================================
   BANDEAU COOKIES + PAGES LÉGALES
   ============================================================ */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  background: #1A1410; color: #fff; border-radius: 16px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); max-width: 760px; margin: 0 auto; }
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; min-width: 220px; }
.cookie-bar a { color: var(--maize); text-decoration: underline; }
.cookie-bar .btn { flex-shrink: 0; }

.legal { max-width: 760px; margin: 0 auto; padding: 8px 2px 24px; }
.legal h1 { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.legal h2 { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink); }
.legal ul { margin: 8px 0 8px 4px; padding-left: 18px; }
.legal li { margin: 5px 0; }
.legal a { color: var(--piment); }
.legal-upd { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.legal .todo { color: var(--piment); font-weight: 600; }
.legal-note { margin-top: 26px; padding: 12px 14px; background: var(--panel-2); border-radius: 12px;
  font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   LOT 2 — DÉCOUVERTE : catégories, hashtags, tendances
   ============================================================ */
.cat-badge { position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(26,20,16,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(2px); }

.cat-pill { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.cat-pill:hover { border-color: var(--piment); color: var(--piment); }
.cat-pill svg { color: var(--piment); }

.hashtag { color: var(--piment); font-weight: 600; text-decoration: none; }
.hashtag:hover { text-decoration: underline; }

.trend-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 18px; padding: 10px 14px; background: var(--panel-2); border-radius: 14px; }
.trend-lab { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px;
  color: var(--ink-soft); margin-right: 4px; }
.trend-lab svg { color: var(--piment); }
.trend-strip .hashtag { background: var(--panel); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; font-size: 13px; }
.trend-strip .hashtag:hover { border-color: var(--piment); text-decoration: none; }

.filter-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.filter-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.filter-count { color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   LOT 4 — FLUX VERTICAL « POUR TOI » (style TikTok)
   ============================================================ */
.feed-body { margin: 0; background: #000; overflow: hidden; }
.vfeed { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; background: #000; scrollbar-width: none; }
.vfeed::-webkit-scrollbar { display: none; }

.fs { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.fs-vid { width: 100%; height: 100%; object-fit: contain; background: #000; }
.fs-tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.fs-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 2; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.fs-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border: none; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff;
  display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity .15s; pointer-events: none; }
.fs-big.show { opacity: 1; }
.fs-big svg { width: 36px; height: 36px; margin-left: 3px; }

.fs-side { position: absolute; right: 10px; bottom: 104px; z-index: 4; display: flex; flex-direction: column;
  gap: 20px; align-items: center; }
.fs-av { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid #fff;
  background: var(--piment); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; text-decoration: none; }
.fs-av img { width: 100%; height: 100%; object-fit: cover; }
.fs-act { background: transparent; border: none; color: #fff; display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; padding: 0; }
.fs-act svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.fs-act b { text-shadow: 0 1px 3px rgba(0,0,0,.6); font-weight: 700; }
.fs-like.on { color: var(--piment); }
.fs-like.on svg { fill: var(--piment); stroke: var(--piment); }

.fs-meta { position: absolute; left: 14px; right: 80px; bottom: 92px; z-index: 4; color: #fff; }
.fs-user { font-weight: 800; font-size: 16px; color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.fs-cap { margin-top: 6px; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  max-height: 4.5em; overflow: hidden; white-space: pre-line; }
.fs-cap .hashtag { color: #fff; font-weight: 800; }

.fs-bar { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px)); height: 4px; background: rgba(255,255,255,.28); z-index: 8; }
.fs-bar i { display: block; height: 100%; width: 0; background: var(--piment); box-shadow: 0 0 8px rgba(16,183,104,.85); border-radius: 0 3px 3px 0; transition: width .12s linear; }

.fs-empty { color: #fff; text-align: center; }
.fs-empty h2 { font-family: var(--font-display); font-size: 24px; font-weight: 900; }
.fs-empty p { color: rgba(255,255,255,.7); margin: 8px 0 18px; }

.feed-top { position: fixed; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; padding-top: env(safe-area-inset-top); z-index: 10; color: #fff;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.feed-back { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; }
.feed-title { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -.01em; }
.feed-spacer { flex: 1; }
.feed-mute { width: 40px; height: 40px; border: none; background: rgba(0,0,0,.4); color: #fff; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; }
.feed-mute svg { width: 22px; height: 22px; }
.feed-logo img { height: 28px; display: block; }

/* ============================================================
   LOT 5 — PWA : bannière d'installation
   ============================================================ */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
  max-width: 520px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 50px rgba(0,0,0,.18); }
.install-bar[hidden], .cookie-bar[hidden] { display: none !important; }
.install-ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.install-txt { flex: 1; min-width: 0; line-height: 1.35; }
.install-txt b { display: block; font-size: 14.5px; }
.install-txt span { font-size: 12.5px; color: var(--ink-soft); }
.install-bar .btn { flex-shrink: 0; }
.install-x { flex-shrink: 0; background: transparent; border: none; color: var(--ink-faint);
  cursor: pointer; padding: 4px; display: grid; place-items: center; }
.install-x:hover { color: var(--ink); }

/* Quand l'app est installée (mode standalone), on masque le bandeau cookies flottant aussi. */
@media (display-mode: standalone) {
  .cookie-bar { display: none; }
}

/* ============================================================
   LOT 3 — ABONNEMENTS : bouton suivre
   ============================================================ */
.follow-btn { display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  background: var(--piment); color: #fff; font-weight: 800; font-size: 14px; padding: 9px 18px;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(255,77,28,.25); transition: filter .15s, background .15s; }
.follow-btn:hover { filter: brightness(1.05); }
.follow-btn:disabled { opacity: .6; cursor: default; }
.follow-btn.following { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.follow-btn.following .follow-lab::before { content: '✓ '; }
.follow-btn.btn-lg { padding: 10px 22px; font-size: 15px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.author-follow .follow-btn { padding: 7px 16px; font-size: 13.5px; }

/* Barre de progression d'upload */
.up-progress { margin-top: 14px; }
.up-progress[hidden] { display: none; }
.up-progress-bar { height: 10px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; }
.up-progress-bar i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--piment), var(--maize)); border-radius: 999px;
  transition: width .2s ease; }
.up-progress-lab { margin-top: 8px; font-size: 13px; color: var(--ink-soft); text-align: center; font-weight: 600; }

/* Flux vertical — navigation sur ordinateur (boutons précédent/suivant) */
.feed-nav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 12;
  display: flex; flex-direction: column; gap: 14px; }
.feed-navbtn { width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .15s, transform .1s; }
.feed-navbtn:hover { background: rgba(255,255,255,.28); }
.feed-navbtn:active { transform: scale(.92); }
.feed-navbtn svg { width: 26px; height: 26px; }
/* Tactile / petits écrans : on s'appuie sur le swipe natif, donc on masque les boutons. */
@media (max-width: 820px), (pointer: coarse) {
  .feed-nav { display: none; }
}

/* Bouton « Charger 50 vidéos suivantes » (accueil) */
.load-more-wrap { display: flex; justify-content: center; margin: 28px 0 8px; }
.load-more-btn { min-width: 240px; font-weight: 700; }
.load-more-btn:disabled { opacity: .6; cursor: default; }

/* ============================================================
   AFROVID — Nouvel agencement « streaming vertical »
   Barre latérale + rails par catégorie + spotlight
   (surcharge l'ancien agencement « affiche »)
   ============================================================ */
:root{ --green-bright:#0DA85C; --rail-bg:#FFFFFF; --rail-w:248px; --topbar-h:68px; }

/* ---- App shell ---- */
.app-shell{ display:grid; grid-template-columns:var(--rail-w) 1fr; min-height:100vh; }
.main-content{ padding:0 !important; max-width:none !important; margin:0 !important; }

/* ---- Sidebar ---- */
.side{ position:sticky; top:0; height:100vh; background:var(--rail-bg); border-right:1px solid var(--line);
  display:flex; flex-direction:column; padding:20px 16px; gap:4px; overflow-y:auto; }
.side-brand{ display:flex; align-items:center; padding:2px 8px 18px; }
.side-brand img{ height:30px; width:auto; }
.side-lab{ font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); padding:14px 12px 6px; }
.side a.nav{ display:flex; align-items:center; gap:13px; padding:11px 12px; border-radius:11px;
  font-weight:600; font-size:14.5px; color:var(--ink-soft); transition:background .15s,color .15s; position:relative; }
.side a.nav svg{ width:21px; height:21px; flex:none; }
.side a.nav:hover{ background:var(--panel); color:var(--ink); }
.side a.nav.on{ color:var(--ink); background:var(--panel); }
.side a.nav.on::before{ content:""; position:absolute; left:-16px; top:50%; transform:translateY(-50%);
  width:4px; height:22px; border-radius:0 4px 4px 0; background:var(--green-bright); }
.side a.nav .cdot{ width:9px; height:9px; border-radius:50%; flex:none; }
.side-cta{ margin:14px 4px 6px; display:flex; align-items:center; justify-content:center; gap:9px; padding:13px;
  border-radius:12px; font-family:var(--font-display); font-weight:600; font-size:15px; color:#04140C;
  background:linear-gradient(120deg,var(--green-bright),var(--piment)); box-shadow:0 8px 22px -8px rgba(20,201,114,.7); }
.side-cta svg{ width:19px; height:19px; }
.side-foot{ margin-top:auto; display:flex; align-items:center; gap:11px; padding:12px 8px 4px; border-top:1px solid var(--line); }
.side-foot .av{ width:36px; height:36px; border-radius:50%; flex:none; display:grid; place-items:center; overflow:hidden;
  font-family:var(--font-display); font-weight:700; font-size:14px; color:#04140C; background:var(--maize); }
.side-foot .av img{ width:100%; height:100%; object-fit:cover; }
.side-foot .who{ min-width:0; }
.side-foot .who b{ display:block; font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.side-foot .who span{ font-size:12px; color:var(--ink-faint); }
.side-foot .out{ margin-left:auto; color:var(--ink-faint); width:34px; height:34px; display:grid; place-items:center; border-radius:9px; }
.side-foot .out:hover{ background:var(--panel); color:var(--ink); }
.side-guest{ display:flex; flex-direction:column; gap:8px; margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }

/* ---- Main column ---- */
.appmain{ min-width:0; display:flex; flex-direction:column; }
.topbar{ position:sticky; top:0; z-index:50; height:var(--topbar-h); display:flex; align-items:center; gap:16px;
  padding:0 30px; background:rgba(255,255,255,.82); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.topbar .m-brand{ display:none; }
.topbar .m-brand img{ height:26px; }
.search-box{ position:relative; flex:1; max-width:560px; }
.tsearch{ display:flex; align-items:center; gap:10px; background:var(--panel); border:1px solid var(--line);
  border-radius:40px; padding:0 18px; height:46px; transition:border-color .15s; }
.tsearch:focus-within{ border-color:var(--piment); }
.tsearch svg{ width:19px; height:19px; color:var(--ink-faint); flex:none; }
.tsearch input{ flex:1; background:none; border:none; outline:none; color:var(--ink); font-size:14.5px; font-family:var(--font); }
.tsearch input::placeholder{ color:var(--ink-faint); }
.tsearch button{ background:none; border:none; color:var(--ink-faint); cursor:pointer; display:grid; place-items:center; }
.top-actions{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.appcontent{ flex:1; padding:26px 30px 96px; }

/* ---- Spotlight ---- */
.spot{ position:relative; border-radius:24px; overflow:hidden; min-height:340px; display:flex; align-items:flex-end;
  padding:38px; isolation:isolate; border:1px solid var(--line); }
.spot .spot-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.spot::before{ content:""; position:absolute; inset:0; z-index:-2;
  background:radial-gradient(120% 130% at 78% 18%,#1f7a52 0%,#0c2c1d 46%,#070d0a 78%); }
.spot::after{ content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,rgba(7,12,9,.94) 0%,rgba(7,12,9,.6) 44%,rgba(7,12,9,.25) 78%); }
.spot-glow{ position:absolute; right:-60px; top:-60px; width:360px; height:360px; z-index:-1;
  background:radial-gradient(circle,rgba(43,227,138,.38),transparent 62%); filter:blur(8px); }
.spot-tag{ display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--green-bright); }
.spot-tag .live{ display:inline-flex; align-items:center; gap:6px; color:var(--maize); }
.spot-tag .live i{ width:8px; height:8px; border-radius:50%; background:var(--maize); display:inline-block; animation:afvpulse 1.6s infinite; }
@keyframes afvpulse{ 0%{box-shadow:0 0 0 0 rgba(255,194,51,.6)} 70%{box-shadow:0 0 0 9px rgba(255,194,51,0)} 100%{box-shadow:0 0 0 0 rgba(255,194,51,0)} }
.spot h1{ font-family:var(--font-display); font-weight:700; font-size:clamp(26px,3.2vw,38px); line-height:1.08;
  letter-spacing:-.02em; max-width:600px; margin:14px 0 12px; }
.spot-meta{ display:flex; align-items:center; gap:12px; color:var(--ink-soft); font-size:14px; margin-bottom:22px; }
.spot-meta .av{ width:30px; height:30px; border-radius:50%; display:grid; place-items:center; overflow:hidden;
  font-family:var(--font-display); font-weight:700; font-size:12px; color:#04140C; background:var(--green-bright); }
.spot-meta .av img{ width:100%; height:100%; object-fit:cover; }
.spot-meta b{ color:var(--ink); font-weight:600; }
.spot-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---- Category chips ---- */
.chips{ display:flex; gap:10px; overflow-x:auto; padding:24px 0 8px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chips a{ flex:none; display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:40px;
  background:var(--panel); border:1px solid var(--line); font-weight:600; font-size:13.5px; color:var(--ink-soft);
  transition:border-color .15s,color .15s,background .15s; }
.chips a:hover{ color:var(--ink); border-color:var(--line-strong); }
.chips a.on{ background:var(--piment-soft); border-color:rgba(20,201,114,.45); color:var(--green-bright); }
.chips a .cdot{ width:8px; height:8px; border-radius:50%; }

/* ---- Rails ---- */
.rail-sec{ margin-top:30px; }
.rail-head{ display:flex; align-items:center; gap:12px; margin-bottom:15px; }
.rail-tab{ width:5px; height:22px; border-radius:3px; flex:none; }
.rail-head h2{ font-family:var(--font-display); font-weight:600; font-size:20px; letter-spacing:-.01em; margin:0; }
.rail-head .more{ margin-left:auto; display:inline-flex; align-items:center; gap:5px; color:var(--ink-soft); font-size:13px; font-weight:600; }
.rail-head .more:hover{ color:var(--green-bright); }
.rail-head .more svg{ width:16px; height:16px; }
.rail-arrows{ display:flex; gap:7px; }
.arw{ width:34px; height:34px; border-radius:50%; background:var(--panel); border:1px solid var(--line);
  display:grid; place-items:center; color:var(--ink-soft); cursor:pointer; transition:background .15s,color .15s; }
.arw:hover{ background:var(--panel-2); color:var(--ink); }
.arw svg{ width:18px; height:18px; }
.track{ display:flex; gap:16px; overflow-x:auto; padding:4px 2px 8px; scroll-behavior:smooth; scrollbar-width:none; scroll-snap-type:x proximity; }
.track::-webkit-scrollbar{ display:none; }
.track .card{ flex:none; width:184px; scroll-snap-align:start; }

/* ---- Cartes verticales (surcharge de l'ancien .poster) ---- */
.grid, .feed{ grid-template-columns:repeat(auto-fill, minmax(184px,1fr)) !important; gap:22px 16px !important; }
.poster{ aspect-ratio:9/14 !important; border:1px solid var(--line); }
.poster .scrim{ background:linear-gradient(to top, rgba(7,12,9,.94) 6%, rgba(7,12,9,.55) 38%, rgba(7,12,9,0) 64%) !important; }
.card:hover .poster{ box-shadow:0 16px 30px -16px rgba(0,0,0,.8), 0 0 0 1.5px rgba(43,227,138,.5) !important; }
.poster .p-title{ font-family:var(--font-display); font-weight:600; }
.poster .play-overlay span{ background:rgba(43,227,138,.92) !important; color:#04140C !important; }
.cat-badge{ background:rgba(7,12,9,.62) !important; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  color:var(--ink) !important; border:1px solid var(--line); font-weight:700; }

/* ---- Barre d'onglets mobile ---- */
.tabbar{ display:none; }

@media (max-width:1000px){
  .app-shell{ grid-template-columns:1fr; }
  .side{ display:none; }
  .topbar{ padding:0 16px; }
  .topbar .m-brand{ display:flex; align-items:center; flex:none; }
  .appcontent{ padding:20px 16px 28px; }
  .site-footer{ padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .search-box{ max-width:none; min-width:0; }
  .topbar{ gap:10px; }
  .tsearch{ height:42px; padding:0 14px; border-radius:24px; }
  .tsearch input{ font-size:14px; min-width:0; }
  .topbar .av-reg{ padding:10px 12px; }
  .tabbar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:80; height:66px;
    background:rgba(255,255,255,.95); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
    border-top:1px solid var(--line); align-items:center; justify-content:space-around; padding:0 6px; }
  .tabbar a{ display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10.5px; font-weight:600; color:var(--ink-faint); flex:1; }
  .tabbar a svg{ width:23px; height:23px; }
  .tabbar a.on{ color:var(--green-bright); }
  .tabbar a.pub{ margin-top:-22px; }
  .tabbar a.pub .fab{ width:54px; height:54px; border-radius:18px; display:grid; place-items:center; color:#04140C;
    background:linear-gradient(135deg,var(--green-bright),var(--piment)); box-shadow:0 10px 24px -8px rgba(20,201,114,.8); }
  .tabbar a.pub .fab svg{ width:26px; height:26px; }
}
@media (max-width:560px){ .spot{ min-height:300px; padding:24px; } .track .card{ width:152px; } }


/* ============================================================
   AFROVID — Thème clair (fond blanc) : ajustements & signature
   ============================================================ */
body{ background:var(--canvas); color:var(--ink); }

/* Barre latérale : état actif/survol visibles sur blanc */
.side a.nav:hover{ background:var(--canvas-2); }
.side a.nav.on{ background:var(--canvas-2); }
.side{ box-shadow:1px 0 0 var(--line); }

/* Topbar / recherche */
.topbar{ box-shadow:0 1px 0 var(--line); }
.tsearch{ background:var(--canvas-2); border-color:var(--line); }
.chips a:hover{ background:var(--canvas-2); }

/* SIGNATURE : spotlight sombre cinématographique posé sur le blanc */
.spot{ color:#EAF6EF; border:none; box-shadow:var(--shadow-pop); }
.spot h1, .spot h1 a{ color:#fff !important; }
.spot-meta{ color:rgba(255,255,255,.82); }
.spot-meta b{ color:#fff; }
.spot .btn-ghost{ background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.30); color:#fff; }
.spot .btn-ghost:hover{ background:rgba(255,255,255,.24); }

/* Cartes : ombre douce + liseré vert au survol sur fond clair */
.card .poster{ box-shadow:0 2px 10px -6px rgba(15,26,20,.18); }
.card:hover .poster{ box-shadow:0 16px 32px -16px rgba(15,26,20,.30), 0 0 0 1.5px var(--piment) !important; }

/* Boutons d'arrondi sur blanc */
.arw{ box-shadow:0 1px 6px -4px rgba(15,26,20,.3); }
.arw:hover{ background:var(--canvas-2); }

/* ===== Bloc d'invitation à installer l'app (pied de page) ===== */
.pwa-invite{ display:flex; align-items:center; gap:18px; max-width:var(--maxw); margin:32px auto 24px;
  padding:20px 22px; background:linear-gradient(120deg, var(--piment-soft), var(--canvas-2));
  border:1px solid var(--line); border-radius:var(--r-lg); }
.pwa-invite-ic{ width:56px; height:56px; border-radius:16px; flex:none; box-shadow:var(--shadow); }
.pwa-invite-txt{ flex:1; min-width:0; }
.pwa-invite-txt b{ display:block; font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--ink); }
.pwa-invite-txt span{ color:var(--ink-soft); font-size:14px; }
.pwa-invite .btn{ flex:none; white-space:nowrap; }
.pwa-invite-ios{ font-size:13px; color:var(--ink-soft); max-width:230px; line-height:1.4; }
@media(max-width:640px){ .pwa-invite{ flex-wrap:wrap; }
  .pwa-invite-txt{ flex-basis:calc(100% - 74px); } .pwa-invite .btn{ width:100%; } }

/* ===== Abonnements : onglets + listes d'utilisateurs ===== */
.sub-tabs{ display:flex; gap:10px; margin:6px 0 20px; }
.sub-tab{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:40px;
  background:var(--panel); border:1px solid var(--line); font-weight:600; font-size:14px; color:var(--ink-soft); }
.sub-tab span{ font-size:12px; font-weight:700; background:var(--canvas-2); color:var(--ink-soft);
  padding:1px 9px; border-radius:20px; }
.sub-tab.on{ background:var(--piment-soft); border-color:rgba(16,183,104,.4); color:var(--piment-deep); }
.sub-tab.on span{ background:var(--piment); color:#04140C; }
.user-list{ display:flex; flex-direction:column; gap:8px; max-width:640px; }
.user-row{ display:flex; align-items:center; gap:14px; padding:12px 14px; background:var(--panel);
  border:1px solid var(--line); border-radius:16px; }
.user-main{ display:flex; align-items:center; gap:14px; flex:1; min-width:0; color:inherit; text-decoration:none; }
.user-av{ width:48px; height:48px; border-radius:50%; flex:none; overflow:hidden; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:700; font-size:18px; color:#04140C;
  background:linear-gradient(150deg,var(--green-bright),var(--piment)); }
.user-av img{ width:100%; height:100%; object-fit:cover; }
.user-meta{ min-width:0; }
.user-meta b{ display:block; font-weight:700; font-size:15px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-meta span{ font-size:12.5px; color:var(--ink-faint); }
