/* ============================================================
   Rencontre Lille ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â sglass Design Theme
   Color palette: #1d1d1d (dark), #bcc4f2 (lavender), #eb19b7 (pink),
                  #42b8e4 (blue), #d7cff4 (light lavender)
   Font: Poppins
   ============================================================ */

/* === Reset & Base === */
* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: #0c0c0c;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}




a, a:hover, a:focus { text-decoration: none; }
a:hover, a:focus { color: initial; }

.layout_padding { padding: 75px 0; }
.layout_padding-top { padding-top: 75px; }
.layout_padding-bottom { padding-bottom: 75px; }

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #29292a;
}

/* === Heading Style (sglass) === */
.heading_container { display: flex; }
.heading_container h2 {
    font-weight: bold;
    color: #29292a;
    font-size: 2.5rem;
}
.heading_container h2 span { color: #bcc4f2; }

/* === Header / Navbar (sglass style) === */
#header {
      background-color: #1d1d1d;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    flex-wrap: wrap;
    gap: 0.5em;
}

#header a.title {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 2em;
}

#header a.title img {
    height: 37px;
    width: auto;
    filter: brightness(1.2);
}

#header a.title span {
    font-size: 24px;
    font-weight: 700;
    color: #d7cff4;
    text-transform: uppercase;
}

#header nav {
    flex: 1;
}

#header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

#header nav ul li a {
    padding: 10px 18px;
    color: #7c7b7b;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
    white-space: nowrap;
}

#header nav ul li a:hover,
#header nav ul li a.active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1em;
}

#header .online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: rgba(188, 196, 242, 0.2);
    color: #bcc4f2;
    padding: 0.35em 0.8em;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eb19b7;
}

.btn-profile:hover .header-avatar { border-color: #d7cff4; }

.btn-logout {
    color: #eb19b7;
    font-size: 1.1em;
    text-decoration: none;
    transition: transform 0.2s;
}
.btn-logout:hover { transform: rotate(-15deg); }

.header-actions .button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.header-actions .button.small {
    font-size: 0.75em;
    padding: 6px 14px;
}

.header-actions .button:not(.primary) {
    background: transparent;
    color: #7c7b7b;
    border: 1px solid #7c7b7b;
}
.header-actions .button:not(.primary):hover {
    color: #fff;
    border-color: #fff;
}

.header-actions .button.primary {
    background-color: #eb19b7;
    color: #ffffff;
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1d1d1d;
    color: #d7cff4;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    order: 1;
    transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #2a2a2a;
    border-color: #eb19b7;
}

.menu-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle-box span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile styles (when JS adds .js class) */
@media (max-width: 860px) {
    .js .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .js #header nav {
        display: none;
        flex-basis: 100%;
        order: 2;
        width: 100%;
        box-sizing: border-box;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border-top: 1px solid #333;
        margin-top: 0.3em;
        padding-top: 0.6em;
    }

    .js #header nav.open {
        display: block;
    }

    #header nav ul {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.25em;
        justify-content: flex-start;
        width: 100%;
    }

    #header nav a {
        font-size: 1em;
        padding: 0.7em 0.9em;
    }

    .header-actions {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5em;
        justify-content: flex-end;
        margin-left: auto;
        order: 3;
    }

    .header-actions .online-badge {
        display: none;
    }

    .header-actions .button {
        font-size: 0.72em;
        padding: 1.45em 0.7em;
    }

    .header-avatar {
        height: 30px;
        width: 30px;
    }
}
.header-actions .button.primary:hover {
    background-color: transparent;
    border-color: #eb19b7;
    color: #eb19b7;
}

/* Header inbox badge */
.header-inbox-badge {
    background: #eb19b7;
    color: #fff;
    border-radius: 50%;
    padding: 0.1em 0.5em;
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 0.3em;
    vertical-align: middle;
}

.admin-link {
    color: #eb19b7 !important;
    font-weight: 600;
}

/* === Hero Section === */
#wrapper { }

section.wrapper {
    padding: 75px 0;
}

section.wrapper .inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 25px;
}

section.wrapper .inner-heading {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 25px 1em;
}

/* Style 1: white bg */
.wrapper.style1 {background: #ffffff;}

/* Style 2: lavender bg (sglass accent) */
.wrapper.style2 {/* background: #bcc4f2; */}
.wrapper.style2, .wrapper.style2 p, .wrapper.style2 h2 {color: #29292a;}
.wrapper.style2 .inner-heading p { color: #3a3a3a; }

/* Style 3: light gray */
.wrapper.style3 { background: #f5f5f5; }

/* Style 1 alt: dark bg (footer) */
.wrapper.style1-alt { background: #1d1d1d; color: rgba(255,255,255,0.7); }
.wrapper.style1-alt a { color: rgba(255,255,255,0.7); }
.wrapper.style1-alt a:hover { color: #fff; }

/* Hero / Accueil */
#accueil {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    background-image: url('/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 160px 0 75px;
}

#accueil .inner { position: relative; z-index: 2; }

#accueil .tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(29, 29, 29, 0.7);
    color: #d7cff4;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1em;
}

#accueil h1 {
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

#accueil p {
    font-size: 1em;
    color: #ffffff;
    max-width: 700px;
    line-height: 1.7;
}

/* Actions / Buttons (sglass style) */
.actions {
    list-style: none;
    display: flex;
    gap: 0.8em;
    padding: 0;
    margin-top: 1.5em;
    flex-wrap: wrap;
}

.button, button.button, a.button {
    display: inline-block;
    padding: 12px 35px;
    background-color: #1d1d1d;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.button:hover, a.button:hover {
    background-color: transparent;
    border-color: #1d1d1d;
    color: #1d1d1d;
}

.button.primary, a.button.primary {
    background-color: #eb19b7;
    color: #ffffff;
}
.button.primary:hover, a.button.primary:hover {
    background-color: transparent;
    border-color: #eb19b7;
    color: #eb19b7;
}

.button.small { font-size: 0.75em; padding: 8px 18px; }

.button.scrolly { /* same as .button */ }

/* Stats */
.stats {
    display: flex;
    gap: 2.5em;
    margin-top: 2.5em;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.85em;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === ThÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â©matiques Section === */
#thematiques { padding-top: 75px; padding-bottom: 75px; }

#thematiques .inner-heading h2 {
    color: #29292a;
    font-size: 2rem;
}

.theme-tag {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 0.8em;
}

/* Theme cards (keep existing card grid) */
:root {
    --background-dark: #1b1f22;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;
    --text-light: rgba(255,255,255,0.75);
    --text-lighter: rgba(255,255,255,0.9);
    --width-container: 1170px;
}

.hero-section {
    align-items: center;
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-l);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: var(--spacing-l);
    grid-row-gap: var(--spacing-l);
    max-width: var(--width-container);
    width: 100%;
}

@media(min-width: 540px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 960px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card { list-style: none; position: relative; }
.card:before { content: ''; display: block; padding-bottom: 150%; width: 100%; }

.card__background {
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    bottom: 0; left: 0; position: absolute; right: 0; top: 0;
    filter: brightness(0.75) saturate(1.2) contrast(0.85);
    transform-origin: center;
    transition: filter 200ms linear, transform 200ms linear;
}

.card:hover .card__background { transform: scale(1.05) translateZ(0); }

.card__content { left: 0; padding: var(--spacing-l); position: absolute; top: 0; }
.card__heading { color: var(--text-lighter); font-size: 1rem; text-shadow: 2px 2px 20px rgba(0,0,0,0.2); line-height: 1.2; }

.card__meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: var(--spacing-m); padding-top: var(--spacing-s);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.event-count-badge {
    color: #fff; font-size: 0.8rem; font-weight: 600;
    padding: 0.3em 0.5em; border-radius: 4px;
}

.card__action {
    color: #fff; font-size: 0.8rem; font-weight: 700;
    padding: 0.4em 0.8em; border-radius: 4px;
    background: rgba(235, 25, 183, 0.8);
    opacity: 0; transform: translateY(10px);
    transition: all 200ms ease; pointer-events: none;
}
.card:hover .card__action { opacity: 1; transform: translateY(0); }

/* === Events Section === */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    background: #1d1d1d;
    color: #fff;
    padding: 1em;
}

.event-day { font-size: 1.8em; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.85em; text-transform: uppercase; opacity: 0.8; color: #bcc4f2; }

.event-info { padding: 1em 1.2em; flex: 1; }

.event-info .event-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.event-info h3 { font-size: 1.05em; margin-bottom: 0.5em; color: #222; }
.event-meta { font-size: 0.85em; color: #666; margin-bottom: 0.2em; }
.event-meta i { margin-right: 0.3em; width: 14px; }
.event-description { color: #555; font-size: 0.9em; line-height: 1.5; margin: 0.4em 0 0.7em; white-space: pre-wrap; }

.event-actions { display: flex; gap: 0.5em; margin-top: 0.8em; }

.btn-join {
    background: #eb19b7;
    color: #fff;
    border: 1px solid transparent;
    padding: 0.5em 1.2em;
    font-size: 0.85em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}
.btn-join:hover { background: transparent; border-color: #eb19b7; color: #eb19b7; }
.btn-join.joined { background: #4caf50; }
.btn-join.joined:hover { background: transparent; border-color: #4caf50; color: #4caf50; }

.btn-fav {
    background: none;
    border: 2px solid #e0e0e0;
    width: 34px; height: 34px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    color: #999;
}
.btn-fav:hover { border-color: #eb19b7; color: #eb19b7; }
.btn-fav.active { color: #eb19b7; border-color: #eb19b7; }

.event-empty { color: #666; grid-column: 1 / -1; padding: 2em; text-align: center; }

/* === Community Section === */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.community-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.2em;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.panel-header h3 { font-size: 1em; display: flex; align-items: center; gap: 0.4em; }

.panel-count {
    background: #eb19b7;
    color: #fff;
    border-radius: 4px;
    padding: 0.15em 0.6em;
    font-size: 0.8em;
    font-weight: 600;
}

.panel-body { padding: 0.5em 0; max-height: 350px; overflow-y: auto; }
.panel-footer { padding: 0.8em 1.2em; border-top: 1px solid #eee; }

.view-all {
    color: #eb19b7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.view-all:hover { color: #1d1d1d; }

.panel-empty { padding: 1.5em; text-align: center; color: #999; }
.panel-empty a { color: #eb19b7; text-decoration: none; }

/* Online users */
.user-online, .user-friend, .user-neighbor {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1.2em;
    transition: background 0.2s;
}
.user-online:hover { background: #f5f0f8; }
.user-friend:hover { background: #f5f0f8; }
.user-neighbor:hover { background: #f0f2fa; }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

.user-info { flex: 1; display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 0.9em; color: #333; }
.user-status { font-size: 0.8em; color: #4caf50; }
.user-meta { font-size: 0.8em; color: #999; }

.friend-badge { width: 10px; height: 10px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.friend-badge.online { background: #4caf50; box-shadow: 0 0 6px rgba(76,175,80,0.5); }

.neighbor-icon {
    width: 36px; height: 36px;
    background: #e8eaf6; color: #bcc4f2;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.neighbor-badge {
    background: #bcc4f2; color: #1d1d1d;
    border-radius: 4px; padding: 0.1em 0.5em;
    font-size: 0.75em; font-weight: 600; flex-shrink: 0;
}

.btn-contact {
    background: #eb19b7;
    color: #fff;
    border: 1px solid transparent;
    font-size: 0.8em;
    padding: 0.3em 0.8em;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-family: 'Poppins', sans-serif;
}
.btn-contact:hover { background: transparent; border-color: #eb19b7; color: #eb19b7; }

/* === FAQ Section === */
.faq-list {
    display: grid;
    gap: 1em;
    margin-top: 1.5em;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 1.2em 1.5em;
}
.faq-item h3 { color: #222; font-size: 1.05em; margin: 0 0 0.4em; }
.faq-item p { color: #666; margin: 0; }

/* === Chat Section === */
.chat-container {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 1.5em;
    height: 500px;
    background: #fff;
}

.chat-sidebar {
    width: 280px; min-width: 280px;
    border-right: 1px solid #eee;
    display: flex; flex-direction: column;
    background: #fafafa;
}

.chat-search {
    padding: 0.8em;
    position: relative;
    border-bottom: 1px solid #eee;
}

.chat-search input {
    width: 100%; padding: 0.6em 0.8em 0.6em 2.2em;
    border: 2px solid #e0e0e0; border-radius: 0;
    font-size: 0.9em; background: #fff;
    font-family: 'Poppins', sans-serif;
}
.chat-search input:focus { border-color: #eb19b7; outline: none; }

.chat-search i {
    position: absolute; left: 1.4em; top: 50%;
    transform: translateY(-50%); color: #999;
}

.chat-contacts { flex: 1; overflow-y: auto; }

.chat-contact {
    display: flex; align-items: center; gap: 0.7em;
    padding: 0.8em 1em; cursor: pointer;
    transition: background 0.2s; position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.chat-contact:hover { background: #f5f0f8; }
.chat-contact.active { background: #ede7f6; }
.chat-contact.online-member { border-left: 3px solid #4caf50; }

.contact-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}

.contact-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.contact-name { font-weight: 600; font-size: 0.9em; color: #333; }
.contact-last-msg { font-size: 0.8em; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-time { font-size: 0.75em; color: #aaa; flex-shrink: 0; }

.contact-unread {
    background: #eb19b7; color: #fff;
    border-radius: 50%; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7em; font-weight: 700; flex-shrink: 0;
}

.chat-main { flex: 1; display: flex; flex-direction: column; }

.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8em 1.2em; border-bottom: 1px solid #eee; background: #fff;
}

.chat-header-info { display: flex; align-items: center; gap: 0.8em; }
.chat-header-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-header-info h3 { font-size: 1em; }
.chat-header-status { font-size: 0.8em; color: #4caf50; display: flex; align-items: center; gap: 0.3em; }

.status-dot { width: 7px; height: 7px; background: #4caf50; border-radius: 50%; display: inline-block; }

.chat-header-actions { display: flex; gap: 0.5em; }
.chat-header-actions button {
    background: none; border: none; color: #666;
    cursor: pointer; font-size: 1.1em; padding: 0.3em;
    transition: all 0.2s;
}
.chat-header-actions button:hover { background: #f0f0f0; color: #eb19b7; }

.chat-empty { color: #999; text-align: center; padding: 2em 1em; font-size: 0.9em; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 1em 1.2em;
    background: #f5f5f5; display: flex; flex-direction: column; gap: 0.8em;
}

.message { display: flex; max-width: 70%; }
.message.received { align-self: flex-start; }
.message.sent { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.message-content { display: flex; flex-direction: column; }
.message.sent .message-content { align-items: flex-end; }
.message-name { font-size: 0.8em; font-weight: 600; color: #eb19b7; margin-bottom: 0.2em; }
.message-bubble {
    background: #fff; padding: 0.7em 1em; border-radius: 15px;
    font-size: 0.9em; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.message.sent .message-bubble { background: #eb19b7; color: #fff; }
.message-time { font-size: 0.7em; color: #aaa; margin-top: 0.2em; }

.chat-input-area {
    display: flex; align-items: center; gap: 0.5em;
    padding: 0.8em 1.2em; border-top: 1px solid #eee; background: #fff;
}

.chat-input-icon {
    background: none; border: none; color: #999;
    cursor: pointer; font-size: 1.1em; padding: 0.3em;
}

.chat-input-area input {
    flex: 1; padding: 0.7em 1em;
    border: 2px solid #e0e0e0; border-radius: 0;
    font-size: 0.9em; font-family: 'Poppins', sans-serif;
}
.chat-input-area input:focus { border-color: #eb19b7; outline: none; }

.chat-send {
    background: #eb19b7; color: #fff; border: none;
    width: 40px; height: 40px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.chat-send:hover { background: #1d1d1d; }

.chat-login-prompt {
    text-align: center; padding: 3em; color: #666;
}
.chat-login-prompt i { font-size: 3em; color: #bcc4f2; margin-bottom: 1em; }
.chat-login-prompt p { font-size: 1.1em; margin-bottom: 1.5em; }

/* === Footer (sglass style) === */
#footer {
    background-color: #141414;
    color: rgba(255,255,255,0.6);
}

#footer .inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 30px 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

#footer .menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

#footer .menu li {
    font-size: 0.85em;
}

#footer .menu li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

#footer .menu li a:hover { color: #ffffff; }

/* Footer bar (sglass lavender) */
.footer_bar {
    /* background-color: #bcc4f2; */
    padding: 15px;
    text-align: center;
}
.footer_bar p { color: #000; margin: 0; font-size: 0.85em; }

#footer .last-updated,
.auth-footer .last-updated {
    margin-top: 0.8em;
    font-size: 0.75em;
    color: #888;
    text-align: center;
}

.hero-updated {
    margin-top: 1.2em;
    font-size: 0.85em;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* === Auth Pages (sglass restyle) === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1d1d1d;
    padding: 2em;
}

.auth-card {
    background: #fff;
    border-radius: 15px;
    padding: 3em 2.5em;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header { text-align: center; margin-bottom: 2em; }
.auth-header h1 { font-size: 1.8em; color: #eb19b7; margin-bottom: 0.3em; font-family: 'Poppins', sans-serif; }
.auth-header h1 i { margin-right: 0.2em; }
.auth-header p { color: #666; font-size: 0.95em; }

.breadcrumb {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85em;
    justify-content: center;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    color: #666;
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5em;
    color: #ccc;
}
.breadcrumb a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] {
    color: #333;
    font-weight: 600;
}

.auth-intro {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}
.auth-intro h2 {
    font-size: 1.2em;
    color: #222;
    margin-bottom: 0.8em;
    text-align: center;
}
.auth-intro p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8em;
    text-align: center;
}

.auth-form-section {
    margin-bottom: 2em;
}
.auth-form-section h2 {
    font-size: 1.2em;
    color: #222;
    margin-bottom: 1em;
    text-align: center;
}

.form-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}
.form-fieldset legend {
    font-weight: 600;
    color: #333;
    padding: 0 0.5em;
    font-size: 0.95em;
}

/* === Expertise sections === */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.expertise-card {
    background: #fff;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-bottom: 1em;
}

.expertise-content h3 {
    font-size: 1.1em;
    color: #222;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.expertise-content p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

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

/* === Profile === */
    background: #ffebee; color: #c62828;
    padding: 0.8em 1em; border-radius: 0;
    margin-bottom: 1.5em; font-size: 0.9em;
    border-left: 4px solid #c62828;
}

.auth-form .form-group { margin-bottom: 1.2em; }
.auth-form .form-group label { display: block; margin-bottom: 0.4em; font-weight: 600; color: #333; font-size: 0.9em; }
.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%; padding: 0.75em 1em;
    border: none; border-bottom: 2px solid #e0e0e0;
    font-size: 1em; transition: border-color 0.3s;
    font-family: 'Poppins', sans-serif;
    background: transparent;
}
.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus { border-color: #eb19b7; outline: none; }

.auth-submit {
    width: 100%; padding: 0.85em;
    font-size: 1.05em; margin-top: 0.5em;
}

.auth-footer { text-align: center; margin-top: 1.5em; color: #666; }
.auth-footer a { color: #eb19b7; font-weight: 600; text-decoration: none; }

.form-row { display: flex; gap: 1em; }
.form-row .form-group { flex: 1; }

/* === Profile === */
.profile-header {
    display: flex; gap: 2em; align-items: center;
    flex-wrap: wrap; padding: 1em 0;
}

.profile-avatar { position: relative; flex-shrink: 0; }

.profile-avatar img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid #eb19b7;
}

.online-indicator {
    position: absolute; bottom: 8px; right: 8px;
    width: 18px; height: 18px;
    background: #4caf50; border-radius: 50%; border: 3px solid #fff;
}

.avatar-uploader { display: flex; align-items: center; gap: 1em; margin-top: 0.5em; }

.avatar-preview {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 3px solid #e0e0e0;
}

.avatar-upload-label {
    display: inline-block; padding: 0.5em 1em;
    background: #f5f5f5; border: 2px solid #e0e0e0;
    cursor: pointer; font-size: 0.9em; transition: all 0.2s;
}
.avatar-upload-label:hover { background: #eb19b7; color: #fff; border-color: #eb19b7; }

.form-hint { font-size: 0.8em; color: #999; margin-top: 0.3em; }

.profile-info h1 { font-size: 1.8em; margin-bottom: 0.5em; }
.profile-meta {
    display: flex; gap: 1.2em; flex-wrap: wrap;
    color: #666; font-size: 0.9em; margin-bottom: 0.5em;
}
.profile-meta span { display: flex; align-items: center; gap: 0.3em; }
.profile-bio { color: #555; margin-bottom: 1em; }

.profile-stats { display: flex; gap: 2em; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 1.4em; color: #eb19b7; }
.profile-stat span { font-size: 0.85em; color: #666; }

/* === Friends === */
.friends-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2em; margin-top: 1.5em;
}

.friend-card {
    background: #fff; border-radius: 15px;
    padding: 1.2em; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.friend-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 0.8em; }
.friend-info h3 { font-size: 1em; margin-bottom: 0.2em; }
.friend-info p { font-size: 0.85em; color: #999; }

.friend-online {
    display: inline-block; margin-top: 0.5em; padding: 0.2em 0.8em;
    background: rgba(76,175,80,0.15); color: #2e7d32;
    font-size: 0.8em; font-weight: 600;
}
.friend-offline {
    display: inline-block; margin-top: 0.5em; padding: 0.2em 0.8em;
    background: #f5f5f5; color: #999; font-size: 0.8em;
}

.friend-actions { margin-top: 0.8em; }

/* === Members / Search === */
.search-bar { display: flex; gap: 0.5em; margin: 1.5em 0; }
.search-bar input {
    flex: 1; padding: 0.7em 1em;
    border: 2px solid #e0e0e0; font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
}
.search-bar input:focus { border-color: #eb19b7; outline: none; }
.search-bar button {
    background: #eb19b7; color: #fff; border: none;
    width: 42px; height: 42px; cursor: pointer;
    transition: background 0.3s;
}
.search-bar button:hover { background: #1d1d1d; }

.member-card {
    display: flex; gap: 1em;
    background: #fff; border-radius: 15px;
    padding: 1em; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 1em; transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-2px); }
.member-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.member-info h3 { font-size: 1em; margin-bottom: 0.2em; }
.member-username { font-size: 0.85em; color: #eb19b7; font-weight: 600; }
.member-quartier { font-size: 0.85em; color: #666; }
.member-bio { font-size: 0.85em; color: #888; margin: 0.5em 0; }
.member-actions { margin-top: 0.5em; }

/* === Inbox === */
.inbox-page { max-width: 1100px; }

.inbox-heading {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1em; margin-bottom: 1.5em;
}
.inbox-heading h1 { font-size: 1.8em; margin: 0; }
.inbox-heading p { color: #666; margin: 0; }
.inbox-actions { display: flex; gap: 0.5em; flex-wrap: wrap; }

.inbox-stats { display: flex; gap: 1.5em; margin-bottom: 1.5em; flex-wrap: wrap; }
.inbox-stat {
    display: flex; flex-direction: column; align-items: center;
    background: #f9f9f9; border: 1px solid #eee;
    border-radius: 15px; padding: 0.8em 1.5em; min-width: 110px;
}
.inbox-stat-number { font-size: 1.6em; font-weight: 700; color: #eb19b7; }
.inbox-stat-label { font-size: 0.75em; color: #888; text-align: center; }

.inbox-contact-search { margin-bottom: 1.5em; }
.inbox-contact-search label { display: block; font-weight: 600; margin-bottom: 0.4em; color: #444; }
.inbox-search-row { display: flex; gap: 0.5em; }
#inbox-member-search {
    flex: 1; padding: 0.6em 0.9em;
    border: 2px solid #e0e0e0; font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
}
#inbox-member-search:focus { border-color: #eb19b7; outline: none; }
#inbox-search-button {
    background: #eb19b7; color: #fff; border: none;
    padding: 0 1em; cursor: pointer; font-size: 0.9em;
}
#inbox-search-button:hover { background: #1d1d1d; }

/* Inbox threads */
.inbox-panel { margin-top: 1.5em; }
.inbox-thread-list { display: grid; gap: 0.8em; }

.inbox-thread-card {
    background: #fff; border: 1px solid #e4e8ef;
    border-radius: 15px; box-shadow: 0 2px 8px rgba(24,39,75,0.05);
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.inbox-thread-card:hover { border-color: #bcc4f2; box-shadow: 0 4px 14px rgba(24,39,75,0.09); }
.inbox-thread-card.is-open { border-color: #bcc4f2; }
.inbox-thread-card.has-unread { border-left: 4px solid #eb19b7; }

.inbox-thread-summary {
    width: 100%; display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center; gap: 0.9em; padding: 0.9em 1em;
    border: 0; background: transparent; color: inherit;
    cursor: pointer; text-align: left; font: inherit;
}

.inbox-thread-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #edf2f7; }
.inbox-thread-main { min-width: 0; display: flex; flex-direction: column; gap: 0.25em; }
.inbox-thread-sender { color: #17233b; font-weight: 700; font-size: 0.95em; }
.inbox-online-indicator { display: inline-block; width: 8px; height: 8px; margin-left: 0.35em; border-radius: 50%; background: #31a46b; }
.inbox-thread-preview { color: #65758b; font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread-meta { display: flex; align-items: center; gap: 0.55em; color: #75839a; font-size: 0.72em; }
.inbox-thread-time { color: #8491a5; }
.inbox-thread-unread {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; padding: 0 0.35em;
    background: #eb19b7; color: #fff; font-weight: 700;
}

.inbox-thread-detail { border-top: 1px solid #e4e8ef; background: #f7f9fc; }
.inbox-message-list { display: flex; flex-direction: column; gap: 0.7em; padding: 0 1.1em 1em; }

.inbox-message-card {
    width: min(78%, 680px); padding: 0.75em 0.95em;
    border: 1px solid #dfe6ef; border-radius: 8px;
    background: #fff; box-shadow: 0 1px 3px rgba(24,39,75,0.05);
}
.inbox-message-sent .inbox-message-card { background: #f3e8ff; border-color: #d7cff4; }
.inbox-message-meta { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 0.45em; color: #75839a; font-size: 0.72em; }
.inbox-message-meta strong { color: #34445c; }
.inbox-message-body { color: #26364f; font-size: 0.9em; line-height: 1.55; }

.inbox-reply-form {
    display: flex; gap: 0.6em;
    padding: 0.8em 1.1em 1em; border-top: 1px solid #e4e8ef;
}
.inbox-reply-input {
    flex: 1; min-width: 0; padding: 0.65em 0.85em;
    border: 1px solid #ccd6e3; background: #fff;
    color: #26364f; font: inherit; font-size: 0.88em; outline: none;
}
.inbox-reply-input:focus { border-color: #eb19b7; box-shadow: 0 0 0 3px rgba(235,25,183,0.12); }
.inbox-reply-send {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45em; min-width: 105px; padding: 0.65em 0.9em;
    border: 0; background: #eb19b7; color: #fff;
    cursor: pointer; font: inherit; font-size: 0.82em; font-weight: 700;
}
.inbox-reply-send:hover { background: #1d1d1d; }

.inbox-empty { width: 100%; padding: 1.4em; color: #8491a5; text-align: center; font-size: 0.85em; }

/* === Event Chat === */
#event-chat-select {
    width: 100%; padding: 0.6em; border: 1px solid #ddd;
    font-size: 0.95em; margin-bottom: 1em;
    font-family: 'Poppins', sans-serif;
}

.event-chat-messages {
    height: 350px; overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 1em; background: #fafafa;
    display: flex; flex-direction: column; gap: 0.6em;
}
.event-chat-placeholder { color: #999; text-align: center; margin: auto; padding: 2em; }
.event-chat-msg { display: flex; align-items: flex-end; gap: 0.5em; max-width: 80%; }
.event-chat-msg.sent { align-self: flex-end; flex-direction: row-reverse; }
.event-chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.event-chat-bubble {
    display: flex; flex-direction: column;
    background: #eb19b7; color: #fff;
    padding: 0.5em 0.8em; border-radius: 15px; font-size: 0.9em;
}
.event-chat-msg.sent .event-chat-bubble { background: #1d1d1d; }
.event-chat-sender { font-size: 0.7em; font-weight: 600; opacity: 0.8; margin-bottom: 0.2em; }
.event-chat-text { white-space: pre-wrap; word-break: break-word; }
.event-chat-time { font-size: 0.65em; opacity: 0.6; margin-top: 0.2em; align-self: flex-end; }

.event-chat-form { display: flex; gap: 0.5em; margin-top: 1em; }
.event-chat-form input[type="text"] {
    flex: 1; padding: 0.5em 1em;
    border: 1px solid #ddd; font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
}

/* === Flash messages === */
.flash-msg { padding: 0.8em 1em; margin-bottom: 1.5em; font-size: 0.9em; }
.flash-msg.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.flash-msg.error { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }

/* === DB error banner === */
.db-error-banner {
    background: #fff3cd; border: 1px solid #ffeaa7; color: #856404;
    margin: 1em auto; max-width: 1170px; padding: 1em 1.5em;
    font-size: 0.95em; text-align: center;
}
.db-error-banner i { color: #dc3545; margin-right: 0.5em; }

/* === Inner heading === */
.inner-heading { padding-bottom: 1em; }
.inner-heading h2 { font-size: 1.8em; margin-bottom: 0.3em; }
.inner-heading p { color: #3a3a3a; }

/* === Activities page === */
.theme-filter {
    display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1em 0;
}
.theme-filter .filter-btn {
    padding: 0.4em 1em; border: 1px solid #ddd;
    background: #fff; cursor: pointer; font-size: 0.9em;
    transition: all 0.3s; font-family: 'Poppins', sans-serif;
}
.theme-filter .filter-btn.active,
.theme-filter .filter-btn:hover {
    background: #eb19b7; color: #fff; border-color: #eb19b7;
}

.activity-theme-header {
    display: flex; align-items: center; gap: 1em;
    margin: 2em 0 1em; padding-bottom: 0.5em;
    border-bottom: 2px solid #bcc4f2;
}

.activity-events {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1em;
}

/* === Notifications === */
.notification-item {
    display: flex; align-items: flex-start; gap: 1em;
    padding: 1em; background: #fff; border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 0.8em;
}
.notification-item.unread { border-left: 4px solid #eb19b7; }

/* === Friend requests === */
.friend-request-item {
    display: flex; align-items: center; gap: 0.8em;
    padding: 0.7em 1em; background: #fff; border-radius: 15px;
    margin-bottom: 0.5em; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.friend-request-actions { display: flex; gap: 0.3em; margin-left: auto; }
.friend-request-actions .btn-accept {
    background: #4caf50; color: #fff; border: none;
    padding: 0.3em 0.8em; font-size: 0.8em; cursor: pointer; font-weight: 600;
}
.friend-request-actions .btn-decline {
    background: #f5f5f5; color: #999; border: 1px solid #e0e0e0;
    padding: 0.3em 0.8em; font-size: 0.8em; cursor: pointer;
}

/* Add friend search */
.add-friend-section {
    margin-top: 2em; padding: 1.5em; background: #fafafa; border-radius: 15px;
}
.add-friend-section h3 { margin-top: 0; }

.search-result-item {
    display: flex; align-items: center; gap: 0.8em;
    padding: 0.7em 1em; background: #fff; border-radius: 15px;
    margin-bottom: 0.5em; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* === Responsive === */
@media (max-width: 992px) {
    #header {/* flex-direction: column; */gap: 0.5em;}
    #header nav ul { justify-content: center; }
    .header-actions { justify-content: center; }
}

@media (max-width: 768px) {
    #accueil {min-height: auto;padding: 80px 0 50px;/* background-color: #bcc4f2; *//* background-image: none; */}
}

/* === Feature Cards === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #eb19b7;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eb19b7, #bcc4f2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.features-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.features-cta p {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.features-cta .button {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}
    #accueil h1 { font-size: 2rem; }

    .chat-container { flex-direction: column; height: auto; }
    .chat-sidebar { width: 100%; min-width: auto; max-height: 200px; }
    .chat-main { height: 400px; }

    .events-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }

    .profile-header { flex-direction: column; text-align: center; }

    .heading_container h2 { font-size: 2rem; }

    .inbox-heading { flex-direction: column; align-items: stretch; }
    .inbox-search-row { flex-direction: column; }
    .inbox-reply-form { flex-direction: column; }
    .inbox-message-card { width: 100%; }

    .theme-filter { flex-direction: column; }
    .activity-events { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    #accueil h1 { font-size: 1.6rem; }
    .stats { gap: 1.5em; }
    .stat-number { font-size: 2em; }
}

@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}

/* Preload animation override */
body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    /* animation: none !important; */
    /* transition: none !important; */
}

/* Badge count */
.badge-count { background: #eb19b7; color: #fff; padding: 0.1em 0.5em; font-size: 0.8em; margin-left: 0.3em; }
