/* L'Officiel de Côte d'Ivoire — interface épurée inspirée de X */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9f9;
  --bg-hover: rgba(15, 20, 25, 0.04);
  --bg-elev: #ffffff;
  --text: #0f1419;
  --text-2: #536471;
  --text-3: #8b98a5;
  --border: #eff3f4;
  --border-strong: #cfd9de;
  --accent: #e86f00;          /* orange OCI, assombri pour le contraste AA sur blanc */
  --accent-bg: #f77f00;
  --accent-soft: rgba(247, 127, 0, 0.1);
  --green: #00874f;           /* vert identité, contraste AA */
  --green-soft: rgba(0, 158, 96, 0.1);
  --danger: #c8102e;
  --danger-soft: rgba(244, 33, 46, 0.1);
  --btn: #0f1419;
  --btn-text: #ffffff;
  --overlay: rgba(0, 0, 0, 0.4);
  --shadow: 0 0 15px rgba(101, 119, 134, 0.2), 0 0 3px 1px rgba(101, 119, 134, 0.15);
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-soft: #16181c; --bg-hover: rgba(231, 233, 234, 0.06); --bg-elev: #000000;
    --text: #e7e9ea; --text-2: #71767b; --text-3: #5b6066; --border: #2f3336; --border-strong: #536471;
    --accent: #ff9a3c; --accent-soft: rgba(247, 127, 0, 0.16); --green: #2ecc8f; --green-soft: rgba(0, 158, 96, 0.18);
    --danger: #f4212e; --btn: #eff3f4; --btn-text: #0f1419; --overlay: rgba(91, 112, 131, 0.4);
    --shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 3px 1px rgba(255, 255, 255, 0.15);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-soft: #16181c; --bg-hover: rgba(231, 233, 234, 0.06); --bg-elev: #000000;
  --text: #e7e9ea; --text-2: #71767b; --text-3: #5b6066; --border: #2f3336; --border-strong: #536471;
  --accent: #ff9a3c; --accent-soft: rgba(247, 127, 0, 0.16); --green: #2ecc8f; --green-soft: rgba(0, 158, 96, 0.18);
  --danger: #f4212e; --btn: #eff3f4; --btn-text: #0f1419; --overlay: rgba(91, 112, 131, 0.4);
  --shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 3px 1px rgba(255, 255, 255, 0.15);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-y: scroll;
}
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent); }
a.link:hover, .prose a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; flex-shrink: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--accent-bg); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Structure ---------- */
.shell { display: flex; justify-content: center; min-height: 100vh; }
.sidenav {
  width: 275px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; padding: 0 12px;
  display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none;
}
.main { width: 600px; max-width: 100%; border-left: 1px solid var(--border); border-right: 1px solid var(--border); min-height: 100vh; outline: none; padding-bottom: 80px; }
.main.wide { width: 920px; }
.rightcol { width: 350px; flex-shrink: 0; padding: 0 0 0 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.rightcol.hide { display: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: 10px 10px; margin: 2px 0 4px; border-radius: 999px; width: max-content; }
.brand:hover { background: var(--bg-hover); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text span { font-size: 11px; color: var(--text-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.navitem {
  display: flex; align-items: center; gap: 18px; padding: 11px 14px; border-radius: 999px;
  font-size: 19px; width: max-content; max-width: 100%; position: relative; transition: background 0.15s;
}
.navitem:hover { background: var(--bg-hover); }
.navitem svg { width: 26px; height: 26px; flex-shrink: 0; }
.navitem[aria-current="page"] { font-weight: 700; }
.navitem[aria-current="page"] svg { stroke-width: 2.4; }
.navsep { height: 1px; background: var(--border); margin: 8px 14px; }
.navlabel { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); font-weight: 600; padding: 10px 14px 2px; }
.badge-count {
  position: absolute; top: 5px; left: 28px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent-bg); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg);
}
.btn-publish { margin: 14px 0 8px; width: 90%; }
.account-switch {
  margin-top: auto; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 999px; text-align: left; width: 100%;
}
.account-switch:hover { background: var(--bg-hover); }

/* ---------- En-têtes de colonne ---------- */
.colhead {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.colhead-top { display: flex; align-items: center; gap: 20px; min-height: 53px; padding: 0 16px; }
.colhead h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.colhead .sub { font-size: 13px; color: var(--text-2); }
.back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-left: -8px; }
.back:hover { background: var(--bg-hover); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: 1; min-width: max-content; padding: 0 16px; height: 53px; display: grid; place-items: center;
  color: var(--text-2); font-weight: 500; position: relative; white-space: nowrap;
}
.tab:hover { background: var(--bg-hover); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 700; }
.tab[aria-selected="true"]::after { content: ''; position: absolute; bottom: 0; height: 4px; width: 56px; border-radius: 2px; background: var(--accent-bg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 0.15s, opacity 0.15s;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { opacity: 0.88; }
.btn-accent { background: var(--accent-bg); color: #fff; }
.btn-accent:hover { background: #e06f00; }
.btn-outline { border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { background: var(--bg-hover); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-lg { height: 52px; font-size: 17px; padding: 0 24px; }
.btn-sm { height: 30px; font-size: 13px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.iconbtn:hover { background: var(--accent-soft); color: var(--accent); }
.iconbtn svg { width: 19px; height: 19px; }
.follow-btn.is-following:hover { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); background: var(--danger-soft); }

/* ---------- Avatars et badges ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 15px; letter-spacing: -0.02em; background: var(--text-3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.page { border-radius: 10px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 134px; height: 134px; font-size: 40px; border: 4px solid var(--bg); }
.avatar.lg.page { border-radius: 24px; }
.verified { display: inline-flex; color: var(--green); flex-shrink: 0; }
.verified svg { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.outline { background: transparent; border: 1px solid var(--border-strong); }
.pill-filter { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill-filter[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }

/* ---------- Cartes de publication ---------- */
.post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; cursor: pointer; }
.post:hover { background: var(--bg-hover); }
.post.detail { cursor: default; flex-direction: column; gap: 12px; }
.post.detail:hover { background: transparent; }
.post-head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.post-head .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-head .name:hover { text-decoration: underline; }
.post-head .meta { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.post-title { font-weight: 700; font-size: 16px; margin: 2px 0 4px; line-height: 1.3; }
.post.detail .post-title { font-size: 22px; letter-spacing: -0.01em; }
.post-summary { margin: 0 0 6px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.post.detail .post-body, .post.detail .post-summary { font-size: 17px; line-height: 1.5; }
.post-body a, .post-summary a { color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 2px; color: var(--text-2); font-size: 13px; }
.facts span { display: inline-flex; align-items: center; gap: 4px; }
.facts svg { width: 15px; height: 15px; }
.correction {
  margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px;
  border-left: 3px solid var(--accent-bg);
}
.correction strong { color: var(--accent); }
.actions { display: flex; justify-content: space-between; max-width: 425px; margin: 6px 0 -6px -8px; }
.post.detail .actions { max-width: none; justify-content: space-around; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; margin: 4px 0; }
.act { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; border-radius: 999px; padding-right: 8px; }
.act .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background 0.15s; }
.act svg { width: 18px; height: 18px; }
.act:hover { color: var(--accent); }
.act:hover .ic { background: var(--accent-soft); }
.act.like.on { color: var(--green); }
.act.like:hover { color: var(--green); }
.act.like:hover .ic { background: var(--green-soft); }
.act.dislike.on { color: var(--danger); }
.act.dislike:hover { color: var(--danger); }
.act.dislike:hover .ic { background: var(--danger-soft); }
.act[disabled] { opacity: 0.5; cursor: not-allowed; }

.media { margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.media img, .media video { width: 100%; max-height: 520px; object-fit: cover; background: var(--bg-soft); }
.linkcard { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.linkcard:hover { background: var(--bg-hover); }
.linkcard .lc-img { aspect-ratio: 1.91; background: var(--bg-soft) center/cover; }
.linkcard .lc-body { padding: 10px 12px; }
.linkcard .lc-domain { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.linkcard .lc-domain svg { width: 14px; height: 14px; }
.yt { position: relative; aspect-ratio: 16/9; background: #000 center/cover; display: grid; place-items: center; color: #fff; }
.yt .play { width: 68px; height: 48px; border-radius: 14px; background: rgba(0,0,0,0.75); display: grid; place-items: center; }
.yt .play svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-title { padding: 10px 12px; font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }

.poll { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.poll-q { font-weight: 700; }
.poll-opt { height: 40px; border-radius: 999px; border: 1px solid var(--accent-bg); color: var(--accent); font-weight: 700; }
.poll-opt:hover { background: var(--accent-soft); }
.poll-opt:disabled { border-color: var(--border-strong); color: var(--text-2); cursor: not-allowed; background: transparent; }
.poll-bar { position: relative; height: 36px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; padding: 0 12px; font-weight: 600; }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--bg-soft); border-radius: 8px; }
.poll-bar.mine .fill { background: var(--accent-soft); }
.poll-bar span { position: relative; }
.poll-bar .pct { margin-left: auto; }

/* ---------- Encarts ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.card-pad { padding: 16px; }
.panel { background: var(--bg-soft); border-radius: var(--radius); margin: 12px 0 16px; overflow: hidden; }
.panel h2 { font-size: 20px; font-weight: 800; margin: 0; padding: 12px 16px; letter-spacing: -0.01em; }
.panel-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; transition: background 0.15s; }
.panel-item:hover { background: var(--bg-hover); }
.panel-more { display: block; padding: 16px; color: var(--accent); font-size: 15px; }
.panel-more:hover { background: var(--bg-hover); }
.section { padding: 16px; border-bottom: 1px solid var(--border); }
.section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.section h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.notice.accent { background: var(--accent-soft); }
.notice.accent svg { color: var(--accent); }
.notice.green { background: var(--green-soft); }
.notice.green svg { color: var(--green); }
.notice.danger { background: var(--danger-soft); }
.notice.danger svg { color: var(--danger); }

.right-search { position: sticky; top: 0; background: var(--bg); padding: 6px 0 10px; z-index: 5; }
.searchbox {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid transparent;
}
.searchbox:focus-within { background: var(--bg); border-color: var(--accent-bg); }
.searchbox:focus-within svg { color: var(--accent); }
.searchbox svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.searchbox input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; height: 100%; }
.footer-links { font-size: 13px; color: var(--text-2); padding: 0 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Accueil public ---------- */
.hero { padding: 20px 16px 18px; border-bottom: 1px solid var(--border); }
.hero h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.hero p { margin: 0 0 14px; color: var(--text-2); }
.hero-form { display: grid; grid-template-columns: 1fr 200px auto; gap: 8px; }
.hero-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.composer-teaser { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.composer-teaser .fake { flex: 1; font-size: 19px; color: var(--text-2); text-align: left; padding: 8px 0; }

/* ---------- Profils ---------- */
.banner { aspect-ratio: 3 / 1; background: var(--bg-soft) center/cover; }
.profile-head { padding: 12px 16px 0; position: relative; }
.profile-avatar { margin-top: -15%; margin-bottom: 8px; }
.profile-actions { position: absolute; right: 16px; top: 12px; display: flex; gap: 8px; }
.profile-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 4px; letter-spacing: -0.01em; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-2); font-size: 15px; margin: 10px 0; }
.profile-meta span, .profile-meta a { display: inline-flex; align-items: center; gap: 4px; }
.profile-meta svg { width: 17px; height: 17px; }
.counts { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); margin: 10px 0 12px; }
.counts b { color: var(--text); }
.verif-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 13px; margin: 10px 0; }
.verif-box svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.member { padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.member .avatar { margin-bottom: 8px; }
.dl-list dt { color: var(--text-2); font-size: 13px; margin-top: 12px; }
.dl-list dd { margin: 2px 0 0; }

/* ---------- Listes ---------- */
.item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
a.item:hover, .item.clickable:hover { background: var(--bg-hover); cursor: pointer; }
.item.unread { background: var(--accent-soft); }
.empty { padding: 40px 32px; text-align: center; }
.empty h3 { font-size: 24px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.empty p { color: var(--text-2); margin: 0 0 16px; }
.endlist { padding: 24px; text-align: center; color: var(--text-3); font-size: 13px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent-bg); animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 28px; display: grid; place-items: center; }
.loading-full { min-height: 60vh; display: grid; place-items: center; }
.errorbox { padding: 28px 20px; text-align: center; }
.errorbox p { color: var(--text-2); }

.doc { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.doc:hover { background: var(--bg-hover); }
.doc-icon { width: 44px; height: 52px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 800; }

/* ---------- Commentaires ---------- */
.comment { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.comment .replies { margin-top: 6px; }
.comment.reply { padding: 10px 0 0 0; border: 0; }
.comment-deleted { color: var(--text-3); font-style: italic; font-size: 14px; padding: 4px 0; }
.reply-to { color: var(--text-2); font-size: 13px; }
.reply-to a { color: var(--accent); }
.composer-inline { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.gate { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--text-2); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px; background: var(--bg);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 16px;
}
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23536471' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-bg); box-shadow: 0 0 0 1px var(--accent-bg); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.textarea.bare { border: 0; padding: 8px 0; font-size: 19px; min-height: 60px; box-shadow: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-bg); flex-shrink: 0; }
.counter { font-size: 13px; color: var(--text-2); }
.counter.over { color: var(--danger); font-weight: 700; }
.fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.fieldset legend { font-weight: 700; padding: 0 6px; }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 14px; }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-bg); color: var(--accent); }
.toolbar { display: flex; gap: 2px; color: var(--accent); }
.toolbar .iconbtn { color: var(--accent); }
.toolbar .iconbtn[aria-pressed="true"] { background: var(--accent-soft); }

/* ---------- Authentification ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 32px 24px 60px; }
.auth-logo { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; }
.auth h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; text-align: center; }
.auth .lead { text-align: center; color: var(--text-2); margin: 0 0 24px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--border-strong); }
.choice button[aria-pressed="true"] { border-color: var(--accent-bg); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-bg); }
.choice strong { display: block; margin-bottom: 4px; }
.demo { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 18px; }
.demo-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Modale et notifications ---------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade 0.15s; }
.modal { background: var(--bg); border-radius: var(--radius); width: 600px; max-width: 100%; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 90vh; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 53px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 19px; font-weight: 800; margin: 0; flex: 1; }
.modal-body { padding: 16px; overflow-y: auto; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
.menu { position: absolute; z-index: 70; background: var(--bg); box-shadow: var(--shadow); border-radius: 12px; min-width: 220px; overflow: hidden; padding: 4px 0; }
.menu button, .menu a { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; font-weight: 600; font-size: 15px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--bg-hover); }
.menu svg { width: 18px; height: 18px; }
.menu .danger { color: var(--danger); }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--accent-bg); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); animation: up 0.2s; pointer-events: auto; max-width: 90vw; }
.toast.error { background: var(--danger); }
.toast.dark { background: var(--btn); color: var(--btn-text); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Messagerie ---------- */
.dm { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 100vh; }
.dm-list { border-right: 1px solid var(--border); }
.dm-thread { display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.bubble.me { align-self: flex-end; background: var(--accent-bg); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 4px; }
.bubble-time { font-size: 12px; color: var(--text-2); margin: 0 4px 8px; }
.bubble-time.me { align-self: flex-end; }
.bubble.failed { opacity: 0.6; }
.dm-compose { border-top: 1px solid var(--border); padding: 8px 12px; display: flex; gap: 8px; align-items: flex-end; }
.dm-compose .textarea { min-height: 42px; max-height: 160px; border-radius: 16px; background: var(--bg-soft); border: 0; padding: 10px 14px; resize: none; }

/* ---------- Tableaux et statistiques ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr.clickable:hover td { background: var(--bg-hover); cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat .l { color: var(--text-2); font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan { min-width: 0; border: 1px solid var(--border-strong); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plan.current { border-color: var(--accent-bg); box-shadow: 0 0 0 1px var(--accent-bg); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 21px; white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; flex: 1; }
.plan .btn { white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan li.off { color: var(--text-3, var(--text-2)); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.plan li.off svg { color: var(--text-2); }
.quota { font-size: 12px; color: var(--text-2); }
.quota.full { color: var(--danger); }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 12px; padding: 12px 0; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--border-strong); font-size: 13px; font-weight: 700; color: var(--text-2); }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.current .dot { border-color: var(--accent-bg); color: var(--accent); }
.step .dot svg { width: 15px; height: 15px; }
.timeline { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 16px; display: flex; flex-direction: column; gap: 12px; }
.timeline div { position: relative; font-size: 14px; }
.timeline div::before { content: ''; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bg); }
.chart { width: 100%; height: 140px; }
.chart rect { fill: var(--accent-bg); }
.chart.green rect { fill: var(--green); }
.chart.gray rect { fill: var(--text-3); }
.receipt { max-width: 560px; margin: 24px auto; padding: 28px; border: 1px solid var(--border); border-radius: 16px; }

/* ---------- Mobile ---------- */
.mobile-head { display: none; }
.tabbar { display: none; }
@media (max-width: 1280px) {
  .sidenav { width: 88px; align-items: center; }
  .brand-text, .navitem .lbl, .navlabel, .account-switch .acc-text { display: none; }
  .navitem { padding: 12px; }
  .btn-publish { width: 52px; height: 52px; padding: 0; }
  .btn-publish .lbl { display: none; }
  .account-switch { width: auto; padding: 8px; }
  .navsep { margin: 8px 0; width: 40px; }
}
@media (max-width: 1080px) {
  .rightcol { display: none; }
  .main.wide { width: calc(100vw - 88px); }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .sidenav { display: none; }
  .main, .main.wide { width: 100%; border: 0; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-head { display: flex; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; color: var(--text-2); position: relative; }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 700; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .badge-count { left: calc(50% + 4px); top: 2px; }
  .hero-form { grid-template-columns: 1fr; }
  .grid2, .plans, .stats { grid-template-columns: 1fr; }
  .dm { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .dm.has-thread .dm-list { display: none; }
  .dm:not(.has-thread) .dm-thread { display: none; }
  .dm-thread { height: calc(100vh - 70px); }
  .fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; z-index: 41; box-shadow: var(--shadow); }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; max-height: none; width: 100%; }
  .avatar.lg { width: 84px; height: 84px; font-size: 28px; }
  .profile-actions { top: 8px; }
  .choice { grid-template-columns: 1fr; }
}
@media (min-width: 701px) { .fab { display: none; } .drawer-only { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; }
.drawer-panel { width: 290px; max-width: 85vw; background: var(--bg); height: 100%; overflow-y: auto; padding: 12px; box-shadow: var(--shadow); animation: slide 0.2s; display: flex; flex-direction: column; }
.drawer-panel .navitem { font-size: 17px; width: 100%; }
.drawer-panel .navitem .lbl { display: inline; }
.drawer-panel .navlabel { display: block; }
.drawer-shade { flex: 1; background: var(--overlay); }
@keyframes slide { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidenav, .rightcol, .tabbar, .colhead, .noprint { display: none !important; } .main { border: 0; width: 100%; } }
.iconbtn.locked { opacity: 0.55; }

/* Épinglage, avis urgent, programmation, rapport */
.pinned-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.pinned-line svg { width: 14px; height: 14px; }
.chip.urgent { background: var(--danger); color: #fff; border-color: transparent; font-weight: 700; }
.chip.urgent svg { width: 13px; height: 13px; }
.urgent-box { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.urgent-box > h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 0; font-size: 15px; color: var(--danger); }
.urgent-box > h2 svg { width: 18px; height: 18px; }
.sched-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.report { max-width: 820px; margin: 0 auto; padding: 24px; }
.report-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--accent-bg); padding-bottom: 14px; margin-bottom: 18px; }
.report-head img { width: 64px; height: 64px; }
.report h2 { font-size: 16px; margin: 22px 0 8px; }
.report table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report td, .report th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.report td.num, .report th.num { text-align: right; font-variant-numeric: tabular-nums; }
.delta-up { color: var(--green); } .delta-down { color: var(--danger); }
@media print {
  #sidenav, #rightcol, #tabbar, #toasts, .colhead, .no-print { display: none !important; }
  body, .main, .main.wide { background: #fff !important; color: #000 !important; width: auto !important; border: 0 !important; }
  .report { padding: 0; }
  .report .card { break-inside: avoid; }
}
.report svg.chart { height: 70px; width: 100%; }
.report .stat .v { font-size: 26px; }

/* Titre de la page d'accueil : nom complet de la plateforme, ajusté à la largeur disponible */
.colhead h1.home-title { font-size: clamp(15px, 4.6vw, 20px); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Partage */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 4px 0; border-radius: 12px; }
.share-btn:hover { background: var(--bg-hover); }
.share-btn:focus-visible { outline: 2px solid var(--accent-bg); }
.share-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--text-2); }
.share-ic svg { width: 26px; height: 26px; }
.share-whatsapp .share-ic { background: #25D366; }
.share-facebook .share-ic { background: #1877F2; }
.share-x .share-ic { background: #000; }
.share-linkedin .share-ic { background: #0A66C2; }
.share-telegram .share-ic { background: #229ED9; }
.share-email .share-ic { background: #6B7280; }
.share-sms .share-ic { background: #F77F00; }
.share-link .share-ic, .share-more .share-ic { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border-strong); }
.share-x .share-ic { box-shadow: 0 0 0 1px var(--border-strong); }

/* ---------- Modération ---------- */
.avatar-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex-shrink: 0; }
.avatar-ic svg { width: 20px; height: 20px; color: var(--text-2); }
.meter { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent-bg); border-radius: 99px; }
.chip-x { border: 0; background: none; padding: 0 0 0 4px; margin-right: -2px; color: inherit; cursor: pointer; display: inline-flex; opacity: .65; }
.chip-x:hover { opacity: 1; }
.chip-x svg { width: 12px; height: 12px; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hold-reply { padding: 10px 12px; border-left: 3px solid var(--accent-bg); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.report-alerts { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); }
.report-alerts svg { width: 18px; height: 18px; color: var(--danger); flex-shrink: 0; }
.sanction-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sanction-choice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; }
.sanction-choice > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sanction-choice:has(input:checked) { border-color: var(--text); background: var(--bg-soft); }
.sanction-choice.danger:has(input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.sanction-choice input { accent-color: var(--accent-bg); margin-top: 3px; }
@media print { .staff-report { break-inside: avoid; } }
.stats.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.mini .stat { padding: 12px; }
.stats.mini .v { font-size: 22px; }
.stats.mini .l { font-size: 12px; line-height: 1.3; }
.mod-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
  .stats.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-item { flex-wrap: wrap; }
  .mod-item > .grow { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .mod-item > .mod-actions { flex-direction: row; flex-wrap: wrap; width: 100%; padding-left: 52px; }
}

/* ---------- Types de publication : titre-badge coloré ---------- */
.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 6px; background: var(--tb); color: var(--tb-ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.35; white-space: nowrap; }
.type-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.type-badge.lg { font-size: 13px; padding: 5px 11px 5px 9px; }
.type-badge.lg svg { width: 15px; height: 15px; }
.post { --type-accent: transparent; }
/* Choix du type avant la rédaction */
.type-picker { display: flex; flex-direction: column; gap: 14px; }
.type-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.type-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.type-opt:hover { border-color: var(--tb); background: color-mix(in srgb, var(--tb) 6%, var(--bg)); }
.type-opt[aria-pressed="true"] { border-color: var(--tb); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tb) 35%, transparent); }
.type-opt .xs { line-height: 1.35; }
.type-opt.locked { opacity: .55; }
.type-chosen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Vitrine (fiche enrichie tenant lieu de site internet) ---------- */
.profile-tagline { margin: 8px 0 0; font-size: 16px; font-weight: 600; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.open-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { color: var(--green); }
.open-badge.is-closed { color: var(--danger); }
.open-badge.lg { font-size: 15px; margin-bottom: 10px; }
.contact-bar { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.contact-bar::-webkit-scrollbar { display: none; }
.contact-bar .btn { flex-shrink: 0; }
.contact-bar svg { width: 17px; height: 17px; }
.vitrine-sec h2 { display: flex; align-items: center; gap: 8px; }
.vitrine-sec h2 svg { color: var(--accent); }
.vitrine-about p { margin: 0 0 10px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.figure { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.figure b { display: block; font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1.15; }
.figure span { font-size: 13px; color: var(--text-2); }
.services { display: grid; gap: 10px; }
.service { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table th, .hours-table td { padding: 7px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 700; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; margin-top: 10px; }
.info-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.info-row > svg { color: var(--text-2); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 0 12px; }
.faq details > div p { margin: 0 0 6px; }

/* Éditeur de la fiche */
.fiche-meter .meter { height: 8px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; margin-top: 8px; }
.fiche-meter .meter span { display: block; height: 100%; background: var(--accent-bg); border-radius: 99px; }
.fiche-meter-pc { color: var(--accent); }
.fiche-nav { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 53px; z-index: 5; background: var(--bg); padding: 8px 0; scrollbar-width: none; }
.fiche-nav::-webkit-scrollbar { display: none; }
.fiche-nav .chip { flex-shrink: 0; }
.chip-btn { cursor: pointer; border: 1px solid var(--border-strong); background: var(--bg); }
.chip-btn:hover { background: var(--bg-hover); }
.chip-btn svg { width: 13px; height: 13px; }
.fiche-sec { scroll-margin-top: 110px; }
.fiche-bar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--border); z-index: 4; }
.thumb { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: var(--text-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-wide { width: 112px; }
.thumb-round { border-radius: 50%; cursor: pointer; width: 44px; height: 44px; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gallery-del { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; width: 28px; height: 28px; }
.gallery-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--border-strong); cursor: pointer; color: var(--text-2); }
.gallery-add:hover { background: var(--bg-hover); }
.hours-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours-day { width: 120px; }
.hours-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hours-slot { display: inline-flex; align-items: center; gap: 6px; }
.input-time { width: auto; padding: 6px 8px; }
.social-row { align-items: flex-end; gap: 10px; }
.social-ic { width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }

/* ---------- Sélecteur d'apparence ---------- */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 40px; padding: 0 10px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-checked="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
:root[data-theme="dark"] .theme-switch button[aria-checked="true"] { background: #2f3336; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-switch button[aria-checked="true"] { background: #2f3336; } }
.theme-switch svg { width: 18px; height: 18px; }
.theme-switch.big { display: flex; width: 100%; }
.theme-switch.big button { flex: 1; height: 42px; font-size: 15px; }
.side-theme { padding: 12px 4px 4px; }
.side-theme-quick { display: none; }
.drawer-theme { padding: 8px 6px 12px; }
.drawer-theme .navlabel { padding: 0 6px 8px; }
@media (max-width: 1280px) {
  .side-theme .theme-switch { display: none; }
  .side-theme-quick { display: inline-flex; }
  .side-theme { padding: 8px 0 0; }
}
.side-theme { margin-top: auto; }
.side-theme + .account-switch { margin-top: 8px; }
.side-theme:last-child { margin-bottom: 16px; }
@media (max-width: 700px) { .fiche-bar { bottom: calc(57px + env(safe-area-inset-bottom)); } .fiche-nav { top: 52px; } }

/* ---------- Publication sur fond coloré (texte blanc) ---------- */
.post-color { background: var(--pc); color: #fff; border-radius: 14px; padding: 14px 16px; margin: 6px 0 4px; }
.post-color .post-title { color: #fff; font-weight: 800; }
.post-color .post-summary, .post-color .post-body { color: #fff; }
.post-color a, .post-color .post-body a, .post-color .post-summary a { color: #fff; text-decoration: underline; font-weight: 600; }
.post-color > :last-child { margin-bottom: 0; }
.post-color.short { padding: 26px 20px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.post-color.short .post-title { font-size: 22px; line-height: 1.25; }
.post-color.short .post-body, .post-color.short .post-summary { font-size: 19px; line-height: 1.4; font-weight: 600; }
.post.detail .post-color { padding: 18px 20px; }
.post.detail .post-color.short { min-height: 180px; }
.post.detail .post-color.short .post-title { font-size: 26px; }
.post.detail .post-color.short .post-body { font-size: 22px; }

/* Choix de couleur (éditeur, réglages) */
.color-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.color-swatch.none { background: var(--bg); color: var(--text-2); }
.color-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--text); }
.color-swatch svg { width: 18px; height: 18px; }
.color-swatch:not([aria-checked="true"]) svg.check-ic { display: none; }
.on-color { background: var(--pc) !important; color: #fff !important; border-color: transparent !important; }
.on-color::placeholder { color: rgba(255, 255, 255, 0.75); }
textarea.bare.on-color { padding: 12px 14px; border-radius: 12px; }
input.on-color { font-weight: 800; }
.modal input[name="title"] { font-weight: 700; }
.post-color .post-title { margin-bottom: 8px; }
