/* yBook — feuille de style principale. Blanc épuré, orange & gris. */
:root {
  --orange: #F27420;
  --orange-600: #DB6212;
  --orange-50: #FFF4EC;
  --orange-100: #FFE4D0;
  --ink: #232323;
  --gray: #4A4A4A;
  --gray-600: #6B6B6B;
  --gray-400: #A3A3A3;
  --gray-200: #E7E6E4;
  --gray-100: #F4F3F1;
  --gray-50: #FAFAF9;
  --white: #FFFFFF;
  --success: #1F8A5B;
  --success-bg: #E8F6EF;
  --danger: #C2362B;
  --danger-bg: #FDEDEB;
  --info-bg: #EEF3FB;
  --info: #2C5A9E;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; }
h3, .h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { background: var(--gray-100); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--gray-600); }
.small { font-size: .85rem; }
.center { text-align: center; }
.accent { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--gray); max-width: 38em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--orange); margin-bottom: .8rem; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .7em 1.25em; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { border-color: var(--gray-200); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--gray); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .45em .95em; font-size: .88rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; color: var(--orange); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.main-nav > a { padding: .5em .8em; border-radius: 8px; text-decoration: none; color: var(--gray); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .35em; }
.main-nav > a:hover, .main-nav > a[aria-current] { color: var(--ink); background: var(--gray-100); }
.main-nav > a[aria-current] { color: var(--orange); }
.nav-account { display: flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--gray-200); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--gray); cursor: pointer; text-decoration: none; position: relative; }
.nav-icon:hover { background: var(--gray-100); color: var(--ink); }
.nav-user { display: inline-flex; align-items: center; gap: .4em; padding: .4em .8em; border-radius: 999px; background: var(--gray-100); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.inline-form { display: inline; margin: 0; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; }

/* Messages flash */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: .85em 1.1em; border-radius: var(--radius); background: var(--info-bg); color: var(--info); font-weight: 500; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-warning { background: var(--orange-50); color: var(--orange-600); }

/* Accueil */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; height: 420px; }
.hero-visual .tile { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--gray-100); color: var(--gray-400); }
.hero-visual .tile .icon { width: 34%; height: 34%; stroke-width: 1.3; }
.tile-1 { left: 4%; top: 6%; width: 40%; height: 52%; background: var(--gray-100); }
.tile-2 { left: 48%; top: 0; width: 30%; height: 36%; background: var(--orange-50) !important; color: var(--orange) !important; }
.tile-3 { left: 48%; top: 40%; width: 46%; height: 34%; }
.tile-4 { left: 82%; top: 8%; width: 18%; height: 28%; background: var(--gray-50) !important; border: 1px solid var(--gray-200); }
.tile-5 { left: 10%; top: 62%; width: 34%; height: 34%; background: var(--gray-50) !important; border: 1px solid var(--gray-200); }
.lens { position: absolute; left: 34%; top: 46%; width: 110px; height: 110px; border-radius: 50%; border: 12px solid var(--gray); background: #fff; z-index: 2; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.lens span { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; border: 1.5px dashed var(--gray-200); border-radius: var(--radius-lg); color: var(--gray); }
.empty-state > .icon { width: 36px; height: 36px; color: var(--orange); }
.empty-state p { margin: 0 0 6px; max-width: 34em; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--gray-200); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.category-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--orange-50); color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.category-icon .icon { width: 26px; height: 26px; }
.category-label { font-weight: 650; font-size: 1.1rem; }
.category-text { color: var(--gray-600); font-size: .92rem; flex: 1; }
.category-count { font-size: .82rem; font-weight: 600; color: var(--orange); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gray); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--gray-600); margin: 0; }

.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; color: #fff; }

/* Cartes profil */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.profile-card { display: block; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--gray-200); transition: transform .15s, box-shadow .15s; }
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.profile-card.is-boosted { border-color: var(--orange-100); }
.profile-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--gray-100); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 300; color: var(--gray-400); }
.profile-meta { display: block; padding: 12px 14px 14px; }
.profile-name { display: flex; align-items: center; gap: 4px; font-weight: 650; }
.profile-sub { display: block; font-size: .85rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified { color: var(--orange); display: inline-flex; }
.verified .icon { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: .25em .6em; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--gray-100); color: var(--gray); }
.badge .icon { width: 14px; height: 14px; }
.badge-boost { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; }
.badge-orange { background: var(--orange-50); color: var(--orange-600); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* Cartes & formulaires */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); }
.form { display: grid; gap: 14px; }
.form label, label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form .hint { font-weight: 400; color: var(--gray-600); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; padding: .7em .9em; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-100); }
textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.checkbox input { margin-top: .3em; accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 500; margin: -6px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; font-size: .92rem; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist .ok .icon { color: var(--success); }
.checklist .warn .icon { color: var(--orange); }
.checklist .ko { color: var(--danger); font-weight: 600; }

/* Pages simples */
.bare { background: var(--gray-50); }
.bare main { padding: 40px 20px; }
.bare-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.error-page, .page-soon { text-align: center; padding: 80px 20px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--orange); margin: 0; line-height: 1; }
.soon-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; background: var(--orange-50); color: var(--orange); align-items: center; justify-content: center; margin-bottom: 18px; }
.soon-icon .icon { width: 34px; height: 34px; }
.page-soon .lead { margin: 0 auto 24px; }
.debug { text-align: left; background: var(--gray-100); padding: 16px; border-radius: var(--radius); overflow: auto; font-size: .8rem; }
.prose { padding-top: 48px; padding-bottom: 64px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--gray-200); padding: 48px 0 24px; margin-top: 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-600); margin-bottom: .9em; }
.footer-grid a { display: block; text-decoration: none; color: var(--gray); padding: 3px 0; font-size: .95rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid p { max-width: 26em; font-size: .92rem; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-200); font-size: .85rem; color: var(--gray-600); }

/* Responsive */
@media (max-width: 1020px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; max-width: 520px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 12px 20px 20px; gap: 2px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: .8em .6em; }
  .nav-account { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--gray-200); flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; }
  .lens { width: 80px; height: 80px; border-width: 9px; }
  .lens span { width: 24px; height: 24px; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Authentification */
.auth-page { padding: clamp(32px, 6vw, 72px) 0; background: var(--gray-50); min-height: 70vh; }
.auth-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.auth-aside { padding-top: 24px; }
.narrow-sm { max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks .icon { color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.type-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-picker legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.type-option { position: relative; cursor: pointer; font-weight: 500 !important; }
.type-option input { position: absolute; opacity: 0; }
.type-option span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); text-align: center; font-size: .85rem; transition: border-color .15s, background .15s; }
.type-option span .icon { width: 26px; height: 26px; color: var(--gray-600); }
.type-option input:checked + span { border-color: var(--orange); background: var(--orange-50); color: var(--orange-600); }
.type-option input:checked + span .icon { color: var(--orange); }
.type-option input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; gap: 24px; } .auth-aside { padding-top: 0; } }
@media (max-width: 560px) { .type-picker { grid-template-columns: repeat(2, 1fr); } }

/* Espace membre */
.page-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 28px 0; margin-bottom: 28px; }
.page-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { margin: 0; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash { display: grid; gap: 20px; padding-bottom: 56px; }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--gray-100); flex-wrap: wrap; }
.notice-warning { background: var(--orange-50); color: var(--orange-600); }
.notice form { margin: 0; }
.progress { height: 10px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.todo a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gray); font-size: .92rem; }
.todo a:hover { color: var(--orange); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; flex-direction: column; justify-content: center; padding: 18px; border-radius: var(--radius-lg); background: var(--gray-50); border: 1px solid var(--gray-200); text-decoration: none; color: var(--gray-600); font-size: .9rem; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile-link { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .15s; }
.tile-link:hover { border-color: var(--orange); }
.tile-link > .icon { width: 26px; height: 26px; color: var(--orange); margin-top: 2px; }
.tile-link span { display: flex; flex-direction: column; font-size: .88rem; color: var(--gray-600); }
.tile-link strong { color: var(--ink); font-size: 1rem; }
.tile-boost { background: var(--orange-50); border-color: var(--orange-100); }
.profile-form { display: grid; gap: 20px; padding-bottom: 56px; max-width: 860px; }
.form-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.95); padding: 14px 0; border-top: 1px solid var(--gray-200); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; width: 100%; }
.chip { cursor: pointer; display: inline-flex !important; }
.chip input { position: absolute; opacity: 0; }
.chip span { padding: .4em .9em; border: 1.5px solid var(--gray-200); border-radius: 999px; font-weight: 500; font-size: .88rem; transition: all .15s; }
.chip input:checked + span { border-color: var(--orange); background: var(--orange-50); color: var(--orange-600); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); }
.autocomplete { position: relative; }
.ac-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 400; }
.ac-list li { padding: .5em .7em; border-radius: 6px; cursor: pointer; }
.ac-list li:hover, .ac-list li[aria-selected=true] { background: var(--orange-50); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: .95rem; }
.kv dt { color: var(--gray-600); }
.kv dd { margin: 0; }
.account { display: grid; gap: 20px; padding-bottom: 56px; }
.session-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.session-list li { display: flex; flex-direction: column; padding: 10px 12px; background: var(--gray-50); border-radius: var(--radius); font-size: .9rem; }

/* Book public */
.book-cover { height: clamp(140px, 22vw, 280px); background: linear-gradient(120deg, var(--gray-100), var(--orange-50)); overflow: hidden; }
.book-cover-img { width: 100%; height: 100%; object-fit: cover; }
.book-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; margin-top: -64px; }
.book-avatar { width: 160px; height: 160px; border-radius: 50%; border: 5px solid #fff; background: var(--gray-100); overflow: hidden; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 300; color: var(--gray-400); }
.book-avatar img { width: 100%; height: 100%; object-fit: cover; }
.book-id h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.book-id h1 .verified .icon { width: 26px; height: 26px; }
.book-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--gray-600); margin: 0; }
.book-sub span { display: inline-flex; align-items: center; gap: 4px; }
.book-headline { margin: 8px 0 0; font-size: 1.05rem; color: var(--gray); }
.book-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn.is-active { border-color: var(--orange); color: var(--orange); background: var(--orange-50); }
.book-body { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding-top: 36px; padding-bottom: 64px; }
.book-info section { margin-bottom: 28px; }
.bio { color: var(--gray); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: .3em .8em; border-radius: 999px; background: var(--gray-100); font-size: .85rem; font-weight: 500; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gray); word-break: break-all; }
.links a:hover { color: var(--orange); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--gray-400); }
.dot-available { background: var(--success); }
.dot-busy { background: var(--orange); }
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .book-head { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: -70px; gap: 14px; }
  .book-id h1 { justify-content: center; }
  .book-sub { justify-content: center; }
  .book-actions { justify-content: center; }
  .book-avatar { width: 130px; height: 130px; }
  .book-body { grid-template-columns: 1fr; gap: 24px; }
}

/* Portfolio : gestion */
.portfolio-manage { display: grid; gap: 22px; padding-bottom: 64px; }
.portfolio-manage > .section-head { margin: 12px 0 0; }
.identity-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.identity-row { display: flex; gap: 16px; align-items: center; }
.identity-actions { flex: 1; display: grid; gap: 6px; }
.avatar-preview { width: 96px; height: 96px; border-radius: 50%; background: var(--gray-100); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--gray-400); flex-shrink: 0; }
.cover-preview { width: 150px; height: 84px; border-radius: var(--radius); background: var(--gray-100); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--gray-400); flex-shrink: 0; }
.avatar-preview img, .cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.uploader { margin: 0; }
.dropzone { display: block; position: relative; cursor: pointer; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--gray-200); border-radius: var(--radius-lg); text-align: center; background: var(--gray-50); transition: border-color .15s, background .15s; }
.identity-card .dropzone-inner { padding: 12px; flex-direction: row; justify-content: center; gap: 8px; }
.identity-card .dropzone-inner .muted { display: none; }
.dropzone-inner > .icon { width: 28px; height: 28px; color: var(--orange); }
.dropzone:hover .dropzone-inner, .dropzone.drag .dropzone-inner { border-color: var(--orange); background: var(--orange-50); }
.upload-queue { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.upload-queue li { display: grid; grid-template-columns: 1fr 140px auto; gap: 10px; align-items: center; font-size: .85rem; }
.uq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uq-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.uq-bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.upload-queue li.ok .uq-status { color: var(--success); }
.upload-queue li.ko .uq-status { color: var(--danger); }
.upload-queue li.ko .uq-bar span { background: var(--danger); }
.mgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mtile { position: relative; border-radius: var(--radius); background: var(--gray-100); cursor: grab; }
.mtile.dragging { opacity: .4; }
.mtile.is-hidden .mtile-media img { opacity: .45; }
.mtile-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.mtile-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mtile-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--gray-400); }
.mtile-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; }
.mtile-badge .icon { width: 12px; height: 12px; }
.mtile-badge-hidden { left: auto; right: 8px; top: 8px; bottom: auto; }
.mtile-menu { position: absolute; top: 6px; left: 6px; }
.mtile-menu summary { list-style: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mtile-menu summary::-webkit-details-marker { display: none; }
.mtile-menu summary .icon { width: 18px; height: 18px; }
.mtile-actions { position: absolute; z-index: 10; top: 38px; left: 0; width: 240px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; cursor: default; }
.mtile-actions form { margin: 0; display: grid; gap: 8px; }
.mtile-actions label { display: grid; gap: 4px; font-weight: 600; }
.mtile-actions input[type=text], .mtile-actions select { padding: .45em .6em; font-size: .88rem; }
.linkish { border: 0; background: none; padding: 4px 0; font: inherit; font-size: .9rem; color: var(--gray); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.linkish:hover { color: var(--orange); }
.linkish.danger:hover { color: var(--danger); }
.album-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.album-card a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.album-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); color: var(--gray-400); margin-bottom: 8px; transition: transform .15s; }
.album-card a:hover .album-cover { transform: translateY(-2px); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover > .icon { width: 36px; height: 36px; }
.album-title { font-weight: 650; }
.badge-lock { background: var(--ink); color: #fff; }
.album-cover .badge-lock { position: absolute; top: 10px; left: 10px; }
.album-grid-public { margin-bottom: 32px; }
.share-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--orange-50); border: 1px solid var(--orange-100); flex-wrap: wrap; }
.share-box p { margin: 4px 0 8px; }
.share-url { display: inline-block; word-break: break-all; background: #fff; }
.danger-zone { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--danger-bg); border-radius: var(--radius-lg); display: grid; gap: 10px; justify-items: start; }
.visibility-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visibility-picker legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.vis-option { cursor: pointer; }
.vis-option input { position: absolute; opacity: 0; }
.vis-option > span { display: grid; gap: 2px; padding: 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-weight: 400; height: 100%; }
.vis-option > span .icon { color: var(--gray-600); }
.vis-option small { color: var(--gray-600); }
.vis-option input:checked + span { border-color: var(--orange); background: var(--orange-50); }
.vis-option input:checked + span .icon { color: var(--orange); }
.form-actions-inline { display: flex; gap: 8px; }
.hint { font-weight: 400; color: var(--gray-600); font-size: .85rem; }
p.hint { margin: 0; }

/* Galerie publique */
.gallery { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 12px; }
.gitem { break-inside: avoid; margin-bottom: 12px; position: relative; }
.gitem a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); aspect-ratio: var(--r); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gitem a:hover img { transform: scale(1.03); }
.gitem-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--gray-400); }
.gitem-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.gitem-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.gitem-caption { display: block; font-size: .82rem; color: var(--gray-600); padding: 4px 2px 0; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.album-page { padding: 32px 0 64px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--gray-600); font-weight: 500; }
.album-head { margin: 12px 0 28px; }
.album-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.locked-page { padding: clamp(40px, 8vw, 96px) 0; background: var(--gray-50); min-height: 60vh; }
.locked-card { text-align: center; }
.locked-card label { text-align: left; }
.lock-icon { margin: 0 auto 6px; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.lock-icon .icon { width: 28px; height: 28px; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,15,15,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-open { overflow: hidden; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-stage img, .lb-stage video { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lb-stage figcaption { color: #ddd; font-size: .9rem; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--orange); }
@media (max-width: 860px) {
  .identity-grid { grid-template-columns: 1fr; }
  .visibility-picker { grid-template-columns: 1fr; }
  .upload-queue li { grid-template-columns: 1fr 80px; }
  .upload-queue .uq-status { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .lb-prev, .lb-next { display: none; }
}

/* Recherche */
.search-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 36px 0 0; }
.search-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.tabs a { padding: .7em 1em; text-decoration: none; color: var(--gray-600); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--orange); border-color: var(--orange); }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters-box { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff; }
.filters-box > summary { display: none; }
.filters-box label { display: grid; gap: 5px; font-weight: 600; font-size: .88rem; }
.filters-box input, .filters-box select { padding: .55em .7em; font-size: .92rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 8px; display: grid; }
.spec-filter summary { cursor: pointer; font-weight: 600; font-size: .88rem; padding: 4px 0; }
.spec-filter .chips { margin-top: 8px; max-height: 220px; overflow: auto; }
.spec-filter .chip span { font-size: .8rem; }
.results-count { margin: 0 0 16px; color: var(--gray-600); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--gray-200); }
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination [aria-current] { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination .gap { border: 0; }
@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .filters-box > summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
  .filters-box:not([open]) { padding: 12px 18px; }
}

/* Administration */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--gray-600); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 6px; border-bottom: 1px solid var(--gray-200); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.footer-admin { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px !important; border: 1px solid var(--gray-200); border-radius: 999px; font-size: .85rem !important; width: max-content; }
.footer-admin:hover { border-color: var(--orange); }
@media (max-width: 860px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-nav { display: flex; gap: 6px; margin: -12px auto 20px; flex-wrap: wrap; }
.admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: .5em .9em; border-radius: 999px; text-decoration: none; color: var(--gray); font-weight: 600; font-size: .9rem; border: 1px solid var(--gray-200); }
.admin-nav a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-actions form { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.inline-label input { padding: .4em .6em; }
.admin-upload { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 8px; margin: 12px 0 18px; align-items: center; }
.small-title { font-size: .95rem; margin: 18px 0 8px; }
.photo-lib { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-lib li { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.photo-lib li.is-generated { opacity: .6; }
.photo-lib img { width: 100%; height: 100%; object-fit: cover; }
.photo-lib form { position: absolute; top: 4px; right: 4px; margin: 0; }
.photo-lib button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.photo-lib button .icon { width: 14px; height: 14px; }
.photo-lib .credit { position: absolute; left: 0; right: 0; bottom: 0; font-size: .65rem; background: rgba(0,0,0,.55); color: #fff; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--gray-100); }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }
.inline-search { display: flex; gap: 6px; }
.inline-search input { padding: .45em .7em; }
.badge-demo { background: var(--ink); color: #fff; }
.profile-photo .badge-demo { position: absolute; right: 10px; top: 10px; }
@media (max-width: 860px) { .admin-upload { grid-template-columns: 1fr; } }

/* Accueil illustré (photos de la bibliothèque) */
.hero-photos { position: relative; height: 460px; }
.hero-photos .hp { position: absolute; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow); }
.hero-photos .hp img { width: 100%; height: 100%; object-fit: cover; }
.hp-1 { left: 18%; top: 0; width: 44%; height: 66%; z-index: 2; }
.hp-2 { left: 0; top: 30%; width: 30%; height: 44%; z-index: 1; }
.hp-3 { left: 66%; top: 6%; width: 34%; height: 40%; z-index: 1; }
.hp-4 { left: 56%; top: 50%; width: 40%; height: 46%; z-index: 3; }
.hp-5 { left: 10%; top: 76%; width: 30%; height: 24%; z-index: 1; }
.lens-photo { left: 44%; top: 56%; z-index: 4; }
.category-card { position: relative; overflow: hidden; isolation: isolate; }
.category-card.has-photo { min-height: 260px; justify-content: flex-end; color: #fff; border: 0; }
.category-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.category-card.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.category-card.has-photo:hover .category-bg { transform: scale(1.05); }
.category-card.has-photo .category-text { color: rgba(255,255,255,.85); }
.category-card.has-photo .category-count { color: #FFB27A; }
.category-card.has-photo .category-icon { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
@media (max-width: 1020px) { .hero-photos { height: 340px; max-width: 560px; } }
@media (max-width: 560px) { .hero-photos { height: 260px; } .hp-5 { display: none; } }

/* Messagerie */
.seg { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 4px; }
.seg a { padding: .45em 1em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--gray-600); }
.seg a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.messages-page { padding-bottom: 56px; display: grid; gap: 16px; }
.inbox { list-style: none; padding: 0; margin: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--gray-100); }
.inbox a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; }
.inbox a:hover { background: var(--gray-50); }
.inbox .is-unread { background: var(--orange-50); }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox-last { color: var(--gray-600); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-unread .inbox-last { color: var(--ink); font-weight: 500; }
.count-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mini-avatar.lg { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-weight: 600; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; }
.conversation { padding: 24px 0 56px; display: grid; gap: 16px; }
.conv-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200); }
.conv-title { flex: 1; display: grid; }
.conv-menu { position: relative; }
.conv-menu summary { list-style: none; }
.conv-menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 44px; z-index: 20; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; display: grid; gap: 4px; min-width: 230px; }
.menu-pop form { margin: 0; }
.thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.msg { display: grid; max-width: 78%; gap: 3px; }
.msg.mine { justify-self: end; justify-items: end; }
.bubble { padding: 10px 14px; border-radius: 16px; background: var(--gray-100); white-space: normal; overflow-wrap: anywhere; }
.mine .bubble { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.theirs .bubble { border-bottom-left-radius: 4px; }
.bubble-removed { background: transparent !important; color: var(--gray-600) !important; border: 1px dashed var(--gray-200); font-style: italic; }
.msg-meta { display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--gray-400); }
.report-box summary { list-style: none; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.report-box summary::-webkit-details-marker { display: none; }
.report-form { margin-top: 8px; padding: 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); display: grid; gap: 6px; color: var(--ink); font-size: .9rem; min-width: 260px; }
.report-form p { margin: 0 0 4px; }
.radio { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.radio input { accent-color: var(--orange); }
.composer { display: grid; gap: 10px; position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--gray-200); }
.composer button { justify-self: end; }
.nav-icon .nav-badge { top: 2px; right: 0; }
.notif-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.notif-list li + li { border-top: 1px solid var(--gray-100); }
.notif-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; text-decoration: none; }
.notif-list .is-unread { background: var(--orange-50); }
.session-list li { flex-direction: row; justify-content: space-between; align-items: center; }
.session-list li form { margin: 0; }

/* Modération */
.table-wrap { overflow-x: auto; }
.excerpt { max-width: 340px; }
.excerpt a { text-decoration: none; }
.row-escalated { background: var(--danger-bg); }
.status-pending { background: var(--orange-50); color: var(--orange-600); }
.status-reviewing { background: var(--info-bg); color: var(--info); }
.status-resolved { background: var(--success-bg); color: var(--success); }
.status-dismissed { background: var(--gray-100); color: var(--gray-600); }
.mod-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding-bottom: 56px; align-items: start; }
.mod-main, .mod-side { display: grid; gap: 16px; }
.mod-thread .msg { max-width: 92%; }
.mod-thread .is-reported .bubble { outline: 3px solid var(--danger); }
.mod-choices { display: grid; gap: 4px; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.filters-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters-inline select, .filters-inline input { width: auto; padding: .45em .7em; font-size: .9rem; }
@media (max-width: 960px) { .mod-grid { grid-template-columns: 1fr; } }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; }
.perm-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); }
.table input[type=text], .table input[type=number] { padding: .4em .5em; font-size: .9rem; }
.boost-page { display: grid; gap: 20px; padding-bottom: 56px; }
.boost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.boost-card { display: grid; gap: 6px; padding: 22px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff; align-content: start; }
.boost-card.is-featured { border-color: var(--orange); box-shadow: var(--shadow); }
.boost-card .badge { justify-self: start; }
.boost-price { font-size: 2rem; font-weight: 800; margin: 4px 0 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Contenus sensibles et signalement */
.gitem.is-sensitive:not(.revealed) img { filter: blur(28px) saturate(.8); transform: scale(1.1); }
.gitem.is-sensitive:not(.revealed) .gitem-play { display: none; }
.sensitive-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: var(--radius); background: rgba(20,20,20,.35); color: #fff; cursor: pointer; font: inherit; text-align: center; padding: 12px; }
.sensitive-veil .icon { width: 28px; height: 28px; }
.sensitive-veil span { font-size: .85rem; text-decoration: underline; }
.gitem.revealed .sensitive-veil { display: none; }
.gitem.is-sensitive .gitem-caption { position: relative; }
.gitem-report { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--gray); display: none; align-items: center; justify-content: center; }
.gitem:hover .gitem-report, .gitem-report:focus { display: flex; }
.gitem-report .icon { width: 15px; height: 15px; }
.mtile-badge-sensitive { left: auto; right: 8px; bottom: 8px; background: var(--orange); }
@media (hover: none) { .gitem-report { display: flex; } }

/* Présence et bot démo */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--success); margin-right: 5px; box-shadow: 0 0 0 2px #fff; }
.presence { font-size: .88rem; color: var(--gray-600); }
.presence.is-online { color: var(--success); font-weight: 600; }
.presence.is-online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; }
.bot-tag { font-size: .7rem; color: var(--gray-400); font-style: italic; }
.typing { display: flex; align-items: center; gap: 4px; color: var(--gray-600); font-size: .88rem; padding: 4px 2px; }
.typing[hidden] { display: none; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.closed-page { padding: 48px 28px; }
