:root {
    --orange: #ff6900;
    --orange-dark: #e35f00;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1c1c1e;
    --muted: #6b7280;
    --border: #e5e7eb;
    --green: #2e9e57;
    --blue: #2d6cdf;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; }
.logo-mark {
    background: var(--orange);
    color: #fff;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px;
    font-size: 20px;
}
.logo-text { color: var(--orange); }

.search-form {
    flex: 1;
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    max-width: 560px;
}
.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
}
.search-form button {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 0 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.search-form button:hover { color: var(--orange); }

.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-post { white-space: nowrap; }

/* Layout */
.main-content { padding: 24px 16px 48px; }
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }

/* Categories — bandeau horizontal */
.cat-bandeau {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: -8px 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cat-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    min-width: max-content;
    width: 100%;
}
.cat-list > a {
    display: inline-block;
    flex: 0 0 auto;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.cat-list > a:hover { color: var(--text); }
.cat-list > a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

/* Toolbar */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* Affaire grid */
.affaire-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.affaire-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.affaire-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }

.affaire-thumb { position: relative; height: 180px; background: #eee; }
.affaire-thumb > a:not(.fav-btn) { display: block; width: 100%; height: 100%; }
.affaire-thumb picture,
.detail-gallery-main picture { display: block; width: 100%; height: 100%; }
.affaire-thumb img,
.affaire-thumb picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-picture {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 12px, #e8e8e8 12px, #e8e8e8 24px);
    color: #9aa0a6;
}
.no-picture span {
    font-weight: 800; font-size: 15px; letter-spacing: .12em;
    padding: 8px 14px; border: 2px dashed #c4c8cd; border-radius: 8px;
    background: rgba(255,255,255,.7);
}
.no-picture-lg { min-height: 320px; }
.no-picture-lg span { font-size: 20px; }
.badge-stack { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge-discount {
    background: var(--orange); color: #fff;
    font-weight: 700; font-size: 13px;
    padding: 4px 8px; border-radius: 6px;
}
.badge-hot {
    background: #d7263d; color: #fff;
    font-weight: 700; font-size: 12px;
    padding: 4px 8px; border-radius: 6px;
    box-shadow: 0 1px 4px rgba(215,38,61,.4);
}
.badge-expired {
    position: absolute; top: 10px; right: 10px;
    background: #444; color: #fff; font-size: 11px;
    padding: 3px 7px; border-radius: 6px; text-transform: uppercase;
}
.badge-pending {
    background: #fef3c7; color: #92400e;
    font-weight: 700; font-size: 12px;
    padding: 4px 8px; border-radius: 6px;
}

.affaire-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.affaire-cat { font-size: 12px; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.affaire-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    height: calc(1.35em * 2); /* toujours 2 lignes → alignement des vignettes */
    overflow: hidden;
}
.affaire-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.affaire-title a:hover { color: var(--orange); }

.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 20px; font-weight: 800; color: var(--green); }
.price-old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.merchant { font-size: 13px; color: var(--muted); }
.merchant strong { color: var(--text); }
.merchant-ratings {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: -2px;
}
.merchant-rating {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.merchant-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    max-width: 100%;
}
.merchant-rating-link:hover { color: var(--orange); }
.merchant-rating-stars { color: #00b67a; font-size: 13px; line-height: 1; }
.merchant-rating--scamdoc .merchant-rating-score { color: var(--text); }
.merchant-rating--safe .merchant-rating-score { color: #0f7a3c; }
.merchant-rating--ipqs-ok .merchant-rating-score { color: #0f7a3c; }
.merchant-rating--threat .merchant-rating-score { color: #b42318; }
.merchant-rating-score { color: var(--text); font-variant-numeric: tabular-nums; }
.merchant-rating-source { font-weight: 500; color: var(--muted); }
.detail-shipping .merchant-ratings {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-left: 6px;
    vertical-align: middle;
}
.detail-shipping .merchant-rating {
    display: inline-block;
    margin-top: 0;
}

.affaire-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.affaire-meta { font-size: 12px; color: var(--muted); }
.affaire-meta time { color: inherit; }
.affaire-meta-row { padding-top: 8px; }
.comment-count {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}
.comment-count:hover { color: var(--orange); }

/* Expired affaire */
.affaire-card.is-expired { opacity: .7; }
.affaire-card.is-expired .affaire-thumb img { filter: grayscale(1); }
.affaire-card.is-expired .price-now { color: var(--muted); text-decoration: line-through; }

/* Score voter */
.score {
    display: inline-flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; overflow: hidden;
}
.score form { display: inline-flex; margin: 0; }
.score button {
    border: none; background: transparent; cursor: pointer;
    width: 30px; height: 32px; font-size: 16px; font-weight: 700; color: var(--muted);
}
.score button.up:hover,
.score button.up.active { color: #fff; background: var(--orange); }
.score button.down:hover,
.score button.down.active { color: #fff; background: var(--blue); }
.score-value { font-weight: 800; font-size: 14px; padding: 0 6px; min-width: 54px; text-align: center; }
.score.is-frozen {
    opacity: .55;
    filter: grayscale(.4);
    pointer-events: none;
}
.score.is-frozen button:disabled {
    opacity: 1;
    cursor: default;
}
.score-high { color: var(--orange); }
.score-mid { color: var(--muted); }
.score-low { color: var(--blue); }

/* Pagination */
.pagination-wrap { margin-top: 28px; }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pagination-wrap a,
.pagination-wrap span {
    display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
    background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600;
}
.pagination-wrap a:hover { border-color: var(--orange); color: var(--orange); }
.pagination-wrap [aria-current] {
    background: var(--orange); color: #fff; border-color: var(--orange);
}
.pagination-wrap [aria-disabled="true"] {
    opacity: .45; cursor: default;
}

/* Infinite scroll */
[hidden] { display: none !important; }
.scroll-loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; color: var(--muted); font-weight: 600; }
.scroll-end { text-align: center; padding: 28px; color: var(--muted); font-weight: 600; }
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--orange);
    display: inline-block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#scroll-sentinel { height: 1px; }

/* Page elevator (homepage infinite scroll) */
.scroll-elevator {
    position: fixed;
    left: max(12px, calc((100vw - 1140px) / 2 - 56px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    user-select: none;
}
.scroll-elevator-label {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    color: var(--text);
}
.scroll-elevator-current { color: var(--orange); font-size: 15px; }
.scroll-elevator-sep,
.scroll-elevator-last { color: var(--muted); font-weight: 600; font-size: 12px; }
.scroll-elevator-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.scroll-elevator-track::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--border);
    border-radius: 1px;
    pointer-events: none;
}
.scroll-elevator-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.scroll-elevator-dot:hover {
    border-color: var(--orange);
    transform: scale(1.15);
}
.scroll-elevator-dot.is-active {
    background: var(--orange);
    border-color: var(--orange);
}

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Affaire detail */
.detail {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.detail-grid { display: grid; grid-template-columns: 420px 1fr; gap: 0; }
.detail-img { background: #f0f0f0; }
.detail-img > img,
.detail-img > picture,
.detail-img > picture img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.detail-gallery { display: flex; flex-direction: column; height: 100%; }
.detail-gallery-main { flex: 1; min-height: 320px; background: #f0f0f0; }
.detail-gallery-main img,
.detail-gallery-main picture img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid var(--border);
}
.detail-gallery-thumb {
    appearance: none; border: 2px solid transparent; padding: 0;
    border-radius: 8px; overflow: hidden; cursor: pointer; background: #eee;
    aspect-ratio: 1; height: 64px;
}
.detail-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery-thumb.active,
.detail-gallery-thumb:hover { border-color: var(--orange); }
.detail-info { padding: 24px; }
.detail-info h1 { font-size: 24px; margin: 6px 0 14px; }
.detail-prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.detail-prices .price-now { font-size: 30px; }
.detail-shipping { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.promo-code {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px dashed var(--orange); color: var(--orange-dark);
    background: #fff7f0; padding: 8px 14px; border-radius: 8px;
    font-weight: 700; letter-spacing: .05em; margin-bottom: 16px;
}
.detail-desc { color: #374151; margin: 16px 0; }
.detail-actions { display: flex; gap: 12px; align-items: center; margin: 20px 0 6px; flex-wrap: wrap; }
.detail-affiliate-note {
    margin: 0 0 16px;
    font-size: 11px;
    line-height: 1.3;
    font-style: italic;
    color: #9ca3af;
}
.btn-cta { background: var(--orange); color: #fff; padding: 14px 26px; font-size: 16px; border-radius: 10px; }
.btn-cta:hover { background: var(--orange-dark); }
.detail-meta { color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); padding-top: 14px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.back-link:hover { color: var(--orange); }

.section-title { font-size: 18px; font-weight: 800; margin: 32px 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 24px 0; margin-top: 40px; }
.site-footer p { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--orange); }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hero .page-title, .hero .page-sub { margin-bottom: 4px; }
.hero-cta { padding: 12px 22px; font-size: 15px; white-space: nowrap; }

/* Favorite button */
.fav-form { margin: 0; }
.fav-btn {
    cursor: pointer; border: none; background: rgba(255,255,255,.92);
    width: 38px; height: 38px; border-radius: 50%; font-size: 18px;
    display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.18);
    transition: transform .1s; line-height: 1;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-fav { background: #fff; }
.fav-corner { position: absolute; top: 10px; right: 10px; }
.fav-inline { width: 46px; height: 46px; font-size: 20px; background: var(--bg); border: 1px solid var(--border); box-shadow: none; }

/* Profile tabs */
.profile-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-tabs a { padding: 10px 4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-right: 16px; }
.profile-tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--orange); color: #fff;
    display: grid; place-items: center; font-size: 28px; font-weight: 800;
    object-fit: cover; object-position: center; overflow: hidden; flex-shrink: 0;
}
img.profile-avatar { display: block; }
.profile-avatar.avatar-fallback { display: grid; }
picture:has(> .profile-avatar) {
    display: inline-block; width: 64px; height: 64px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0; line-height: 0;
}
picture:has(> .profile-avatar) > .profile-avatar {
    width: 100%; height: 100%; transform: scale(1.3);
}
.profile-head h1 { margin: 0; font-size: 22px; }
.profile-head .muted { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.profile-stats { margin-left: auto; text-align: center; }
.profile-stats .num { font-size: 26px; font-weight: 800; color: var(--orange); }
.profile-stats .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.owner-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.btn-danger:hover { background: #f8d7da; }
.card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }

/* Header nav / auth */
.header-nav { display: flex; align-items: center; gap: 10px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.user-menu { position: relative; }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--text);
    white-space: nowrap; background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer;
    font-family: inherit;
}
.user-chip:hover, .user-menu.is-open .user-chip {
    border-color: #d1d5db; background: #fff;
}
.user-chip-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--orange); color: #fff;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    object-fit: cover; object-position: center; overflow: hidden; flex-shrink: 0;
}
img.user-chip-avatar { display: block; }
.user-chip-avatar.avatar-fallback { display: grid; }
picture:has(> .user-chip-avatar) {
    display: inline-block; width: 28px; height: 28px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0; line-height: 0;
}
picture:has(> .user-chip-avatar) > .user-chip-avatar {
    width: 100%; height: 100%; transform: scale(1.3);
}
.user-chip-badge { flex-shrink: 0; }
.user-chip-caret { color: var(--muted); font-size: 11px; line-height: 1; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 220px; background: var(--card);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px;
    z-index: 80;
}
.user-dropdown-item {
    display: block; width: 100%; text-align: left;
    padding: 10px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--text);
    background: transparent; border: none; cursor: pointer;
    font-family: inherit; text-decoration: none;
}
.user-dropdown-item:hover { background: var(--bg); color: var(--orange); }
.user-dropdown-sep {
    height: 1px; background: var(--border); margin: 6px 4px;
}
.user-dropdown-logout { color: #c0392b; }
.user-dropdown-logout:hover { background: #fdecea; color: #c0392b; }
.logout-form { margin: 0; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.flash-success { background: #e7f6ec; color: #1c7a41; border: 1px solid #b7e4c7; }

/* Forms / auth */
.auth-wrap { max-width: 440px; margin: 20px auto; }
.card-form {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card-form h1 { font-size: 22px; margin: 0 0 6px; }
.card-form .muted { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
    outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #c0392b; font-size: 13px; margin-top: 4px; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.btn-block { width: 100%; text-align: center; padding: 12px; font-size: 15px; }
.form-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.form-switch a { color: var(--orange); font-weight: 600; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-row input { width: auto; }
.form-page { max-width: 720px; margin: 0 auto; }

/* Wizard / stepper */
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 48px; gap: 8px; }
.stepper > li { flex: 1; min-width: 0; }
.step-indicator {
    width: 100%; display: flex; align-items: center; gap: 8px; justify-content: center;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 10px 8px; border-radius: 8px; background: var(--bg);
    border: 1px solid var(--border); cursor: pointer;
}
.step-indicator:hover { border-color: #ffd2a8; color: var(--orange-dark); }
.step-indicator:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.step-indicator .step-num {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px;
    background: #fff; border: 1px solid var(--border); color: var(--muted);
}
.step-indicator.active { color: var(--orange-dark); background: #fff2e6; border-color: #ffd2a8; }
.step-indicator.active .step-num { background: var(--orange); color: #fff; border-color: var(--orange); }
.step-indicator.done { color: var(--green); }
.step-indicator.done .step-num { background: var(--green); color: #fff; border-color: var(--green); }
.step-indicator.done .step-num::after { content: '✓'; }
.step-indicator.done .step-num { font-size: 0; }
.step-indicator.done .step-num::after { font-size: 13px; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

.image-preview { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.image-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; }

/* Grille photos 3×3 */
.photo-grid-root { margin-bottom: 8px; }
.photo-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.photo-slot {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 2px dashed var(--border);
    transition: border-color .15s, box-shadow .15s, transform .12s;
    user-select: none;
}
.photo-slot.is-empty {
    cursor: pointer;
    display: grid;
    place-items: center;
}
.photo-slot.is-empty:hover {
    border-color: var(--orange);
    background: #fff7f0;
}
.photo-slot.is-filled {
    border-style: solid;
    border-color: var(--border);
    cursor: grab;
    background: #eee;
}
.photo-slot.is-filled:active { cursor: grabbing; }
.photo-slot.is-dragging { opacity: .45; transform: scale(.96); }
.photo-slot.is-drop-target {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,105,0,.18);
}
.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.photo-slot-plus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}
.photo-slot-plus-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #9aa0a6;
}
.photo-slot-plus-label {
    font-size: 12px;
    font-weight: 600;
}
.photo-slot.is-empty:hover .photo-slot-plus-icon,
.photo-slot.is-empty:hover .photo-slot-plus-label { color: var(--orange); }
.photo-slot-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--orange); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px;
    pointer-events: none;
}
.photo-slot-remove {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.7); color: #fff; font-size: 18px; line-height: 1;
    cursor: pointer; display: grid; place-items: center;
    z-index: 2;
}
.photo-slot-remove:hover { background: #d7263d; }

/* Comments */
.comments { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 24px; box-shadow: var(--shadow); }
.comments h2 { font-size: 18px; margin: 0 0 16px; }
.comment { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--border); }
.comment:first-of-type { border-top: none; }
.comment-main { display: flex; gap: 12px; }
.comment-body { flex: 1; min-width: 0; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--orange); color: #fff;
    display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
    object-fit: cover; object-position: center; overflow: hidden; padding: 0;
}
img.avatar { display: block; }
.avatar .avatar, .avatar > img.avatar, .avatar > span.avatar {
    width: 100%; height: 100%; border-radius: 50%;
}
picture:has(> .avatar) {
    display: inline-block; width: 38px; height: 38px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0; line-height: 0;
}
picture:has(> .avatar) > .avatar {
    width: 100%; height: 100%; transform: scale(1.3);
}
.avatar-pic, .avatar-fallback {
    display: grid; place-items: center;
    border-radius: 50%; object-fit: cover; object-position: center; overflow: hidden;
    background: var(--orange); color: #fff; font-weight: 700;
}
img.avatar-pic { display: block; }
.avatar-pic-xs { width: 20px; height: 20px; font-size: 10px; }
.avatar-pic-sm { width: 24px; height: 24px; font-size: 11px; }
.avatar-pic-md { width: 48px; height: 48px; font-size: 18px; font-weight: 700; }
.avatar-pic-lg { width: 72px; height: 72px; font-size: 28px; font-weight: 800; }
picture:has(> .avatar-pic) {
    display: inline-block; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; line-height: 0; vertical-align: middle;
}
picture:has(> .avatar-pic-xs) { width: 20px; height: 20px; }
picture:has(> .avatar-pic-sm) { width: 24px; height: 24px; }
picture:has(> .avatar-pic-md) { width: 48px; height: 48px; }
picture:has(> .avatar-pic-lg) { width: 72px; height: 72px; }
picture:has(> .avatar-pic) > .avatar-pic {
    width: 100%; height: 100%; transform: scale(1.3);
}
.author-inline {
    display: inline-flex; align-items: center; gap: 6px;
    vertical-align: middle;
}
.karma-badge {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 1px 6px; background: var(--card); color: var(--muted);
    font-size: 10px; font-weight: 700; line-height: 1.5;
    white-space: nowrap; vertical-align: middle;
}
.karma-badge-points {
    border-left: 1px solid currentColor; padding-left: 4px;
    font-variant-numeric: tabular-nums;
}
.karma-level-1 { color: #4b6b88; border-color: #c8d6e2; }
.karma-level-2 { color: var(--blue); border-color: #bfd1f4; }
.karma-level-3 { color: #8a5a00; border-color: #e6c36a; background: #fffaf0; }
.karma-level-4 { color: var(--orange-dark); border-color: #ffbb8c; background: #fff7f0; }
.profile-karma { margin: 6px 0 0; }
.affaire-meta-row {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* Avatar uploader (paramètres) */
.avatar-uploader { display: flex; justify-content: flex-start; }
.avatar-drop {
    position: relative;
    width: 160px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 2px dashed var(--border);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    user-select: none;
}
.avatar-drop.is-empty,
.avatar-drop:not(.is-filled) {
    display: grid;
    place-items: center;
}
.avatar-drop:hover {
    border-color: var(--orange);
    background: #fff7f0;
}
.avatar-drop.is-filled {
    border-style: solid;
    border-color: var(--border);
    background: #eee;
}
.avatar-drop.is-filled:hover { border-color: var(--orange); }
.avatar-drop.is-drop-target {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255,105,0,.18);
    background: #fff7f0;
}
.avatar-drop img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transform: scale(1.3); display: block;
    pointer-events: none;
}
.avatar-drop-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: var(--orange); color: #fff;
    font-size: 48px; font-weight: 800;
}
.avatar-drop-plus {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px; color: var(--muted);
}
.avatar-drop-plus-icon {
    font-size: 32px; font-weight: 300; line-height: 1; color: #9aa0a6;
}
.avatar-drop-plus-label { font-size: 12px; font-weight: 600; }
.avatar-drop:hover .avatar-drop-plus-icon,
.avatar-drop:hover .avatar-drop-plus-label { color: var(--orange); }
.avatar-drop-remove {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.7); color: #fff; font-size: 18px; line-height: 1;
    cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.avatar-drop-remove:hover { background: #d7263d; }
.comment-body .comment-author { font-weight: 700; font-size: 14px; }
.comment-body .karma-badge { margin-left: 5px; }
.comment-body .comment-date { color: var(--muted); font-size: 12px; margin-left: 6px; }
.comment-body .comment-edited { color: var(--muted); font-size: 12px; margin-left: 4px; font-style: italic; }
.comment-body p { margin: 4px 0 0; font-size: 14px; }
.comment-menu {
    display: inline-flex; position: relative; vertical-align: middle;
    margin-left: 2px;
}
.comment-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; padding: 0;
    border: none; border-radius: 6px;
    background: transparent; color: var(--muted);
    font-size: 16px; line-height: 1; font-weight: 700;
    cursor: pointer; font-family: inherit;
}
.comment-menu-toggle:hover,
.comment-menu.is-open .comment-menu-toggle {
    color: var(--text); background: var(--bg);
}
.comment-menu-panel {
    position: absolute; right: 0; left: auto; top: calc(100% + 4px);
    min-width: 148px; background: var(--card);
    border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px;
    z-index: 40;
}
.comment-menu-form { margin: 0; }
.comment-menu-item {
    display: block; width: 100%; text-align: left;
    padding: 8px 10px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: var(--text);
    background: transparent; border: none; cursor: pointer;
    font-family: inherit; text-decoration: none;
}
.comment-menu-item:hover { background: var(--bg); color: var(--orange); }
.comment-menu-item-danger:hover { background: #fdecea; color: #c0392b; }
.comment-actions {
    margin-top: 8px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pousse-form { display: inline-flex; margin: 0; }
.pousse-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border); background: var(--bg);
    border-radius: 999px; padding: 4px 10px;
    font-size: 13px; font-weight: 700; color: var(--muted);
    cursor: pointer; font-family: inherit; text-decoration: none;
}
.pousse-btn:hover { border-color: #d1d5db; color: var(--text); }
.pousse-btn.is-poussed {
    background: #fff2e6; border-color: #ffd7b0; color: var(--orange);
}
.pousse-icon { font-size: 15px; line-height: 1; }
.pousse-count { min-width: 1ch; }
.comment-reply-btn {
    border: none; background: transparent; padding: 0;
    font-size: 13px; font-weight: 700; color: var(--muted);
    cursor: pointer; font-family: inherit; text-decoration: none;
}
.comment-reply-btn:hover { color: var(--orange); }
.comment-reply-form {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.comment-reply-form textarea {
    width: 100%; min-height: 70px; resize: vertical;
    padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    margin-bottom: 0;
}
.char-count {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}
.comment-reply-form .char-count { margin: 4px 0 8px; }
.comment-reply-actions { display: flex; gap: 8px; justify-content: flex-end; }
.comment-replies {
    margin-top: 12px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}
.comment-reply {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 7px;
}
.comment-reply:first-child { border-top: none; padding-top: 0; }
.comment-empty { color: var(--muted); font-size: 14px; }
.comment-login { color: var(--muted); font-size: 14px; }
.comment-login a { color: var(--orange); font-weight: 600; }
.comment-deleted { opacity: .92; }
.avatar-deleted {
    background: #d1d5db; color: #6b7280; font-size: 16px;
}
.comment-deleted-label {
    margin: 0; font-size: 14px; font-style: italic; color: var(--muted);
}
.comment-delete-replies {
    list-style: none; margin: 0 0 16px; padding: 0;
    max-height: 220px; overflow: auto;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg);
}
.comment-delete-replies li {
    padding: 10px 12px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 2px;
    font-size: 13px;
}
.comment-delete-replies li:first-child { border-top: none; }
.comment-delete-replies strong { font-size: 13px; }
.comment-delete-replies span { color: var(--muted); }
.report-dialog-actions-split {
    flex-wrap: wrap; justify-content: flex-start;
}

/* Signalement */
.detail-report {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.detail-report-expire { margin: 0; }
.report-trigger,
.comment-delete-btn {
    background: none; border: none; padding: 0;
    font-size: 13px; font-weight: 600; color: var(--muted);
    cursor: pointer; font-family: inherit;
}
.report-trigger:hover,
.comment-delete-btn:hover { color: #c0392b; }
.report-dialog {
    border: none; border-radius: 14px; padding: 0;
    width: min(440px, calc(100vw - 32px));
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.report-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.report-dialog-inner { padding: 22px; }
.report-dialog-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 8px;
}
.report-dialog-head h3 { margin: 0; font-size: 18px; }
.report-dialog-close {
    background: var(--bg); border: none; width: 32px; height: 32px;
    border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted);
}
.report-dialog-close:hover { color: var(--text); background: var(--border); }
.report-dialog-intro { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.report-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* Modération */
.moderation { max-width: 820px; margin: 0 auto; }
.moderation-head { margin-bottom: 18px; }
.moderation-head h1 { margin: 0 0 4px; font-size: 26px; }
.moderation-queue-summary a {
    color: var(--orange);
    font-weight: 600;
}
.moderation-queue-summary a:hover { text-decoration: underline; }
.moderation-wide {
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
    max-width: none;
    padding: 0 16px;
}
@media (min-width: 1180px) {
    .moderation-wide {
        margin-left: 0;
        margin-right: 0;
        width: calc(100vw - 32px);
        max-width: 1480px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
    }
}
.moderation-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.moderation-tabs-secondary { margin-bottom: 14px; }
.moderation-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: var(--card); border: 1px solid var(--border);
    font-size: 14px; font-weight: 700; color: var(--muted);
    box-shadow: var(--shadow);
}
.moderation-tab:hover { color: var(--text); border-color: #d1d5db; }
.moderation-tab.is-active {
    background: #fff7f0; color: var(--orange); border-color: #ffd7bf;
}
.moderation-sort-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: -4px 0 14px;
    font-size: 13px;
}
.moderation-sort-label {
    color: var(--muted);
    font-weight: 600;
}
.moderation-sort-link {
    color: var(--muted);
    font-weight: 700;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.moderation-sort-link:hover { color: var(--text); }
.moderation-sort-link.is-active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.moderation-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: auto;
    margin-bottom: 16px;
}
.moderation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
    font-size: 13px;
}
.moderation-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fb;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    font-weight: 700;
    color: var(--muted);
}
.moderation-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.moderation-table tbody tr:last-child td { border-bottom: none; }
.moderation-table tbody tr.moderation-row:hover {
    background: #fcfcfd;
}
.moderation-table tbody tr.is-resolved { opacity: .78; }
.moderation-td-content {
    min-width: 180px;
    max-width: 320px;
}
.moderation-td-content .moderation-id { display: block; }
.moderation-td-content .moderation-row-title {
    display: block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moderation-td-content .moderation-row-sub {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moderation-td-id {
    position: relative;
    min-width: 200px;
    max-width: 280px;
}
.moderation-row-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.moderation-row-btn:hover .moderation-id,
.moderation-row-btn:hover .moderation-row-title { color: var(--orange); }
.moderation-id {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .02em;
}
.moderation-row-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}
.moderation-row-sub {
    font-size: 12px;
    color: var(--muted);
}
.moderation-row-menu {
    position: fixed;
    z-index: 90;
    min-width: 180px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
    display: grid;
    gap: 2px;
}
.moderation-row-menu-wide { min-width: 240px; }
.moderation-row.is-open { background: #fff7f0; }
.moderation-row-menu-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.moderation-row-menu-item:hover { background: var(--bg); }
.moderation-row-menu-item.is-danger { color: #c0392b; }
.moderation-row-menu-item.is-primary { color: var(--orange); }
.moderation-row-menu form { margin: 0; }
.moderation-menu-approve {
    display: grid;
    gap: 6px;
    padding: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.moderation-menu-approve input[type="text"] {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
}
.moderation-td-flag { text-align: center; white-space: nowrap; }
.moderation-flag {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
}
.moderation-flag.is-on { background: #fef3c7; color: #92400e; }
.moderation-flag.is-ok { background: #e8f8ef; color: #1e7a46; }
.moderation-flag.is-warn { background: #fdecea; color: #c0392b; }
.moderation-flag.is-muted { color: #d1d5db; }
.moderation-td-meta {
    color: var(--muted);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.moderation-td-num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.moderation-td-hint {
    font-weight: 600;
    color: var(--orange);
    font-size: 11px;
}
.moderation-td-hint-danger {
    color: #b42318;
}
.moderation-td-flags {
    max-width: 260px;
    white-space: normal;
}
.moderation-td-flags .moderation-pill {
    margin: 0 4px 4px 0;
    text-transform: none;
    font-size: 11px;
    font-weight: 600;
}
.moderation-td-actions {
    white-space: normal;
    min-width: 200px;
}
.moderation-td-actions .moderation-actions {
    align-items: center;
}
.moderation-td-actions form { margin: 0; }
.moderation-inline-approve {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.moderation-inline-approve input[type="text"],
.moderation-inline-approve input[type="url"],
.moderation-inline-approve input[type="number"] {
    min-height: 32px;
    min-width: 120px;
    max-width: 200px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--card);
}
.moderation-inline-approve input.moderation-rating-url {
    min-width: 180px;
    max-width: 260px;
}
.moderation-inline-approve input.moderation-rating-score {
    min-width: 72px;
    max-width: 88px;
}
.moderation-inline-approve input[type="text"]:focus,
.moderation-inline-approve input[type="url"]:focus,
.moderation-inline-approve input[type="number"]:focus {
    outline: none;
    border-color: var(--orange);
}
.moderation-table-empty {
    padding: 36px 16px !important;
    text-align: center;
    color: var(--muted);
    white-space: normal !important;
}
.moderation-badge, .menu-badge {
    display: inline-grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--orange); color: #fff;
    font-size: 11px; font-weight: 700;
}
.user-dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.moderation-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.moderation-card.is-resolved { opacity: .92; }
.moderation-card-top {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.moderation-type {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    background: var(--bg); color: var(--text); padding: 4px 8px; border-radius: 6px;
}
.moderation-reason {
    font-size: 13px; font-weight: 600; color: #9a3412;
    background: #fff7ed; padding: 4px 8px; border-radius: 6px;
}
.moderation-date { margin-left: auto; font-size: 12px; color: var(--muted); }
.moderation-meta { font-size: 14px; margin-bottom: 12px; }
.moderation-details {
    margin: 8px 0 0; color: var(--muted); font-size: 14px; font-style: italic;
}
.moderation-content {
    background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.moderation-title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.moderation-quote { margin: 6px 0 0; font-size: 14px; color: var(--text); }
.moderation-link {
    display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--orange);
}
.moderation-pill {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 2px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle;
}
.moderation-pill-hidden { background: #fdecea; color: #c0392b; }
.moderation-pill-approved { background: #e8f8ef; color: #1e7a46; }
.moderation-pill-pending { background: #fef3c7; color: #92400e; }
.moderation-pill-mod { background: #eff6ff; color: #1d4ed8; }
.moderation-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.moderation-approve-form {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px;
}
.moderation-approve-form .form-group label { font-size: 12px; }
.moderation-approve-form input[type="text"] {
    min-height: 36px; padding: 6px 10px; font-size: 14px;
}
.moderation-resolved {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 13px; color: var(--muted);
}
.moderation-restore { margin: 0; }
.moderation-empty {
    background: var(--card); border: 1px dashed var(--border);
    border-radius: var(--radius); padding: 36px; text-align: center; color: var(--muted);
}
.moderation-search {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 14px;
}
.moderation-search input[type="search"] {
    flex: 1; min-width: 180px; padding: 9px 12px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--card);
    font-size: 14px;
}
.moderation-search input[type="search"]:focus { outline: none; border-color: var(--orange); }
.moderation-user-row {
    display: flex; align-items: center; gap: 14px;
}
.moderation-user-info { flex: 1; min-width: 0; }
.moderation-user-meta { margin: 2px 0 0; font-size: 13px; }
.moderation-user-hero { margin-bottom: 14px; }
.moderation-back { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.moderation-back a { color: var(--muted); }
.moderation-back a:hover { color: var(--orange); }
.moderation-section-title { margin: 22px 0 12px; font-size: 16px; }
.moderation-form-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.moderation-sanction-form + .moderation-sep,
.moderation-sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.moderation-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin: 0 0 12px; cursor: pointer;
}
.moderation-warn { color: #9a3412; font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.moderation-reg-signals { font-size: 12px; margin: 4px 0 0; }
.moderation-reg-signals code { font-size: 12px; }
.moderation-risk-reasons { margin: 6px 0 0; padding-left: 1.1rem; font-size: 12px; color: #9a3412; display: grid; gap: 2px; }
.moderation-score-summary { margin-top: 8px; }
.moderation-score-details {
    margin-top: 8px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
    font-size: 13px;
}
.moderation-score-details summary { cursor: pointer; font-weight: 700; }
.moderation-score-details .moderation-risk-reasons { color: var(--text); }
.moderation-linked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.moderation-linked-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.moderation-tabs-secondary { margin-top: -8px; }
.moderation-url { font-size: 12px; word-break: break-all; margin: 6px 0 0; }
.moderation-thumbs {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.moderation-thumbs img {
    width: 72px; height: 72px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Honeypot : hors écran, pas display:none (détecté par certains bots) */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.flash-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* Pages légales */
.legal-page { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.legal-head { margin-bottom: 28px; }
.legal-head h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.legal-section { margin-bottom: 24px; }
.legal-section h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.legal-section p, .legal-section li { color: var(--text); line-height: 1.6; font-size: 15px; }
.legal-section ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; }
.legal-section a { color: var(--orange); }

/* Layout helpers (remplacent les style="" inline — CSP sans unsafe-inline) */
.u-m-0 { margin: 0; }
.u-mt-0 { margin-top: 0; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-05 { margin-top: .5rem; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-20 { margin-bottom: 20px; }
.u-form-inline-field { margin: 0; min-width: 180px; }
.badge-inline {
    position: static;
    display: inline-block;
    margin-left: 6px;
}
.badge-inline-static { position: static; }

/* Responsive */
@media (max-width: 900px) {
    .cat-list { justify-content: flex-start; }
    .affaire-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .btn-post { display: none; }
    .scroll-elevator { display: none; }
}
@media (max-width: 560px) {
    .affaire-grid { grid-template-columns: 1fr; }
}
