/* EspaceCo — Feuille de style principale (style Medium moderne, skinnable) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body, 'Inter', system-ui, -apple-system, sans-serif);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-heading, 'Fraunces', serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--c-muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 1.25rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-heading); font-weight: 800; font-size: 1.35rem;
  color: var(--c-text); text-decoration: none;
}
.logo-mark {
  display: inline-flex; width: 1.6rem; height: 1.6rem;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: .9rem;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--c-text); font-weight: 500; font-size: .95rem;
  position: relative; padding: .3rem 0;
}
.site-nav a:hover { color: var(--c-primary); text-decoration: none; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  background: transparent; border: 1px solid var(--c-border);
  border-radius: 999px; padding: .45rem;
  color: var(--c-text); cursor: pointer; line-height: 0;
  transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(45deg); border-color: var(--c-primary); }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-text); color: var(--c-bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--c-text) 50%, transparent); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--c-text); border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-text); text-decoration: none; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; }
.admin-quick-bar { display: flex; gap: .5rem; justify-content: center; margin: 1rem auto; padding: .75rem 1rem; background: color-mix(in srgb, var(--c-primary) 6%, transparent); border-radius: 10px; max-width: 760px; flex-wrap: wrap; }
.btn-publish {
  display: flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  border: 0; font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(16,185,129,.5);
  transition: transform .15s, box-shadow .2s;
}
.btn-publish:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -6px rgba(16,185,129,.6); }
.publish-actions { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.publish-current { margin: 0 0 1rem; font-size: .9rem; text-align: center; }
.publish-actions .btn-block { margin-top: .5rem; }
.publish-advanced { margin-top: 1rem; padding: .6rem; background: color-mix(in srgb, var(--c-muted) 5%, transparent); border-radius: 8px; font-size: .85rem; }
.publish-advanced summary { cursor: pointer; font-weight: 500; }
.publish-advanced select { width: 100%; margin-top: .5rem; }
.link-publish { background: transparent; border: 0; cursor: pointer; font-size: 1rem; padding: 0 .15rem; }
.illu-quick-block { padding: 1rem; background: color-mix(in srgb, var(--c-muted) 6%, transparent); border-radius: 10px; margin: 1rem 0; }
.illu-quick-previews { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0; }
.illu-quick-previews img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; margin-top: .3rem; }
.illu-quick-previews small { display: block; font-size: .75rem; }

.burger { display: none; background: transparent; border: 0; cursor: pointer; padding: .4rem; }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--c-text); margin: 4px 0;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 820px) {
  .site-nav, .header-actions .btn-ghost, .header-actions .btn-primary { display: none; }
  .burger { display: inline-block; }
  body.menu-open .site-nav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-bg); padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    gap: 1rem;
  }
}

/* ---------- THEME PICKER ---------- */
.theme-picker {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 96%, transparent);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.theme-picker[hidden] { display: none; }
.theme-picker .container { width: 100%; max-width: 900px; }
.theme-picker-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.theme-picker-header h3 { margin: 0; font-size: 1.6rem; }
.theme-picker-close {
  background: transparent; border: 0; font-size: 2rem; color: var(--c-text);
  cursor: pointer; line-height: 1;
}
.theme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.theme-card {
  display: block; padding: 1.25rem;
  border: 2px solid var(--c-border); border-radius: 14px;
  background: var(--t-bg); color: var(--t-text);
  text-decoration: none; transition: transform .15s, border-color .15s;
  cursor: pointer;
}
.theme-card:hover { transform: translateY(-3px); border-color: var(--t-primary); text-decoration: none; }
.theme-card.is-active { border-color: var(--t-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-primary) 25%, transparent); }
.theme-card-preview { display: flex; align-items: center; gap: .5rem; }
.dot { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; }
.dot-primary { background: var(--t-primary); }
.dot-accent { background: var(--t-accent); }
.theme-card-title { margin-left: .5rem; font-weight: 600; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-eyebrow {
  display: inline-block;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-muted); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin: 0 0 1.25rem; max-width: 14ch;
}
.hero-accent {
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--c-muted);
  max-width: 60ch; margin: 0 0 2rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-decor {
  position: absolute; top: -100px; right: -100px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent), transparent 65%);
  opacity: .25; pointer-events: none; z-index: -1;
  filter: blur(40px);
}

/* ---------- CATEGORIES ---------- */
.categories { padding: 1rem 0 3rem; }
.cat-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cat-card {
  display: block; padding: 1.5rem;
  background: var(--c-card-bg); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-4px); border-color: var(--c-primary);
  box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--c-primary) 40%, transparent);
  text-decoration: none;
}
.cat-icon { font-size: 2rem; margin-bottom: .5rem; }
.cat-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.cat-card p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- LATEST POSTS ---------- */
.latest { padding: 2rem 0 4rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }
.link-more { color: var(--c-primary); font-weight: 600; }

.post-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border); border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover {
  transform: translateY(-3px); border-color: var(--c-primary);
  box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--c-text) 25%, transparent);
}
.post-card-cover { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-cover img { transform: scale(1.04); }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--c-muted); margin-bottom: .55rem; }
.post-cat {
  display: inline-block; padding: .15rem .6rem;
  background: color-mix(in srgb, var(--c-primary) 12%, transparent);
  color: var(--c-primary); border-radius: 999px; font-weight: 600; font-size: .78rem;
}
.post-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--c-text); }
.post-card h3 a:hover { color: var(--c-primary); text-decoration: none; }
.post-excerpt { color: var(--c-muted); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.post-author { font-size: .85rem; color: var(--c-muted); }

.empty-state {
  text-align: center; padding: 3rem 1rem;
  border: 1px dashed var(--c-border); border-radius: 14px;
}
.empty-state p { margin: .3rem 0; }

/* ---------- SUBSCRIBE BANNER ---------- */
.subscribe-banner {
  margin: 4rem 0;
  padding: 0;
}
.subscribe-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: 2.5rem 2rem; border-radius: 20px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
}
.subscribe-inner h2 { color: #fff; margin: 0 0 .4rem; }
.subscribe-inner p { margin: 0; opacity: .9; }
.subscribe-inner .btn-primary { background: #fff; color: var(--c-text); }
.subscribe-inner .btn-primary:hover { background: var(--c-bg); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 2rem 0;
  color: var(--c-muted); font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { color: var(--c-muted); }
.footer-nav a:hover { color: var(--c-primary); }

/* ---------- FLASH ---------- */
.flash {
  position: relative; padding: .9rem 2.5rem .9rem 1.25rem;
  margin: 1rem auto; max-width: 1180px;
  border-radius: 10px; font-size: .95rem;
  border: 1px solid;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.flash-close {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit;
}

/* ---------- COMING SOON ---------- */
.coming-soon { padding: 5rem 1.25rem; text-align: center; }
.coming-soon h1 { margin-bottom: 1rem; }

/* ---------- AUTH FORMS ---------- */
.auth-wrap { padding: clamp(2rem, 6vw, 4rem) 0; }
.auth-card-wrap { display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--c-card-bg); border: 1px solid var(--c-border);
  border-radius: 18px; padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 12px 40px -20px color-mix(in srgb, var(--c-text) 25%, transparent);
}
.auth-card h1 { margin: 0 0 .3rem; font-size: 1.8rem; }
.auth-card.text-center { text-align: center; }
.form label { display: block; margin: 1rem 0 .4rem; font-weight: 600; font-size: .92rem; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=url], .form textarea, .form select {
  width: 100%; padding: .7rem .9rem; font-size: 1rem;
  border: 1px solid var(--c-border); border-radius: 10px;
  background: var(--c-bg); color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.btn-block { display: flex; width: 100%; margin-top: 1.5rem; padding: .85rem 1.4rem; }
.auth-sep {
  position: relative; text-align: center;
  margin: 1.5rem 0; color: var(--c-muted); font-size: .85rem;
}
.auth-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--c-border); }
.auth-sep span { position: relative; background: var(--c-card-bg); padding: 0 .8rem; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #fff; color: #1a1a1a; border: 1px solid var(--c-border);
  border-radius: 999px; padding: .75rem 1.4rem; font-weight: 600;
  text-decoration: none; transition: background .15s, transform .15s;
}
.btn-google:hover { background: #f9fafb; transform: translateY(-1px); text-decoration: none; }
.auth-foot {
  margin-top: 1.5rem; text-align: center; font-size: .9rem; color: var(--c-muted);
}
.auth-foot a { color: var(--c-primary); font-weight: 500; }
.auth-foot span { margin: 0 .5rem; }

/* ---------- POST LIST / SHOW ---------- */
.post-list-wrap { padding: 3rem 0; }
.post-list-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input { padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: .95rem; }
.cat-filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-border); }
.cat-filter a { padding: .4rem .9rem; border-radius: 999px; background: transparent; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 500; font-size: .9rem; text-decoration: none; }
.cat-filter a:hover { background: var(--c-card-bg); text-decoration: none; }
.cat-filter a.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cat-filter .sort-toggle { margin-left: auto; display: flex; align-items: center; gap: .3rem; color: var(--c-muted); font-size: .85rem; }
.cat-filter .sort-toggle a { padding: .2rem .6rem; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0; }
.pagination a { padding: .5rem .9rem; border: 1px solid var(--c-border); border-radius: 8px; text-decoration: none; color: var(--c-text); }
.pagination a.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.post-show { padding: 3rem 0; }
.post-show-head { max-width: 760px; margin: 0 auto 2rem; }
.post-show-head .post-title { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.post-lead { font-size: 1.15rem; color: var(--c-muted); margin: 0 0 1.5rem; }
.post-author-line { display: flex; align-items: center; gap: .6rem; color: var(--c-muted); font-size: .92rem; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.author-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; }
.author-avatar-default { background: var(--c-primary); color: #fff; text-align: center; line-height: 28px; font-weight: 600; }
.post-cover-figure { max-width: 1180px; margin: 1rem auto 2rem; }
.post-cover-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; }
.post-body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.post-body h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.post-body h3 { margin-top: 1.6rem; font-size: 1.35rem; }
.post-body p { margin: 1rem 0; }
.post-body blockquote { border-left: 4px solid var(--c-primary); padding: .4rem 1rem; margin: 1.5rem 0; color: var(--c-muted); font-style: italic; }
.post-body pre, .post-body code { background: color-mix(in srgb, var(--c-text) 6%, transparent); border-radius: 6px; padding: .15rem .4rem; font-family: 'JetBrains Mono', monospace; font-size: .92em; }
.post-body pre { padding: 1rem; overflow-x: auto; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-engage { max-width: 760px; margin: 2.5rem auto; }
.link-soft { color: var(--c-muted); font-size: .92rem; text-decoration: none; }
.link-soft:hover { color: var(--c-primary); }

/* ---------- REACTIONS ---------- */
.reaction-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1rem; padding: 1rem 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.reaction-btn { background: transparent; border: 1px solid var(--c-border); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; display: flex; align-items: center; gap: .35rem; font-size: .95rem; color: var(--c-text); transition: transform .15s, background .15s; }
.reaction-btn:hover { transform: translateY(-2px); }
.reaction-btn.is-active { background: color-mix(in srgb, var(--c-primary) 12%, transparent); border-color: var(--c-primary); }
.reaction-btn .r-count { font-weight: 600; font-size: .85rem; color: var(--c-muted); }
.reaction-btn.is-active .r-count { color: var(--c-primary); }

/* ---------- COMMENTS ---------- */
.comments-section { margin-top: 2rem; }
.comment-form, .comment-reply-form { margin: 1rem 0; }
.comment-form textarea, .comment-reply-form textarea { width: 100%; padding: .8rem; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg); color: var(--c-text); font-family: inherit; font-size: 1rem; resize: vertical; }
.comments-list { margin-top: 1.5rem; }
.comment { padding: 1rem 0; border-top: 1px solid var(--c-border); }
.comment.depth-1 { margin-left: 2rem; }
.comment.depth-2 { margin-left: 4rem; }
.comment.depth-3 { margin-left: 5rem; }
.comment-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .92rem; }
.comment-date { font-size: .82rem; }
.comment-body { color: var(--c-text); }
.comment-reply-btn { background: transparent; border: 0; cursor: pointer; padding: .2rem 0; font-size: .82rem; margin-top: .4rem; }

/* ---------- IDEA ---------- */
.idea-list-grid { display: grid; gap: 1rem; }
.idea-card { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.25rem; background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 14px; align-items: start; }
.idea-vote-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .8rem .6rem; background: transparent; border: 1px solid var(--c-border); border-radius: 12px; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--c-text); transition: background .15s, color .15s; min-width: 70px; }
.idea-vote-btn:hover { background: var(--c-card-bg); }
.idea-vote-btn.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.idea-vote-count { font-size: 1.1rem; }
.idea-vote-big { font-size: 1.3rem; padding: 1rem 1.6rem; margin: 1rem 0; flex-direction: row; gap: .5rem; }
.idea-status-badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; margin-bottom: .5rem; }
.idea-status-open { background: #d1fae5; color: #065f46; }
.idea-status-progress { background: #fef3c7; color: #92400e; }
.idea-status-answered { background: #dbeafe; color: #1e40af; }
.idea-status-closed { background: #e5e7eb; color: #374151; }
.idea-status-form { margin: 1.5rem 0; }
.idea-vote-wrap { display: flex; justify-content: center; }
.idea-meta { font-size: .85rem; color: var(--c-muted); }

/* ---------- DEAL ---------- */
.view-toggle { display: flex; gap: .3rem; }
.view-toggle a { padding: .4rem .9rem; border: 1px solid var(--c-border); border-radius: 8px; text-decoration: none; color: var(--c-text); }
.view-toggle a.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.deal-card { background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; }
.deal-cover { display: block; aspect-ratio: 16/10; }
.deal-cover img { width: 100%; height: 100%; object-fit: cover; }
.deal-body { padding: 1.2rem; }
.deal-place { font-size: .85rem; color: var(--c-primary); font-weight: 600; }
.deal-place-lg { font-size: 1.05rem; color: var(--c-primary); margin: .5rem 0 1rem; }
.deal-meta { font-size: .85rem; color: var(--c-muted); margin-top: .5rem; }

/* ---------- DASHBOARD / ADMIN ---------- */
.dashboard, .admin-wrap { padding: 2.5rem 0; }
.dashboard-head, .admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card { padding: 1.5rem; background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 14px; text-align: center; }
.stat-val { font-size: 2rem; font-weight: 800; color: var(--c-primary); }
.stat-lbl { color: var(--c-muted); font-size: .9rem; margin-top: .3rem; }
.stat-warn .stat-val { color: #ea580c; }
.admin-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-nav a { padding: .5rem 1rem; border: 1px solid var(--c-border); border-radius: 999px; text-decoration: none; color: var(--c-text); font-size: .9rem; }
.admin-nav a:hover { background: var(--c-card-bg); }
.admin-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 800px) { .admin-twocol { grid-template-columns: 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; }
.admin-table thead { background: color-mix(in srgb, var(--c-text) 5%, transparent); }
.admin-table th, .admin-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--c-border); font-size: .92rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table select, .admin-table input { padding: .35rem .5rem; font-size: .9rem; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--c-card-bg); border: 1px solid var(--c-border); font-size: .78rem; font-weight: 600; }
.badge-active, .badge-published, .badge-approved { background: #d1fae5; color: #065f46; border-color: transparent; }
.badge-pending, .badge-scheduled { background: #fef3c7; color: #92400e; border-color: transparent; }
.badge-suspended, .badge-rejected, .badge-spam, .badge-archived { background: #fecaca; color: #991b1b; border-color: transparent; }
.badge-draft { background: #e5e7eb; color: #374151; border-color: transparent; }
.link-danger { background: transparent; border: 0; cursor: pointer; color: #ef4444; }
.mod-list { display: grid; gap: 1rem; margin-top: 1rem; }
.mod-card { padding: 1rem 1.25rem; background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 12px; }
.mod-card blockquote { margin: .8rem 0; padding-left: 1rem; border-left: 3px solid var(--c-primary); color: var(--c-text); }
.mod-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- POST FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-details { padding: .8rem; border: 1px solid var(--c-border); border-radius: 10px; margin: 1rem 0; }
.form-details summary { cursor: pointer; font-weight: 600; }

/* ---------- THEMES ADMIN ---------- */
.theme-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.theme-admin-card { padding: 1.2rem; border: 1px solid; border-radius: 14px; }
.theme-preview-swatches { display: flex; gap: .3rem; }
.theme-admin-actions { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .8rem; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin: 1rem 0; }
.color-grid input[type=color] { width: 100%; height: 44px; border-radius: 8px; cursor: pointer; }
.theme-form .form-main { display: flex; flex-direction: column; }

/* ---------- NOTIFICATIONS / BELL ---------- */
.bell-wrap { position: relative; }
.bell { background: transparent; border: 1px solid var(--c-border); border-radius: 999px; padding: .45rem .65rem; cursor: pointer; font-size: 1rem; position: relative; color: var(--c-text); }
.bell:hover { border-color: var(--c-primary); }
.bell-badge { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 4px; }
.bell-dropdown { position: absolute; top: calc(100% + .6rem); right: 0; width: 320px; max-height: 400px; overflow-y: auto; background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.15); z-index: 80; }
.bell-empty, .bell-loading { padding: 1rem; color: var(--c-muted); text-align: center; font-size: .9rem; }
.bell-item { display: flex; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; align-items: flex-start; font-size: .92rem; }
.bell-item:hover { background: color-mix(in srgb, var(--c-primary) 6%, transparent); text-decoration: none; }
.bell-item.is-unread { background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.bell-icon { font-size: 1.1rem; }
.bell-text small { color: var(--c-muted); }
.bell-foot { display: block; padding: .6rem 1rem; text-align: center; color: var(--c-primary); font-weight: 500; text-decoration: none; border-top: 1px solid var(--c-border); }
.notif-list { display: grid; gap: .3rem; margin-top: 1.5rem; }
.notif-row { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: 10px; background: var(--c-card-bg); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); align-items: flex-start; }
.notif-row:hover { background: color-mix(in srgb, var(--c-primary) 5%, transparent); text-decoration: none; }
.notif-row.is-unread { background: color-mix(in srgb, var(--c-primary) 10%, transparent); border-left: 3px solid var(--c-primary); }
.notif-icon { font-size: 1.3rem; }

/* ---------- SUBSCRIPTIONS ---------- */
.sub-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 1rem; }
@media (max-width: 800px) { .sub-grid { grid-template-columns: 1fr; } }
.sub-add { background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 14px; padding: 1.5rem; }

/* ---------- ACCOUNT / RGPD ---------- */
.account-info { background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 12px; padding: 1.25rem; }
.account-info p { margin: .3rem 0; }
.rgpd-section.danger { background: #fef2f2; border: 1px solid #fecaca; padding: 1.5rem; border-radius: 12px; }
.rgpd-section.danger h2 { color: #991b1b; margin-top: 0; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 760px; margin: 0 auto; background: var(--c-text); color: var(--c-bg); border-radius: 14px; padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; z-index: 90; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: slideUp .3s ease; }
.cookie-banner a { color: var(--c-bg); text-decoration: underline; }
.cookie-banner button { background: var(--c-primary); color: #fff; border: 0; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
