/* Epic Otaku — styles communs (d'après la maquette v1) */
:root{
  --bg:#FAFAF9;--surface:#FFFFFF;--text:#18181B;--muted:#57534E;--body:#44403C;
  --line:#E7E5E4;--subtle:#F5F5F4;--stroke:#111111;--link:#18181B;--link-strong:#52525B;
  --tint:#FFF8D6;--ink:#18181B;--on-ink:#FFFFFF;
  --c-manga:#D21F17;--c-webtoon:#2E8B27;--c-anime:#B88A00;--c-live:#0072B0;--c-news:#0072B0;
  --font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--title:Rubik,Inter,system-ui,sans-serif;
}
html[data-theme="dark"]{
  --bg:#121214;--surface:#1C1C20;--text:#F4F4F5;--muted:#A1A1AA;--body:#D4D4D8;
  --line:#34343A;--subtle:#26262B;--stroke:#52525B;--link:#FFFFFF;--link-strong:#D4D4D8;
  --tint:#3A3210;--ink:#F4F4F5;--on-ink:#121214;
  --c-manga:#FF4D42;--c-webtoon:#4CC941;--c-anime:#FFD000;--c-live:#2EA8F0;--c-news:#2EA8F0;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--link-strong);text-decoration:underline}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:3px solid #0089D0;outline-offset:2px}
.sr{position:absolute;left:-9999px}
h1,h2,h3{font-family:var(--title)}

/* En-tête */
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.head-in{padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;max-width:1240px;margin:0 auto}
.logo img{height:54px;width:auto;display:block}
.nav{display:flex;flex-wrap:wrap;gap:4px 20px;font-weight:500;font-size:15px}
.nav a{padding-bottom:3px}
.nav a[aria-current="page"]{font-weight:700;box-shadow:inset 0 -4px 0 currentColor}
.head-tools{flex:1 1 220px;display:flex;justify-content:flex-end;align-items:center;gap:14px}
.searchbox{flex:1 1 200px;max-width:320px;display:flex;align-items:center;gap:8px;background:var(--subtle);border:1px solid var(--line);border-radius:10px;padding:0 12px;height:42px}
.searchbox input{border:0;background:transparent;outline:none;font:inherit;font-size:14px;width:100%;color:var(--text)}
.icon-btn{width:44px;height:44px;flex:0 0 44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center}
.bar4{display:flex;height:6px}.bar4 i{flex:1}

main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:28px 24px 48px}
.site-footer{border-top:1px solid var(--line);background:var(--surface)}
.site-footer .wrap{padding:20px 24px;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--muted)}

/* Éléments communs */
.eyebrow{margin:0 0 4px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:1px}
.h1{margin:0;font-size:34px;letter-spacing:-.5px;display:inline;box-shadow:inset 0 -.3em 0 color-mix(in srgb,var(--text) 28%,transparent)}
.card{background:var(--surface);border:2px solid var(--stroke);border-radius:14px;box-shadow:4px 4px 0 var(--stroke);padding:20px}
.card h2{margin:0 0 14px;font-size:19px}
.card.tint{background:var(--tint)}
.seg{display:flex;flex-wrap:wrap;background:var(--subtle);border:1px solid var(--line);border-radius:10px;padding:4px}
.seg button{border:0;border-radius:7px;padding:0 16px;height:36px;font-weight:600;font-size:14px;background:transparent;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.seg .k-manga{color:var(--c-manga)!important}.seg .k-webtoon{color:var(--c-webtoon)!important}.seg .k-anime{color:var(--c-anime)!important}.seg .k-live{color:var(--c-live)!important}
.btn{display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:10px;border:2px solid var(--stroke);box-shadow:3px 3px 0 var(--stroke);background:#FFD000;color:#111;font-weight:700;font-size:14px}
.btn:hover{color:#111;text-decoration:none}
.btn.ghost{background:var(--surface);color:var(--text);box-shadow:none;border:1px solid var(--line)}
.note{font-size:13px;color:var(--muted)}
.empty{padding:28px;border:2px dashed var(--line);border-radius:14px;text-align:center;color:var(--muted)}
.badge{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.5px;border:2px solid #111;color:#111}
.b-manga{background:#E3241B;color:#fff}.b-webtoon{background:#3FAE35}.b-anime{background:#FFD000}.b-live_action{background:#0089D0;color:#fff}

/* Planning */
.layout{display:flex;flex-wrap:wrap;gap:32px}
.layout>section{flex:999 1 640px;min-width:0}
.layout>aside{flex:1 1 280px;display:flex;flex-direction:column;gap:24px}
.plan-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.days{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.days button{min-width:92px;min-height:64px;padding:8px 12px;border-radius:12px;text-align:left;line-height:1.25;background:var(--surface);color:var(--text);border:1px solid var(--line)}
.days button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.days b{display:block;font-size:18px}.days small{display:block;font-size:11px;font-weight:500}.days span{display:block;font-size:12px;font-weight:500}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 18px}
.tile{display:flex;flex-direction:column;gap:8px;color:var(--text)}
.tile:hover{text-decoration:none}
.tile:hover .cover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--stroke)}
.cover{aspect-ratio:2/3;border-radius:10px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;position:relative;overflow:hidden;background-size:cover;background-position:center;transition:transform .12s,box-shadow .12s;border:2px solid transparent}
.cover.dark{color:#111}
.cover .ct{font-family:var(--title);font-weight:700;font-size:17px;line-height:1.15}
.cover .cn{font-size:30px;font-weight:700;opacity:.9}
.cover.img .ct,.cover.img .cn{display:none}
.cover .kind{position:absolute;bottom:12px;right:10px;height:22px;font-size:10px;padding:0 8px}
.tile .tt{font-weight:600;font-size:14px;line-height:1.3}
.tile .tm{font-size:13px;color:var(--muted)}
.more-row{margin-top:22px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 16px}
.top{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.top li{display:flex;align-items:center;gap:12px}
.top .r{width:28px;height:28px;border-radius:8px;background:var(--tint);color:var(--link-strong);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.top a{flex:1;font-weight:500;font-size:14px}
.top .s{font-size:13px;color:var(--muted)}

.profil-btn{display:flex;align-items:center;height:44px;padding:0 18px;border-radius:10px;background:var(--ink);color:var(--on-ink)!important;font-weight:600;font-size:14px;white-space:nowrap}
.profil-btn:hover{text-decoration:none;opacity:.9}
.notif{position:absolute;right:0;top:54px;z-index:30;width:min(340px,calc(100vw - 32px));background:var(--surface);border:2px solid var(--stroke);border-radius:16px;box-shadow:5px 5px 0 var(--stroke);overflow:hidden;font-size:14px}
.notif-h{padding:14px 16px;border-bottom:1px solid var(--line);font-family:var(--title);font-size:17px}
.notif p{margin:0;padding:14px 16px;line-height:1.5;color:var(--body)}
.notif a{display:block;padding:12px 16px;border-top:1px solid var(--line);text-align:center;font-weight:600}

/* Habillage (grands écrans) */
.page-row{display:flex;align-items:stretch;flex:1}
.page-row>.center{flex:0 1 1240px;min-width:0}
.habillage{display:none;flex:1 1 0;min-width:0;position:relative;overflow:hidden;color:#fff;background:#0B2540}
.habillage:hover{color:#fff;text-decoration:none}
.habillage .dots{position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.14) 2px,transparent 2px);background-size:22px 22px}
.habillage .in{position:sticky;top:0;padding:32px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.habillage .tag{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;background:#FFD000;color:#111;padding:4px 10px;border-radius:999px}
.habillage .cover{width:100%;max-width:180px}
.habillage .t{font-family:var(--title);font-weight:800;font-size:22px;line-height:1.15}
.habillage .m{font-size:13px;opacity:.85}
.habillage .go{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:10px;background:#fff;color:#111;font-weight:700;font-size:14px;border:2px solid #111}
@media (min-width:1500px){.habillage.on{display:block}}
.news-list{display:flex;flex-direction:column;gap:14px}
.news-list a{font-size:14px;font-weight:500;line-height:1.4}
.news-list small{display:block;font-weight:400;font-size:12px;color:var(--muted);margin-top:2px}

/* Recherche */
.h1.red{box-shadow:inset 0 -.3em 0 rgba(227,36,27,.6)}
.lead{margin:6px 0 20px;font-size:15px;color:var(--muted)}
.filters{background:var(--surface);border:2px solid var(--stroke);border-radius:16px;box-shadow:4px 4px 0 var(--stroke);padding:20px;display:flex;flex-direction:column;gap:16px}
.frow{display:flex;flex-wrap:wrap;gap:12px}
.fsearch{flex:999 1 320px;display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.fsearch input{flex:1;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:15px;color:var(--text)}
.seg.lg{border-radius:12px}.seg.lg button{height:40px;border-radius:9px}
.gchips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gchips>span{font-size:13px;font-weight:600;color:var(--muted);margin-right:4px}
.gchip{min-height:36px;padding:0 14px;border-radius:999px;font-weight:600;font-size:13px;background:var(--surface);color:var(--text);border:1px solid var(--line)}
.gchip[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.gchip i{display:inline-block;width:10px;height:10px;border-radius:3px;border:1px solid #111;margin-right:6px;vertical-align:-1px}
.fsel{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end}
.fsel label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
.fsel select{height:42px;min-width:170px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;font-size:14px;background:var(--surface);color:var(--text)}
.linkbtn{height:42px;padding:0 14px;border:0;background:transparent;color:var(--link);font-weight:600;font-size:14px}
.results-count{margin:22px 0 14px;font-size:14px;color:var(--muted)}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:22px 18px}
.rcard{display:flex;flex-direction:column;gap:8px;color:var(--text)}
.rcard:hover{text-decoration:none}
.rcard:hover .rcov{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--stroke)}
.rcov{position:relative;overflow:hidden;aspect-ratio:2/3;border-radius:10px;padding:12px;display:flex;align-items:flex-end;background-size:cover;background-position:center;transition:transform .12s,box-shadow .12s}
.rcov .ty{position:absolute;top:10px;left:10px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:3px 8px;border-radius:999px;border:2px solid #111}
.rcov .ti{font-family:var(--title);font-weight:700;font-size:17px;line-height:1.15;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.rcov.dark .ti{color:#111;text-shadow:none}
.rcov.img .ti{display:none}
.ribbon{position:absolute;top:16px;right:-34px;width:130px;transform:rotate(45deg);text-align:center;padding:3px 0;border-top:2px solid #111;border-bottom:2px solid #111;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#fff;text-shadow:-1px -1px 0 #111,1px -1px 0 #111,-1px 1px 0 #111,1px 1px 0 #111}
.rline{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:600}
.rline span:last-child{white-space:nowrap}
.rmeta{font-size:13px;color:var(--muted)}
.pager{margin-top:32px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.pager button{min-width:40px;height:40px;padding:0 12px;border-radius:10px;font-weight:700;font-size:14px;background:var(--surface);color:var(--text);border:2px solid var(--line)}
.pager button[aria-current="page"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.pager button.next{border-color:var(--stroke);box-shadow:3px 3px 0 var(--stroke);background:#FFD000;color:#111}
.pager span{padding:0 4px;color:var(--muted);font-weight:700}
.empty.big p:first-child{margin:0 0 6px;font-weight:700;font-size:17px;color:var(--text)}
.empty.big p{margin:0;font-size:14px}

/* Fiche œuvre */
.banner{position:relative;height:300px;overflow:hidden;background-size:cover;background-position:center}
.banner .dots{position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.18) 2px,transparent 2px);background-size:22px 22px}
.banner nav{position:relative;max-width:1240px;margin:0 auto;padding:18px 24px;color:#fff;font-size:13px;font-weight:500}
.banner nav a{color:#fff}
.banner.dark nav,.banner.dark nav a{color:#111}
main.fiche{position:relative;margin-top:-200px;padding-top:0}
.panel{background:var(--surface);border:2px solid var(--stroke);border-radius:16px;box-shadow:4px 4px 0 var(--stroke)}
.fhead{display:flex;flex-wrap:wrap;gap:32px;padding:28px}
.fleft{flex:0 0 220px;display:flex;flex-direction:column;gap:14px}
.fleft .rcov{padding:18px}
.fleft .rcov .ti{font-size:26px}
.lbl{margin:0;font-size:13px;font-weight:600;color:var(--muted)}
.mylist{display:flex;flex-direction:column;gap:8px}
.mylist button{height:42px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:600;font-size:14px;text-align:left;padding:0 14px}
.mylist button:hover{border-color:var(--stroke)}
.login-hint{font-size:13px;color:var(--body);background:var(--tint);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0}
.fright{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:18px}
.fright h1{margin:0;font-size:40px;letter-spacing:-.5px;display:inline;box-shadow:inset 0 -.3em 0 rgba(255,208,0,.6);line-height:1.15}
.sub{margin:4px 0 0;color:var(--muted);font-size:15px}
.fdl{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px 24px;font-size:14px}
.fdl dt{color:var(--muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.fdl dd{margin:2px 0 0}
.fdl .wide{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px}
.fdl .wide dd{margin-top:6px}
.gtag{position:relative;display:inline-flex;align-items:center;height:36px;padding:0 22px 0 14px;border:2px solid #111;border-radius:6px 0 0 6px;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 50%,100% 100%,0 100%);color:#fff;text-shadow:-1px -1px 0 #111,1px -1px 0 #111,-1px 1px 0 #111,1px 1px 0 #111;font-family:var(--title);font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.gtag:hover{color:#fff;text-decoration:none}
.theme-tags{display:flex;flex-wrap:wrap;gap:6px}
.theme-tags a{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--subtle);color:var(--body);font-size:13px;font-weight:500}
.fright h2{margin:0 0 6px;font-size:19px}
.synopsis{margin:0;font-size:15px;line-height:1.65;color:var(--body);white-space:pre-line}
.fsec{margin-top:20px}
.fsec>h2{margin:0 0 10px;font-size:17px}
.fsec.panel{padding:22px}
.fsec.panel>h2{font-size:22px;margin-bottom:14px}
.related{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
.related a{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--text)}
.related a:hover{text-decoration:none;border-color:var(--stroke)}
.related .mini{width:36px;height:50px;border-radius:6px}
.related small{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--link-strong)}
.related b{font-size:14px}
.epic{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:18px}
.epic .vid{position:relative;flex:0 0 96px;aspect-ratio:9/16;border-radius:10px;background:#111;display:flex;align-items:center;justify-content:center}
.epic .vid b{position:absolute;top:6px;left:6px;font-family:var(--title);font-weight:800;font-size:11px;color:#FFD000}
.epic .vid span{width:40px;height:40px;border-radius:50%;background:#FFD000;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.epic .eb{margin:0 0 4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--link-strong)}
.epic h2{margin:0 0 6px;font-size:20px}
.plats{display:flex;flex-wrap:wrap;gap:8px}
.plats a{display:inline-flex;align-items:center;height:38px;padding:0 12px;border-radius:10px;border:2px solid var(--stroke);color:var(--text);font-weight:600;font-size:13px}
.plats a:first-child{background:#111;color:#fff;border-color:#111}
.rows a,.rows div.row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;padding:14px 0;border-top:1px solid var(--subtle);color:var(--text)}
.rows .k{font-weight:600;font-size:15px}.rows .v{font-size:14px;color:var(--muted)}
.chars{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px}
.char{text-align:center;font-size:14px}
.char .av{width:min(96px,100%);margin:0 auto 8px;aspect-ratio:1;border-radius:50%;border:2px solid var(--stroke);background:var(--subtle) center/cover;display:flex;align-items:center;justify-content:center;font-family:var(--title);font-weight:800;font-size:26px}
.char small{display:block;color:var(--muted)}
.review{display:flex;gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.review .av{width:40px;height:40px;border-radius:50%;border:2px solid #111;color:#fff;flex:0 0 40px;display:flex;align-items:center;justify-content:center;font-weight:700}
.review p{margin:6px 0 0;font-size:14px;line-height:1.6;color:var(--body)}
.review details{margin-top:6px;border:1px dashed var(--line);background:var(--subtle);border-radius:8px;padding:10px 12px;font-size:14px}
textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;font-size:14px;resize:vertical;background:var(--surface);color:var(--text)}
.stars{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700}
.stars .big{font-family:var(--title);font-size:32px}
.stars svg{display:block}

@media (max-width:760px){
  .h1{font-size:28px}
  .fright h1{font-size:30px}
  .head-in{padding:12px 16px}
  main{padding:20px 16px 40px}
  .logo img{height:44px}
  .grid,.rgrid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:18px 14px}
  .fleft{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:flex-start}
  .fleft .rcov{width:150px}
  .fleft .side{flex:1 1 150px;display:flex;flex-direction:column;gap:10px}
  .fhead{padding:18px;gap:22px}
  .banner{height:220px}
  main.fiche{margin-top:-150px}
  .profil-btn{padding:0 12px}
}

.nbadge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--ink);color:var(--on-ink);border:2px solid var(--surface);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.nbadge[hidden]{display:none}
.notif .nrow{display:block;text-align:left;border-top:1px solid var(--line);padding:12px 16px;color:var(--text);font-weight:400}
.notif .nrow.unread{background:var(--tint)}
.notif .nrow small{display:block;color:var(--muted);font-size:12px;margin-top:2px}

/* Formulaires et connexion */
.auth-card{max-width:460px;margin:24px auto;display:flex;flex-direction:column;gap:14px;padding:28px}
.auth-card h1{margin:6px 0 0;font-size:28px}
.auth-card .note{margin:0;line-height:1.5}
.auth-card .seg{align-self:stretch}.auth-card .seg button{flex:1}
.auth-card .seg button[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.12)}
#social{display:flex;flex-direction:column;gap:10px}
.soc{display:flex;align-items:center;justify-content:center;gap:10px;height:46px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:600;font-size:15px}
.soc:hover{border-color:var(--stroke)}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:4px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
#form{display:flex;flex-direction:column;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.fld input,.fld textarea{height:46px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-weight:400;font-size:15px;background:var(--surface);color:var(--text)}
.fld textarea{height:auto;padding:10px 12px}
.fld input:disabled{opacity:.6}
.fld small{font-weight:400;font-size:12px;color:var(--muted)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45}
.check input{width:18px;height:18px;margin-top:1px;flex:0 0 auto}
.msg{margin:0;padding:10px 12px;border-radius:10px;font-size:14px;background:#FDECEA;color:#8A1C14;border:1px solid #F5B5AE}
.msg.ok{background:#E7F6E5;color:#1F5F1A;border-color:#B5DDB0}
html[data-theme="dark"] .msg{background:#3B1512;color:#FFB4AB;border-color:#6B2A24}
html[data-theme="dark"] .msg.ok{background:#14301A;color:#A5E3A0;border-color:#2C5A2A}
.msg[hidden]{display:none}
.btn.wide{justify-content:center;width:100%}
.btn.dark{background:var(--ink);color:var(--on-ink);border-color:var(--ink);box-shadow:none}
.btn:disabled{opacity:.6;cursor:wait}
.linkbtn.sm{height:auto;padding:0;font-size:13px}
.linkbtn.danger{color:#C62828}
html[data-theme="dark"] .linkbtn.danger{color:#FF8A80}

/* Fiche : ma liste, progression, note */
.mylist button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.prog{border:1px solid var(--line);border-radius:12px;padding:12px}
.prog .lbl{margin-bottom:8px}
.pm{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pm button{width:44px;height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:20px;font-weight:600}
.pm span{font-weight:700;font-size:16px}
.picker{display:flex;gap:2px;margin-top:6px}
.pstar{position:relative;width:30px;height:30px}
.pstar svg{display:block}
.pstar .h{position:absolute;top:0;bottom:0;width:50%;border:0;background:transparent;padding:0}
.pstar .h.l{left:0}.pstar .h.r{right:0}
.pstar .h:hover,.pstar .h:focus-visible{background:rgba(255,208,0,.25)}

/* Profil */
.pbanner{height:180px}
.pmain{padding-top:0}
.phead{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 24px;margin-top:-56px}
.pav{width:120px;height:120px;border-radius:50%;background:var(--ink) center/cover;border:5px solid var(--bg);display:flex;align-items:center;justify-content:center;font-family:var(--title);font-size:44px;font-weight:700;color:var(--on-ink)}
.pid{flex:999 1 280px;min-width:0;margin-bottom:6px}
.pid h1{margin:0;font-size:32px;word-break:break-word}
.pid p{margin:2px 0 0;font-size:14px;color:var(--muted)}
.pact{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:6px}
.pact .btn{height:44px;font-weight:600}
.pedit{margin-top:20px;padding:22px;display:flex;flex-wrap:wrap;gap:24px 40px}
.pedit[hidden]{display:none}
.pcol{flex:1 1 320px;display:flex;flex-direction:column;gap:12px}
.pcol h2{margin:0;font-size:19px}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatches button{width:44px;height:44px;border-radius:10px;border:2px solid var(--line)}
.swatches button[aria-pressed="true"]{border:3px solid var(--text);box-shadow:0 0 0 2px var(--bg) inset}
.acct{display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-size:14px;font-weight:600}
.acct .linkbtn{height:auto;padding:0}
.pbtns{flex:1 1 100%;display:flex;justify-content:flex-end;gap:10px}
.pedit .msg{flex:1 1 100%}
.pstats{margin-top:20px;padding:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px}
.pstats div{display:flex;flex-direction:column}
.pstats b{font-family:var(--title);font-size:28px}
.pstats span{font-size:13px;color:var(--muted)}
.ptabs{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:28px;border-bottom:1px solid var(--line)}
.ptabs button{border:0;background:transparent;padding:12px 0;font-weight:600;font-size:15px;color:var(--muted);box-shadow:none}
.ptabs button[aria-selected="true"]{color:var(--text);box-shadow:inset 0 -4px 0 var(--text)}
.lrows{display:flex;flex-direction:column}
.lrow{display:flex;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.lrow:first-child{border-top:0}
.lrow .mini{flex:0 0 56px;height:80px;border-radius:8px;background-size:cover;background-position:center}
.lbody{flex:1;min-width:0}
.lhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.lhead>a{font-weight:700;font-size:16px}
.pill{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--subtle);border:1px solid var(--line)}
.lnote{margin-left:auto;font-weight:700}
.avis{margin:8px 0 4px;font-size:14px;line-height:1.6;color:var(--body);font-style:italic}
.sp{margin-top:8px;border:1px dashed var(--line);background:var(--subtle);border-radius:8px;padding:10px 12px;font-size:14px}
.sp summary{cursor:pointer;font-weight:600}
.nudge{margin-top:8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;font-size:13px;color:var(--muted);background:var(--tint);border-radius:8px;padding:8px 12px}
.nudge span:last-child{display:flex;gap:14px;font-weight:600}
@media (max-width:760px){.pav{width:96px;height:96px;font-size:36px}.pid h1{font-size:26px}.pbanner{height:140px}}
