/* GF Shadowing — V3 (retours de Gaspard du 04/12/2026, soir) : épuré, ultra lisible, même famille que le site d'appels.
   Noir #111, blanc, rouge #AC302B par touches, Inter. Beaucoup d'air, peu d'éléments à l'écran. */
:root {
  --red: #AC302B; --red-dark: #8F2723; --red-soft: #F6E3E2; --red-bg: #FFFAF9; --red-line: #EAD3D1;
  --ink: #111111; --grey: #6B6B6B; --grey2: #4A4A4A; --line: #DCDCDC; --line2: #ECECEC; --panel: #F5F5F5; --soft: #F7F7F7;
  --ok: #1E7B3A; --ok-soft: #E6F2EA;
  --radius: 18px;
  --top-h: 64px;
  --bg: #FFFFFF; --surface: #FFFFFF; --on-ink: #FFFFFF; --red-t: #AC302B; --top-bg: rgba(255,255,255,.97);
  --dis: #BDBDBD; --sk1: #F2F2F2; --sk2: #E9E9E9; --shadow: 0 10px 34px rgba(0,0,0,.16);
  color-scheme: light;
}
/* V7 (retour du 05/12) : thème sombre. Mêmes formes, couleurs inversées ; le rouge reste la seule couleur vive. */
:root[data-theme="dark"] {
  --bg: #0F0F0F; --surface: #1A1A1A; --ink: #F2F2F2; --on-ink: #111111; --grey: #A0A0A0; --grey2: #C8C8C8;
  --line: #3A3A3A; --line2: #262626; --panel: #222222; --soft: #1B1B1B;
  --red-t: #E8726C; --red-dark: #F0A29D; --red-soft: #3A1E1D; --red-bg: #231514; --red-line: #4D2B29;
  --ok: #5CC985; --ok-soft: #13301E; --top-bg: rgba(15,15,15,.94);
  --dis: #4A4A4A; --sk1: #1E1E1E; --sk2: #2A2A2A; --shadow: 0 10px 34px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); transition: background .2s, color .2s; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.ic { flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; margin: 26px 0 8px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.01em; }
.muted { color: var(--grey); }
.small { font-size: 14px; }
.center { text-align: center; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mise en page */
.page { max-width: 1240px; margin: 0 auto; padding: 0 28px 80px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 64px; }
section { margin-top: 44px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* En-tête commun (Vidéos · Historique · Appels) */
.top { position: sticky; top: 0; z-index: 30; background: var(--top-bg); border-bottom: 1px solid var(--line2); backdrop-filter: blur(8px); }
.top-in { max-width: 1240px; height: var(--top-h); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; flex: none; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.logo.big { width: 58px; height: 58px; border-radius: 15px; font-size: 22px; }
.nav { display: flex; gap: 4px; }
.nav-i { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--grey2); transition: background .15s, color .15s; }
.nav-i:hover { background: var(--soft); color: var(--ink); }
.nav-i.on { background: var(--ink); color: var(--on-ink); }
.nav-i .ic { width: 20px; height: 20px; }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 280px; height: 42px; border: 1.5px solid transparent; border-radius: 999px; padding: 0 16px 0 42px; font-size: 15px; background: var(--soft); transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.search-btn { position: absolute; left: 4px; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--grey); cursor: pointer; pointer-events: none; }
.avbtn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.tabbar { display: none; }

/* Boutons, champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 13px; border: 0; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--dis); cursor: default; }
.btn.block { width: 100%; }
.btn.sec { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.btn.sec:hover { background: var(--panel); }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--panel); }
.btn.sm { min-height: 42px; font-size: 15px; padding: 0 16px; border-radius: 11px; }
.link { background: none; border: 0; padding: 0; color: var(--grey2); text-decoration: underline; cursor: pointer; font-size: 15px; }
.field { display: block; width: 100%; min-height: 54px; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; font-size: 17px; background: var(--bg); }
.field:focus { border-color: var(--ink); outline: none; }
textarea.field { min-height: 92px; resize: vertical; line-height: 1.5; }
label.lbl { display: block; font-weight: 600; margin: 0 0 8px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.panel { background: var(--panel); border-radius: var(--radius); padding: 18px; }
.alert { background: var(--red-soft); color: var(--red-dark); border-radius: 13px; padding: 13px 15px; font-size: 15px; }
.okbox { background: var(--ok-soft); color: var(--ok); border-radius: 13px; padding: 13px 15px; font-weight: 600; }
.empty { background: var(--soft); border-radius: 16px; padding: 28px 22px; text-align: center; color: var(--grey2); }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--red-t); margin-bottom: 6px; }

.bubble { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.bubble img, .bubble .av { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; }
.bubble p { margin: 0; background: var(--panel); border-radius: 4px 16px 16px 16px; padding: 12px 15px; font-size: 16px; }
.av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #222; overflow: hidden; }
.av.lg { width: 48px; height: 48px; font-size: 17px; }

/* Vignettes */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1a1a1a; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.thumb .seen { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.95); color: var(--ok); font-size: 12.5px; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 7px; }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.4); }
.thumb .bar i { display: block; height: 100%; background: var(--red); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.meta span + span::before { content: '·'; margin-right: 6px; }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--panel); color: var(--grey2); }
.st.dark { background: var(--ink); color: var(--on-ink); }
.st-t { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--grey2); }
.st-t.ok { color: var(--ok); }

/* Accueil : une seule mise en avant */

/* Filtre discret : affiché seulement si on le demande */
.filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--grey2); }
.filter-btn:hover, .filter-btn.on { border-color: var(--ink); color: var(--ink); }
.filter-btn .count { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; padding: 0 6px; }
.filter-panel { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 14px 16px; margin: -4px 0 20px; border-radius: 16px; background: var(--soft); animation: gfpop .2s ease-out; }
.fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flabel { font-size: 13px; font-weight: 700; color: var(--grey); margin-right: 4px; }
.fchip { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.fchip:hover { border-color: var(--ink); }
.fchip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Grille de vidéos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 34px 22px; }
.tile { text-decoration: none; display: grid; gap: 12px; align-content: start; color: inherit; }
.tile:hover .thumb img { transform: scale(1.03); }
.tile-body { display: grid; gap: 4px; }
.tile-body h3 { margin: 0; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Communauté */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.feeditem { display: flex; gap: 12px; text-decoration: none; padding: 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--bg); transition: border-color .15s; }
.feeditem:hover { border-color: var(--line); }
.feeditem p { margin: 4px 0 6px; font-size: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }

/* Historique */
h2.day { font-size: 17px; margin-bottom: 12px; color: var(--grey2); }
.hlist { display: grid; gap: 4px; }
.hrow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 16px; text-decoration: none; color: inherit; transition: background .15s; }
.hrow:hover { background: var(--soft); }
.hrow .thumb { border-radius: 11px; }
.hrow-body h3 { margin: 0 0 4px; font-size: 17px; }

/* Page vidéo */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; padding-top: 22px; }
.watch-main { min-width: 0; }
.player { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.player video, .player iframe { width: 100%; height: 100%; display: block; background: #000; border: 0; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); color: #fff; display: grid; place-items: center; padding: 20px; text-align: center; }
.overlay .box { max-width: 420px; display: grid; gap: 14px; justify-items: center; }
.overlay .thumb { width: 220px; }
.toast { margin-top: 10px; font-size: 15px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--grey2); }
.vtitle { font-size: 25px; margin: 18px 0 6px; }
.vmeta { font-size: 15px; }
.descr { margin-top: 14px; background: var(--soft); border-radius: 14px; padding: 13px 16px; font-size: 15.5px; color: var(--grey2); }

/* Les 3 étapes, en une rangée claire */
.nsteps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 18px; }
.ns { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--bg); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ns:hover { border-color: var(--ink); }
.ns-n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: var(--grey2); }
.ns-t { display: grid; min-width: 0; line-height: 1.3; }
.ns-t b { font-size: 15.5px; }
.ns-t small { font-size: 13.5px; color: var(--grey); }
.ns.done .ns-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ns.cur { border-color: var(--red-t); background: var(--red-bg); }
.ns.cur .ns-n { border-color: var(--red-t); color: var(--red-t); }

.upnext { display: grid; gap: 14px; }
.upnext h3 { margin: 0 0 2px; font-size: 17px; }
.mini { display: grid; grid-template-columns: 168px 1fr; gap: 12px; text-decoration: none; align-items: start; color: inherit; }
.mini .thumb { border-radius: 10px; }
.mini .thumb .seen { display: none; }
.mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-body b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini.big { grid-template-columns: 240px 1fr; }
.side-mobile { display: none; }

.sheet { margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 20px; padding: 22px; background: var(--bg); animation: gfpop .25s ease-out; scroll-margin-top: 80px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; flex: 1; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.flash { background: var(--red-bg); border-radius: 12px; transition: background 2s; }

/* Test des mots */
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.how b { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; font-size: 15px; }
.qprog { display: flex; gap: 6px; margin-bottom: 8px; }
.qprog i { flex: 1; height: 8px; border-radius: 99px; background: var(--line2); }
.qprog i.on { background: var(--ink); }
.qprog i.ok { background: var(--ok); }
.qprog i.ko { background: var(--red); }
.qcard { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 6px; }
.qcard.noimg { grid-template-columns: 1fr; }
.qimg { width: 100%; object-fit: cover; border-radius: 14px; background: var(--panel); aspect-ratio: 4 / 3; }
.qtext { display: grid; gap: 8px; }
.qprompt { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.letters { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; }
.letters .w { display: flex; gap: 4px; }
.letters .c { width: 24px; height: 36px; border-bottom: 4px solid var(--ink); display: grid; place-items: end center; font-weight: 700; font-size: 20px; padding-bottom: 2px; }
.answer { font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--ok); margin: 4px 0 0; animation: gfpop .25s ease-out; }
.repeat { font-size: 15px; color: var(--grey2); background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.keyhint { margin: 12px 0 0; }
.score { display: flex; gap: 18px; align-items: center; }
.score .big { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.score .big small { font-size: 26px; color: var(--grey); font-weight: 700; }
.score h2 { margin: 0; }
.recap { display: grid; gap: 10px; margin-top: 18px; }
.rc { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; }
.rc img, .rc .rc-ph { width: 76px; height: 56px; object-fit: cover; border-radius: 9px; background: #F0F0F0; flex: none; }
.rc-body { flex: 1; display: grid; }
.rc.ok .rc-body span { color: var(--ok); font-weight: 600; }
.rc.ko { border-color: #E3C1BF; }
.rc.ko .rc-body span { color: var(--red-dark); font-weight: 600; }

/* Avis */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 18px; cursor: pointer; }
.scale button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.scale-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); margin-top: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { min-height: 46px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; padding: 4px 6px; line-height: 1.2; }
.seg button.on.p { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg button.on.m { background: var(--grey2); color: var(--on-ink); border-color: var(--grey2); }
.seg button.on.n { background: var(--red); color: #fff; border-color: var(--red-t); }
.el { padding: 14px 0; border-top: 1px solid var(--line2); }
.el:first-child { border-top: 0; }
.el .name { font-weight: 600; margin-bottom: 8px; }
.q { margin: 22px 0 0; }

/* Commentaires */
.comments { margin-top: 40px; }
.comments h2 { margin: 0; }
.composer { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.composer .grow { flex: 1; min-width: 0; }
.composer textarea { min-height: 64px; }
.cbox { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line2); }
.cbox.reply { border-top: 0; padding: 10px 0 0; }
.cmain { flex: 1; min-width: 0; }
.chead { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.chead b, .cname { font-weight: 700; text-decoration: none; }
.cname:hover { text-decoration: underline; }
.cbody { margin: 3px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cact { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cact button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--grey2); font-weight: 600; font-size: 14px; }
.cact button.on { color: var(--red-t); }
.tchip { display: inline-block; background: var(--panel); border: 0; border-radius: 7px; padding: 1px 8px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--red-dark); margin-right: 6px; }
.pinned { font-size: 13px; font-weight: 700; color: var(--red-t); margin-bottom: 2px; }
.replies { margin-left: 4px; padding-left: 14px; border-left: 2px solid var(--line2); }
.tabs { display: flex; gap: 8px; }
.tab { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--grey2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red-t); }

/* Mon compte */
.menu { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; justify-content: flex-end; }
.menu .in { width: min(380px, 100%); background: var(--surface); height: 100%; padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: auto; animation: gfslide .2s ease-out; }
.me-card { display: flex; gap: 12px; align-items: center; }
.me-card > div { display: grid; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.langs button { min-height: 46px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; cursor: pointer; }
.langs button.on { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

.login { max-width: 460px; margin: 40px auto 0; }
.skel { background: linear-gradient(90deg, var(--sk1), var(--sk2), var(--sk1)); background-size: 200% 100%; animation: gfsk 1.2s infinite; border-radius: 12px; }

@keyframes gfpop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gfslide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gfsk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 1100px) {
  .watch { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
  .mini { grid-template-columns: 136px 1fr; }
  .search input { width: 240px; }
}
@media (max-width: 900px) {
  .watch { grid-template-columns: 1fr; }
  .watch-side { display: none; }
  .side-mobile { display: block; margin-top: 32px; }
  .nav-i span { display: none; }
  .nav-i { padding: 0 11px; }
}
/* Téléphone : barre d'onglets en bas (comme les applications), en-tête allégé */
@media (max-width: 700px) {
  :root { --top-h: 56px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .page { padding: 0 16px 40px; }
  .top-in { padding: 0 16px; gap: 10px; }
  .nav { display: none; }
  .avbtn { display: none; }
  .search input { width: 0; padding: 0; border: 0; background: transparent; opacity: 0; transition: width .2s; }
  .search-btn { position: static; pointer-events: auto; width: 42px; height: 42px; color: var(--ink); }
  .search.open { position: absolute; left: 12px; right: 12px; }
  .search.open input { width: 100%; padding: 0 16px 0 42px; opacity: 1; background: var(--soft); border: 1.5px solid var(--ink); }
  .search.open .search-btn { position: absolute; left: 4px; pointer-events: none; color: var(--grey); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line2); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar .nav-i { flex-direction: column; justify-content: center; gap: 2px; height: 54px; padding: 0; font-size: 12.5px; border-radius: 12px; }
  .tabbar .nav-i span { display: block; }
  .tabbar .nav-i.on { background: none; color: var(--red-t); }
  .tabbar .nav-i .ic { width: 24px; height: 24px; }
  .tabbar button.nav-i { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 12.5px; }
  .tabbar .av { width: 26px; height: 26px; font-size: 12px; }
  h1 { font-size: 25px; }
  section { margin-top: 36px; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .feed { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
  .hrow-body h3 { font-size: 15.5px; }
  .watch { padding-top: 0; }
  .watch .player { border-radius: 0; margin: 0 -16px; }
  .vtitle { font-size: 21px; }
  .nsteps { grid-auto-flow: row; }
  .sheet { padding: 16px; margin-left: -4px; margin-right: -4px; }
  .qcard { grid-template-columns: 1fr; }
  .qprompt, .answer { font-size: 22px; }
  .mini.big { grid-template-columns: 1fr; }
  .keyhint { display: none; }
  .m-hide { display: none; }
  .seg button { font-size: 14px; }
  .overlay .thumb { width: 160px; }
}

/* V4 (04/12, nuit) : titre de page, première section, écran de langue (comme le site d'appels), historique simple. */
.h-page { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
section.first, .h-page.first { margin-top: 28px; }
h1.h-page.first { margin-bottom: 8px; }
section.hday { margin-top: 26px; }
.langs-title { font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--grey2); }
.langcards { display: grid; gap: 12px; margin-top: 22px; }
.langcard { min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); font: 700 20px/1 Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.langcard:hover, .langcard:focus-visible { border-color: var(--ink); background: var(--soft); }
@media (max-width: 700px) {
  section.first, .h-page.first { margin-top: 18px; }
  .h-page { font-size: 23px; }
}

/* ---------- V5 (04/12, nuit) : page vidéo épurée, fenêtres de fin, test à choix ---------- */
.watch.one { grid-template-columns: minmax(0, 980px); justify-content: center; }
.vtitle .st { vertical-align: middle; font-size: 13px; }
.vactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vactions .btn { min-height: 48px; font-size: 16px; padding: 0 18px; }
.btn .sub { font-weight: 500; opacity: .85; font-size: .88em; }
.btn .sub::before { content: '·'; margin: 0 7px 0 1px; }
.descr { padding: 10px 16px; }
.descr p { margin: 4px 0 6px; white-space: pre-wrap; color: var(--ink); }
.descr .link { font-weight: 600; color: var(--ink); }
.comments { margin-top: 26px; }

.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .62); display: flex; align-items: center; justify-content: center; padding: 24px; animation: gffade .2s ease-out; }
.modal { position: relative; background: var(--surface); border-radius: 22px; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 30px 30px 26px; animation: gfrise .28s ease-out; outline: none; }
.modal.small { width: min(460px, 100%); }
.modal > .x { position: absolute; top: 14px; right: 14px; }
.modal h2 { font-size: 24px; line-height: 1.25; margin: 0 44px 0 0; }
@keyframes gffade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.invite { text-align: center; display: grid; gap: 14px; padding-top: 6px; }
.invite h2 { margin: 0 30px; font-size: 27px; }
.invite p { margin: 0 0 6px; font-size: 18px; color: var(--grey2); }
.btn.big { min-height: 60px; font-size: 19px; }
.invite .link { justify-self: center; }

.qhead { display: grid; gap: 8px; margin: 0 48px 18px 0; }
.qbar { height: 6px; background: var(--line2); border-radius: 99px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s; }
.quiz .qimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 16px; background: var(--soft); }
.quiz .qprompt { font-size: 21px; margin: 0 0 16px; line-height: 1.35; }
.choices { display: grid; gap: 9px; }
.choice { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover:not([disabled]) { border-color: var(--ink); }
.choice .key { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--grey2); }
.choice[disabled] { cursor: default; }
.choice.good { border-color: var(--ok); background: var(--ok-soft); }
.choice.good .key { background: var(--ok); color: #fff; }
.choice.bad { border-color: var(--red-t); background: var(--red-soft); }
.choice.bad .key { background: var(--red); color: #fff; }
.choice.dim { opacity: .55; }
.qfb { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); display: grid; gap: 6px; justify-items: start; animation: gfrise .25s ease-out; }
.qfb.ok > b { color: var(--ok); }
.qfb.ko > b { color: var(--red-t); }
.qfb p { margin: 0; }
.qfb .say { font-size: 16.5px; }
.quiz .answer { font-size: 22px; font-weight: 700; margin: 6px 0 0; }
.quiz .score { margin-bottom: 8px; }
.missed { display: grid; gap: 8px; }
.mrow { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
.mrow b { display: block; margin-top: 2px; }
.qbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.quiz h3.lbl, .fb h3.lbl, .fb label.lbl { font-size: 17px; margin: 24px 0 8px; }
.fb .el:first-of-type { border-top: 0; }
.bests { display: flex; flex-wrap: wrap; gap: 8px; }
.bests .fchip { text-align: left; line-height: 1.3; }
.fb textarea { min-height: 84px; }
.thanks { text-align: center; padding: 30px 0 18px; color: var(--ok); }
.thanks h2 { margin: 10px 0 0; color: var(--ink); }

@media (max-width: 700px) {
  .vactions .btn { flex: 1 1 auto; }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal, .modal.small { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: 22px 18px 28px; }
  .modal.small { display: flex; flex-direction: column; justify-content: center; }
  .invite h2 { font-size: 24px; }
  .quiz .qprompt { font-size: 19px; }
  .choice { font-size: 16px; }
  .quiz .qimg { margin: 0 -18px 16px; width: calc(100% + 36px); border-radius: 0; }
  .qhead { margin-right: 52px; }
}

/* ---------- V6 (04/12) : avis sur 5 niveaux, « pourquoi », longueur du test ---------- */
.seg5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg5 button, .seg3 button { min-height: 46px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2; padding: 4px 6px; cursor: pointer; }
.seg5 button:hover, .seg3 button:hover { border-color: var(--ink); }
.seg5 button.on.p2, .seg5 button.on.p1 { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg5 button.on.m { background: var(--grey2); color: var(--on-ink); border-color: var(--grey2); }
.seg5 button.on.n1, .seg5 button.on.n2 { background: var(--red); color: #fff; border-color: var(--red-t); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg3 button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.field.why { margin-top: 8px; min-height: 46px; animation: gfrise .2s ease-out; }
.qlen { display: grid; gap: 8px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.ok-t { color: var(--ok); font-weight: 600; }
.ask-fb { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--red-t); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .seg5 { gap: 4px; }
  .seg5 button { font-size: 12.5px; padding: 3px 2px; min-height: 50px; }
}
.mrow .btn { white-space: nowrap; }

/* ---------- V7 (05/12) : niveaux CECR, boutons de la page vidéo, mini-lecteur, notifications, compte, thème sombre ---------- */
:root[data-theme="dark"] .thumb .seen { background: rgba(0,0,0,.78); }
:root[data-theme="dark"] .choice.good .key, :root[data-theme="dark"] .ns.done .ns-n { color: #0F0F0F; }
:root[data-theme="dark"] .thumb { background: #222; }
:root[data-theme="dark"] .av:not(img) { color: #222; }
:root[data-theme="dark"] .modal-bg, :root[data-theme="dark"] .menu, :root[data-theme="dark"] .notif-bg { background: rgba(0,0,0,.66); }

/* Niveau : petite pastille « B1–B2 » */
.meta .lvl, .vlvl .lvl { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; border: 1.5px solid var(--line); color: var(--grey2); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.meta .lvl + span::before { content: none; }
.meta .lvl + span { margin-left: 2px; }
.vmeta { margin-top: 2px; }

/* Boutons de la page vidéo : texte principal + petite ligne en dessous (plus de « · » bizarre) */
.btn.two { flex-direction: column; gap: 1px; line-height: 1.2; padding: 7px 20px; }
.btn.two > span { display: inline-flex; align-items: center; gap: 6px; }
.btn.two > small { font-size: 12.5px; font-weight: 500; opacity: .86; }
.vactions .btn.two { min-height: 54px; }
.btn.ink { background: var(--ink); color: var(--on-ink); }
.btn.ink:hover { background: var(--grey2); }
.btn.iconbtn { width: 54px; min-height: 54px; padding: 0; border-color: var(--line); color: var(--grey2); }
.btn.iconbtn:hover { color: var(--ink); border-color: var(--ink); }
.tip { position: relative; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 6px 10px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 5; }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Historique vide */
.empty-h { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 54px 20px; margin-top: 18px; border-radius: 20px; background: var(--soft); }
.empty-h .empty-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--grey2); margin-bottom: 6px; }
.empty-h h2 { font-size: 20px; }
.empty-h p { margin: 0 0 10px; }

/* Mini-lecteur « Vidéo en cours » */
.mini-player { position: fixed; z-index: 45; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow); overflow: hidden; animation: gfrise .28s ease-out; }
.mp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.mp-media { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #000; }
.mp-media img, .mp-slot, .mp-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-slot video { pointer-events: none; }
.mp-text { min-width: 0; display: grid; gap: 1px; }
.mp-text b { font-size: 15px; line-height: 1.3; }
.mp-text span { font-size: 13px; color: var(--grey); }
.mp-btn, .mp-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.mp-btn { background: var(--ink); color: var(--on-ink); width: 42px; height: 42px; margin-right: 2px; }
.mp-btn:hover { opacity: .88; }
.mp-x { color: var(--grey); }
.mp-x:hover { background: var(--soft); color: var(--ink); }
.mp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line2); }
.mp-bar i { display: block; height: 100%; background: var(--red); transition: width .4s linear; }
body.has-mini .page, body.has-mini .wrap { padding-bottom: 130px; }

/* Cloche des notifications */
.bell { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--grey2); }
.bell:hover, .bell.on { background: var(--soft); color: var(--ink); }
.bell .dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.notif-bg { position: fixed; inset: 0; z-index: 55; background: transparent; }
.notif { position: absolute; top: calc(var(--top-h) + 6px); right: max(16px, calc((100vw - 1240px) / 2 + 20px)); width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - var(--top-h) - 30px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); animation: gfrise .2s ease-out; }
.notif-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 8px 18px; background: var(--surface); }
.notif-head h3 { margin: 0; font-size: 18px; }
.notif-empty { padding: 6px 18px 20px; margin: 0; font-size: 15px; }
.notif-list { display: grid; padding: 0 8px 8px; }
.notif-i { display: flex; gap: 12px; padding: 10px; border-radius: 13px; text-decoration: none; color: inherit; position: relative; }
.notif-i:hover { background: var(--soft); }
.notif-i.new { background: var(--red-bg); }
.notif-i.new::after { content: ''; position: absolute; right: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.notif-i p { margin: 2px 0 4px; font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 10px; }

/* Mon compte : réglages en lignes, langue repliée */
.me-card > div > span { margin-top: 1px; }
.setlist { display: grid; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 16px; background: none; border: 0; border-top: 1px solid var(--line2); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.set-row:first-child { border-top: 0; }
button.set-row:hover { background: var(--soft); }
.set-val { display: inline-flex; align-items: center; gap: 4px; color: var(--grey); font-weight: 500; }
.chev { display: inline-flex; transition: transform .2s; }
.chev.open { transform: rotate(90deg); }
.set-opts { display: grid; padding: 0 8px 8px; animation: gfpop .18s ease-out; }
.set-opt { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; border: 0; border-radius: 11px; background: none; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; }
.set-opt:hover { background: var(--soft); }
.set-opt.on { font-weight: 700; color: var(--red-t); }
.set-txt { display: grid; gap: 2px; }
.set-txt small { font-size: 13px; color: var(--grey); font-weight: 500; }
.seg2 { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: var(--panel); gap: 2px; }
.seg2 button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--grey2); cursor: pointer; }
.seg2 button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(20px); }

@media (max-width: 700px) {
  .mini-player { bottom: calc(74px + env(safe-area-inset-bottom)); width: calc(100% - 16px); border-radius: 16px; padding: 6px; }
  .mp-media { width: 88px; border-radius: 10px; }
  .mp-text b { font-size: 14.5px; }
  .mp-text span { font-size: 12.5px; }
  body.has-mini .page, body.has-mini .wrap { padding-bottom: 110px; }
  .notif { top: calc(var(--top-h) + 4px); right: 8px; left: 8px; width: auto; }
  .vactions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .vactions .btn.two { padding: 7px 10px; }
  .vactions .btn.two:only-of-type { grid-column: span 2; }
  .tip::after { display: none; }
}
.menu .in > * { flex-shrink: 0; }

/* ---------- V8 (05/12, après-midi) : avis à 3 choix, favoris, téléchargements, Historique / Favoris ---------- */
.seg5.three { grid-template-columns: repeat(3, 1fr); }
.seg5.three button { font-size: 15px; min-height: 48px; }
.seg5 button.on.p1 { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.fb .missing { border-radius: 14px; box-shadow: 0 0 0 2px var(--red); padding-left: 12px; padding-right: 12px; margin-left: -12px; margin-right: -12px; background: var(--red-bg); }
.fb .missing .name, .fb .missing h3.lbl { color: var(--red-t); }
.fb .blk { padding-bottom: 12px; }
.fb .blk h3.lbl { padding-top: 12px; }
.fb .blk.missing h3.lbl { margin-top: 12px; }
.btn.fav.on { color: #C98A00; border-color: #E5C26A; }
:root[data-theme="dark"] .btn.fav.on { color: #F2C14E; border-color: #7A6326; }
.btn.iconbtn.on { border-color: var(--ink); color: var(--ink); }
.thumb .favb { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.62); color: #F2C14E; }
.dl { position: relative; }
.dlmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; animation: gfrise .18s ease-out; }
.dlhead { font-size: 13px; font-weight: 700; color: var(--grey); padding: 4px 10px 6px; }
.dlitem { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.dlitem:hover, .dlitem:focus-visible { background: var(--soft); }
.dlic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--panel); color: var(--grey2); }
.dltx { display: grid; gap: 1px; min-width: 0; }
.dltx b { font-size: 15.5px; }
.dltx small { font-size: 12.5px; color: var(--grey); line-height: 1.35; }
.libtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); margin-top: 26px; }
.libtab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15.5px; color: var(--grey2); }
.libtab.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.libtab .ic { color: #C98A00; }
@media (max-width: 700px) {
  .vactions { grid-template-columns: 1fr 1fr auto auto; gap: 8px; }
  .vactions .btn.iconbtn { width: 48px; }
  .vactions .btn.two:only-of-type { grid-column: span 2; }
  .dlmenu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(74px + env(safe-area-inset-bottom)); width: auto; padding: 10px; }
  .dlitem { padding: 12px 10px; }
  .libtabs { margin-top: 16px; display: flex; }
  .libtab { flex: 1; justify-content: center; }
  .seg5.three button { font-size: 14px; }
}

.fb .missing + .missing { margin-top: 10px; }

/* ---------- V9 (05/12, soir) : page vidéo pensée aussi pour l'ordinateur ---------- */
/* Titre, niveau, deux grands boutons (Me tester, Donner mon avis) ; Favoris et Télécharger à part, plus discrets. */
.vinfo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "lvl lvl" "act icons"; align-items: center; column-gap: 16px; }
.vinfo .vtitle { grid-area: title; }
.vlvl { grid-area: lvl; min-height: 0; }
.vlvl:empty { display: none; }
.vinfo .vactions { grid-area: act; display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 14px; }
.vinfo .vactions .btn.two { min-height: 54px; min-width: 200px; padding: 7px 22px; flex: 0 1 auto; }
.vicons { grid-area: icons; display: flex; gap: 10px; margin-top: 14px; justify-self: end; }
.vicon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--soft); color: var(--ink); font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .15s, border-color .15s; }
.vicon:hover { background: var(--panel); }
.vicon:focus-visible { outline: 3px solid var(--red-t); outline-offset: 2px; }
.vicon.on { border-color: var(--ink); }
.vicon.fav.on { color: #C98A00; border-color: #E5C26A; }
:root[data-theme="dark"] .vicon.fav.on { color: #F2C14E; border-color: #7A6326; }
.vicon.tip::after { display: none; }
.vicon .mlbl { display: inline; }
.dl { position: relative; display: flex; }

/* Grand écran : vidéo à gauche, commentaires à droite dans un panneau qui reste visible. */
@media (min-width: 1180px) {
  .page, .top-in { max-width: 1440px; }
  .watch.wide { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
  .watch-side { display: block; position: sticky; top: calc(var(--top-h) + 22px); align-self: start; max-height: calc(100vh - var(--top-h) - 44px); overflow-y: auto; overscroll-behavior: contain; background: var(--soft); border: 1px solid var(--line2); border-radius: 18px; padding: 4px 18px 18px; }
  .watch-side .comments { margin-top: 14px; }
  .watch-side .comments h2 { font-size: 19px; }
  body.has-mini .watch-side { max-height: calc(100vh - var(--top-h) - 150px); }
}
@media (min-width: 1600px) { .watch.wide { grid-template-columns: minmax(0, 1fr) 440px; } }

/* Entre tablette et petit ordinateur : boutons sur une ligne s'il y a la place, sinon à la ligne. */
@media (max-width: 1000px) and (min-width: 701px) {
  .vinfo { grid-template-areas: "title title" "lvl lvl" "act act" "icons icons"; }
  .vicons { justify-self: start; }
}

/* Téléphone : niveau à gauche, étoile et téléchargement en petites icônes rondes à droite ; deux grands boutons dessous. */
@media (max-width: 700px) {
  .vinfo { grid-template-areas: "title title" "lvl icons" "act act"; row-gap: 0; }
  .vlvl:empty { display: block; }
  .vicons { margin-top: 0; gap: 8px; }
  .vicon { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: transparent; }
  .vicon .mlbl { display: none; }
  .vinfo .vactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .vinfo .vactions .btn.two { min-width: 0; padding: 7px 10px; }
  .vinfo .vactions .btn.two:only-child { grid-column: span 2; }
  .vinfo .vtitle { margin-bottom: 4px; }
}
.vlvl .lvl { height: 24px; font-size: 13px; }
/* V9 : invitation aux notifications dans la cloche */
.push-invite { margin: 4px 14px 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line2); display: grid; gap: 10px; }
.push-invite b { font-size: 15px; }
.push-invite p { margin: 2px 0 0; font-size: 13.5px; color: var(--grey2); line-height: 1.4; }
.push-invite .row { gap: 14px; align-items: center; }
.set-txt .link.small { font-size: 12.5px; margin-left: 4px; font-weight: 700; }
