.site-home {
    background:
        radial-gradient(circle at top left, rgba(10, 163, 106, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(10, 163, 106, 0.05), transparent 25%),
        #f7faf8;
}

.home-page {
    padding: 1.5rem 0 2.5rem;
}

.home-hero {
    margin-bottom: 1.5rem;
}

.home-hero-card {
    border-radius: 24px;
    border: 1px solid rgba(10, 163, 106, 0.10);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.home-hero-content {
    padding: 2rem;
}

.home-kicker {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(10, 163, 106, 0.10);
    color: #0a7d54;
    font-weight: 700;
    font-size: 0.92rem;
}

.home-hero h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.home-hero-text {
    max-width: 60ch;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4d645a;
    margin-bottom: 1.2rem;
}

.home-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.home-badges span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e2eee8;
    background: #cbbafabe;
    color: #355246;
    font-size: 0.93rem;
}

/* Recherche home */
.home-search {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.home-search-wrap {
    position: relative;
    flex: unset;
    margin-bottom: 0;
}

.home-search .input {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid #d8e7de;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.home-search .btn {
    min-height: 54px;
    border-radius: 14px;
    padding: 0 1.1rem;
}

.home-search-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.home-search-scope {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    font-size: 0.9rem;
    color: #4c5b64;
}

.home-search-scope label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.home-search-scope input[type="radio"] {
    accent-color: #2e6f53;
}

.home-search-actions {
    display: flex;
    gap: 0.5rem;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #dce8e1;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.search-suggestions.hidden {
    display: none;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.home-main,
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-sidebar {
    position: sticky;
    top: 90px;
}

.home-section,
.sidebar-block {
    display: block;
}

.home-card {
    border-radius: 22px;
    border: 1px solid rgba(10, 163, 106, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 1.35rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

.section-title {
    margin-bottom: 1rem;
}

.section-title h2 {
    margin: 0 0 0.35rem;
}

.section-title p {
    margin: 0;
    color: #6c7f75;
}

.home-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mini-card {
    height: 100%;
}

.mini-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
}

.mini-card-title a,
.topic-title a,
.sidebar-link {
    color: inherit;
    text-decoration: none;
}

.mini-card-title a:hover,
.topic-title a:hover,
.sidebar-link:hover {
    color: var(--brand);
}

.mini-card-text {
    margin: 0;
    color: #687b71;
    line-height: 1.55;
}

.sidebar-title {
    margin-bottom: 1rem;
}

.sidebar-title h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.sidebar-title p {
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.stat-box {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
    border: 1px solid #e2eee7;
    border-radius: 18px;
    padding: 0.95rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.stat-box strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.75rem;
    line-height: 1;
    color: #123d2d;
    font-variant-numeric: tabular-nums;
}

.home-notice {
    margin-top: 1rem;
    padding: 0.95rem;
    border-radius: 16px;
    background: rgba(10, 163, 106, 0.08);
    border: 1px solid rgba(10, 163, 106, 0.12);
    color: #23463a;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid #e7efea;
    border-radius: 16px;
    background: #fbfdfc;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(10, 163, 106, 0.18);
}

.quick-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.quick-content {
    display: flex;
    flex-direction: column;
}

.quick-content small {
    margin-top: 0.12rem;
    color: #6d7f76;
}

.community-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.community-card h3 {
    margin-top: 0;
}

.community-card .btn {
    margin-top: 0.6rem;
    align-self: flex-start;
}

.clean-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clean-list li + li {
    border-top: 1px solid #edf2ef;
    margin-top: 1rem;
    padding-top: 1rem;
}

.compact-list li + li {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
}

.topic-item {
    display: block;
}

.topic-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.topic-meta {
    color: #687b71;
    font-size: 0.94rem;
    line-height: 1.5;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.member-rank {
    font-size: 1.2rem;
    line-height: 1;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-info small,
.small-muted {
    color: #6d7f76;
    margin-top: 0.12rem;
}

/* Discussions actives améliorées */
.discussions-card {
    padding: 1.25rem;
}

.featured-topic {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.4rem;
}

.featured-topic-header {
    margin-bottom: 1rem;
}

.featured-topic-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(54, 130, 94, 0.12);
    color: #2e6f53;
}

.featured-topic-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.featured-topic-title a {
    text-decoration: none;
}

.featured-topic-title a:hover {
    text-decoration: underline;
}

.featured-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #5a6872;
}

.featured-topic-content {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #223038;
    white-space: normal;
}

.featured-topic-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-start;
}

.other-topics-wrap {
    margin-top: 1rem;
}

.other-topics-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4c5b64;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.enhanced-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
}

.enhanced-topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enhanced-topic-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.topic-item-main {
    flex: 1;
    min-width: 0;
}

.small-topic-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.small-topic-title a {
    text-decoration: none;
}

.small-topic-title a:hover {
    text-decoration: underline;
}

.enhanced-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.9rem;
    color: #66757f;
}

.topic-item-action {
    flex-shrink: 0;
}

.topic-read-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: #2e6f53;
}

.topic-read-link:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .home-grid-2,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-content {
        padding: 1.3rem;
    }

    .home-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-search-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-search-actions .btn,
    .home-search-actions a.btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .featured-topic {
        padding: 1rem;
    }

    .featured-topic-title {
        font-size: 1.25rem;
    }

    .enhanced-topic-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-item-action {
        margin-top: 0.4rem;
    }
}
/* Page recherche */
.search-page-header {
    margin-bottom: 1.5rem;
}

.search-page-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.search-page-top {
    margin-bottom: 1rem;
}

.search-page-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.search-page-subtitle {
    margin: 0;
    color: #5d6f67;
    line-height: 1.55;
}

.search-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(10, 163, 106, 0.08);
    border: 1px solid rgba(10, 163, 106, 0.12);
    color: #1f5f46;
    font-weight: 700;
    font-size: 0.95rem;
}

.search-results-card {
    padding: 1.4rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-card {
    padding: 1.1rem 1.1rem 1rem;
    border: 1px solid #e8efeb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
    border-color: rgba(10, 163, 106, 0.16);
}

.search-result-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.search-result-badge-wiki {
    background: rgba(10, 163, 106, 0.10);
    color: #0a7d54;
}

.search-result-badge-forum {
    background: rgba(72, 107, 255, 0.10);
    color: #3b57b3;
}

.search-result-meta {
    font-size: 0.9rem;
    color: #687972;
}

.search-result-title {
    margin: 0 0 0.35rem;
    font-size: 1.18rem;
    line-height: 1.35;
}

.search-result-title a {
    color: #183a2c;
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.search-result-url {
    font-size: 0.9rem;
    color: #2e6f53;
    margin-bottom: 0.55rem;
    word-break: break-word;
}

.search-result-snippet {
    margin: 0;
    color: #556760;
    line-height: 1.7;
}

.search-result-actions {
    margin-top: 0.85rem;
}

.search-result-link {
    display: inline-block;
    font-weight: 700;
    color: #2e6f53;
    text-decoration: none;
}

.search-result-link:hover {
    text-decoration: underline;
}

.search-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.search-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-empty-state h3 {
    margin: 0 0 0.35rem;
}

@media (max-width: 760px) {
    .search-results-card {
        padding: 1rem;
    }

    .search-result-card {
        padding: 1rem;
    }

    .search-result-title {
        font-size: 1.05rem;
    }

    .search-results-header {
        align-items: flex-start;
    }
}
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.message-form textarea.input {
    min-height: 220px;
    resize: vertical;
    padding: 0.9rem 1rem;
}

.message-body-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e7efea;
    border-radius: 16px;
    background: #fbfdfc;
    line-height: 1.75;
    color: #31423b;
    white-space: normal;
    word-break: break-word;
}
/* Préférences */
.preferences-hero {
    margin-bottom: 1.5rem;
}

.preferences-hero-card {
    border-radius: 24px;
    border: 1px solid rgba(10, 163, 106, 0.10);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.preferences-hero-content {
    padding: 1.8rem 2rem;
}

.preferences-kicker {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 163, 106, 0.10);
    color: #0a7d54;
    font-weight: 700;
    font-size: 0.85rem;
}

.preferences-hero-content h1 {
    margin: 0.7rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.preferences-hero-text {
    margin: 0;
    max-width: 68ch;
    color: #546760;
    line-height: 1.65;
}

.preferences-main-card {
    padding: 1.5rem;
}

.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preferences-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preferences-section + .preferences-section {
    padding-top: 1.5rem;
    border-top: 1px solid #edf2ef;
}

.preferences-section-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.preferences-section-header p {
    margin: 0;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.preferences-choice-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #e7efea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.preferences-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: rgba(10, 163, 106, 0.16);
}

.preferences-choice-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.preferences-choice-head input[type="radio"] {
    accent-color: #2e6f53;
}

.preferences-choice-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.theme-choice-card .preferences-choice-head {
    justify-content: flex-start;
}

.theme-preview-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
}

.theme-description {
    margin: 0;
}

.theme-extra-note {
    font-size: 0.92rem;
}

.preferences-toggle-card {
    display: block;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #e7efea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.preferences-toggle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: rgba(10, 163, 106, 0.16);
}

.preferences-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.preferences-toggle-main input[type="checkbox"] {
    margin-top: 0.15rem;
    accent-color: #2e6f53;
}

.preference-help {
    margin: 0.35rem 0 0;
}

.preferences-actions {
    padding-top: 0.25rem;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .preferences-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .preferences-hero-content {
        padding: 1.3rem;
    }

    .preferences-main-card {
        padding: 1rem;
    }
}
.message-recipient-group {
    position: relative;
}

.member-suggestion-item {
    width: 100%;
    display: block;
    padding: 0.8rem 0.95rem;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #24343a;
    transition: background 0.15s ease;
}

.member-suggestion-item:hover {
    background: #f4fbf7;
}

.member-suggestion-item + .member-suggestion-item {
    border-top: 1px solid #edf2ef;
}
/* Inbox / sent moderne */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-list-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e7efea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.message-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
    border-color: rgba(10, 163, 106, 0.16);
}

.message-list-card-unread {
    border-color: rgba(72, 107, 255, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.message-list-main {
    flex: 1;
    min-width: 0;
}

.message-list-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.message-list-left {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
    flex: 1;
}

.message-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.message-status-dot.is-unread {
    background: #3b57b3;
    box-shadow: 0 0 0 4px rgba(72, 107, 255, 0.12);
}

.message-status-dot.is-read {
    background: #9bb4a7;
}

.message-list-from {
    font-size: 0.95rem;
    color: #556760;
    margin-bottom: 0.2rem;
}

.message-list-subject {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.message-list-subject a {
    color: #183a2c;
    text-decoration: none;
}

.message-list-subject a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.message-list-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.message-list-date {
    font-size: 0.86rem;
    color: #6b7b74;
    white-space: nowrap;
}

.message-list-snippet {
    margin: 0.8rem 0 0;
    color: #556760;
    line-height: 1.7;
}

.message-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    flex-shrink: 0;
}

.btn-message-action {
    min-width: 110px;
    justify-content: center;
}

@media (max-width: 860px) {
    .message-list-card {
        flex-direction: column;
    }

    .message-list-top {
        flex-direction: column;
    }

    .message-list-right {
        align-items: flex-start;
    }

    .message-list-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-message-action {
        min-width: unset;
    }
}