/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Mode sombre par défaut */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-color: #1a202c;
    --white: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Mode clair */
[data-theme="light"] {
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Ajustements pour le mode sombre */
body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden; /* Pas de scroll sur le body */
    height: 100vh; /* Hauteur fixe */
}

/* Amélioration de la lisibilité des inputs en mode sombre */
.form-group input,
.form-group select,
.search-input-group input,
.search-mini input,
.games-filter input {
    color: var(--text-color);
}

/* Amélioration des cartes utilisateur en mode sombre */
.user-card,
.friend-item,
.game-user-card,
.recent-user-item {
    background: var(--white);
    border: 1px solid var(--border-color);
}

/* Amélioration des notifications en mode sombre */
.notification-dropdown {
    background: var(--white);
    border: 1px solid var(--border-color);
}

/* Amélioration des résultats de recherche en mode sombre */
.search-results-mini {
    background: var(--white);
    border: 1px solid var(--border-color);
}

/* Amélioration des messages en mode sombre */
.message {
    color: var(--text-color);
}

/* Amélioration des badges en mode sombre */
.badge {
    background: var(--border-color);
    color: var(--text-color);
}

/* Section Twitch */
.twitch-section {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: var(--white);
    border: 2px solid #9146ff;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
    text-align: left;
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--border-radius);
    max-width: 500px;
}

.twitch-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.twitch-section p {
    color: #e6e6fa;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.twitch-status {
    margin-bottom: 10px;
}

.twitch-status .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
}

.twitch-not-connected {
    text-align: center;
}

.twitch-notice {
    margin-bottom: 10px;
}

.twitch-notice i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

.twitch-notice h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.twitch-notice p {
    color: #e6e6fa;
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.twitch-info {
    text-align: left;
}

.twitch-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.twitch-avatar {
    flex-shrink: 0;
}

.twitch-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}

.twitch-details {
    flex: 1;
}

.twitch-details h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.twitch-details p {
    color: #e6e6fa;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.twitch-channel {
    margin-bottom: 8px;
}

.twitch-channel strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}

.twitch-channel a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.8rem;
}

.twitch-channel a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.twitch-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.twitch-streams {
    margin-top: 15px;
}

.twitch-streams h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.twitch-streams-list {
    display: grid;
    gap: 10px;
}

.twitch-stream-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.twitch-stream-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.twitch-stream-thumbnail {
    width: 80px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.twitch-stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitch-stream-info {
    flex: 1;
}

.twitch-stream-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
}

.twitch-stream-game {
    color: #e6e6fa;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.twitch-stream-stats {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #e6e6fa;
}

.twitch-stream-viewers {
    display: flex;
    align-items: center;
    gap: 3px;
}

.twitch-stream-viewers i {
    color: #ff4444;
}

.twitch-stream-duration {
    display: flex;
    align-items: center;
    gap: 3px;
}

.twitch-stream-duration i {
    color: #ffffff;
}

.twitch-stream-actions {
    display: flex;
    gap: 6px;
}

.twitch-stream-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.twitch-no-streams {
    text-align: center;
    padding: 15px;
    color: #e6e6fa;
}

.twitch-no-streams i {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
}

.twitch-no-streams p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive pour Twitch */
@media (max-width: 768px) {
    .twitch-profile {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .twitch-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .twitch-actions {
        justify-content: center;
    }
    
    .twitch-stream-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .twitch-stream-thumbnail {
        width: 100%;
        max-width: 150px;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .twitch-stream-actions {
        justify-content: center;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Twitch - Streams en direct sur la page principale */
.twitch-live-section {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    border: 2px solid #9146ff;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
}

.twitch-live-section h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.twitch-live-container {
    max-width: 1200px;
    margin: 0 auto;
}

.twitch-live-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.twitch-live-stream-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitch-live-stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.twitch-live-stream-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.twitch-live-stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.twitch-live-stream-card:hover .twitch-live-stream-thumbnail img {
    transform: scale(1.05);
}

.twitch-live-stream-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.twitch-live-stream-live-badge i {
    animation: pulse 2s infinite;
}

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

.twitch-live-stream-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.twitch-live-stream-content {
    padding: 15px;
}

.twitch-live-stream-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.twitch-live-stream-game {
    color: #e6e6fa;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.twitch-live-stream-game i {
    color: #9146ff;
}

.twitch-live-stream-streamer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.twitch-live-stream-streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.twitch-live-stream-streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitch-live-stream-streamer-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.twitch-live-stream-actions {
    display: flex;
    gap: 10px;
}

.twitch-live-stream-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    text-align: center;
}

.twitch-no-live-streams {
    text-align: center;
    padding: 60px 20px;
    color: #e6e6fa;
}

.twitch-no-live-streams i {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
    opacity: 0.7;
}

.twitch-no-live-streams p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive pour les streams en direct */
@media (max-width: 768px) {
    .twitch-live-streams {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .twitch-live-stream-thumbnail {
        height: 150px;
    }
    
    .twitch-live-stream-content {
        padding: 12px;
    }
    
    .twitch-live-stream-title {
        font-size: 0.9rem;
    }
    
    .twitch-live-stream-actions {
        flex-direction: column;
    }
}

/* Container spécial pour la page amis */
.container.friends-page {
    max-width: none;
    width: 100%;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Container spécial pour la page d'accueil */
.container.home-page {
    max-width: none;
    width: 100%;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

/* Container spécial pour la page friends */
.container.friends-page {
    max-width: none;
    width: 100%;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

/* Container spécial pour la page profil */
.container.profile-page {
    max-width: none;
    width: 100%;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

/* Container spécial pour la page jeux */
.container.games-page {
    max-width: none;
    width: 100%;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Interface d'authentification */
.auth-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
    margin: 100px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Onglets */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    width: 100%;
    max-width: 400px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Formulaires */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in;
    width: 100%;
    max-width: 400px;
}

.auth-form.active {
    display: block;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select:hover {
    border-color: var(--primary-color);
}

/* Avatar upload styles */

.avatar-section {
    padding: 20px 0;
}

.avatar-section h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.avatar-section p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.avatar-preview {
    margin-bottom: 30px;
}

.current-avatar h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.avatar-placeholder.medium {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Available avatars section */
.available-avatars-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.available-avatars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.avatar-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.avatar-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.avatar-option .avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.avatar-option-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 4px;
}

.avatar-option-provider {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-avatars-message {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.no-avatars-message p {
    margin: 5px 0;
}

.file-input {
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
}

.file-input:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.upload-progress {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.field-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
}

/* Bouton Partager spécifique - plus petit */
.share-btn {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    height: auto !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Authentification sociale */
.separator {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.separator span {
    background: var(--white);
    padding: 0 20px;
    color: var(--text-light);
    font-weight: 600;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-social {
    width: 100%;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    font-weight: 600;
}

.btn-gmail:hover {
    border-color: #ea4335;
    color: #ea4335;
    background: #fef7f7;
}

.btn-discord:hover {
    border-color: #7289da;
    color: #7289da;
    background: #f8f9ff;
}

.btn-steam {
    background: #1b2838;
    color: #ffffff !important;
    border: 2px solid #1b2838;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.btn-steam:hover {
    background: #2a475e;
    border-color: #2a475e;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 40, 56, 0.3);
}

/* Version alternative plus claire pour le thème sombre */
/* En mode sombre, data-theme n'est PAS défini, donc on utilise :not([data-theme]) */
:not([data-theme]) .btn-steam {
    background: #5a7a9a;
    border-color: #5a7a9a;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

:not([data-theme]) .btn-steam:hover {
    background: #6b8bb3;
    border-color: #6b8bb3;
    box-shadow: 0 4px 8px rgba(90, 122, 154, 0.4);
}

.btn-twitch {
    background: #9146ff;
    color: var(--white);
    border: 2px solid #9146ff;
}

.btn-twitch:hover {
    background: #772ce8;
    transform: translateY(-2px);
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: none;
}

.message.success {
    background: #f0fff4;
    color: var(--success-color);
    border: 1px solid #c6f6d5;
    display: block;
}

.message.error {
    background: #fed7d7;
    color: var(--danger-color);
    border: 1px solid #feb2b2;
    display: block;
}

/* Dashboard */
.dashboard {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    animation: slideUp 0.6s ease-out;
    margin-top: 100px; /* Espace pour le header fixe */
}

/* Dashboard spécial pour la page amis */
.dashboard.friends-dashboard {
    max-width: none;
    width: 100%;
    padding: 0;
    margin-top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-color);
}

/* Dashboard spécial pour la page d'accueil */
.dashboard.home-dashboard {
    max-width: none;
    width: 100%;
    padding: 20px;
    margin-top: 100px;
}

/* Layout principal de la page d'accueil */
.home-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Bandeau Twitch à gauche */
.twitch-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.twitch-sidebar-header {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: var(--white);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.twitch-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.twitch-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Contenu principal à droite */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Steam compacte */
.steam-section-compact {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
}

.steam-section-compact h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.steam-container-compact p {
    margin: 0 0 20px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.steam-container-compact .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}



/* Adaptation des streams Twitch pour le bandeau */
.twitch-sidebar .twitch-live-streams {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twitch-sidebar .twitch-live-stream-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.twitch-sidebar .twitch-live-stream-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.twitch-sidebar .twitch-live-stream-thumbnail {
    position: relative;
    width: 100%;
    height: 90px;
    overflow: hidden;
}

.twitch-sidebar .twitch-live-stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitch-sidebar .twitch-live-stream-content {
    padding: 12px;
}

.twitch-sidebar .twitch-live-stream-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.twitch-sidebar .twitch-live-stream-game {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.twitch-sidebar .twitch-live-stream-streamer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.twitch-sidebar .twitch-live-stream-streamer-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.twitch-sidebar .twitch-live-stream-streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitch-sidebar .twitch-live-stream-streamer-name {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.twitch-sidebar .twitch-live-stream-viewers {
    font-size: 0.75rem;
    color: var(--danger-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .home-layout {
        flex-direction: column;
    }
    
    .twitch-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        max-height: none;
    }
    
    .twitch-sidebar-content {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .home-layout {
        gap: 15px;
    }
    
    .twitch-sidebar-header {
        padding: 12px 15px;
    }
    
    .twitch-sidebar-content {
        padding: 12px;
    }
    
    .steam-section-compact {
        padding: 20px;
    }
    
    .content-placeholder {
        padding: 25px;
    }
}

/* Dashboard spécial pour la page profil */
.profile-container.profile-dashboard {
    max-width: none;
    width: 100%;
    padding: 0;
    margin-top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-color);
}

/* Dashboard spécial pour la page jeux */
.dashboard.games-dashboard {
    max-width: none;
    width: 100%;
    padding: 20px;
    margin-top: 100px;
}

/* Bouton de basculement de thème */
.theme-toggle-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.theme-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.theme-toggle-btn i {
    transition: var(--transition);
}

/* Header compact */
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Ajuster le contenu pour éviter qu'il soit caché derrière le header fixe */
body {
    padding-top: 80px;
}

.container {
    margin-top: 0;
}



.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0; /* Permet aux éléments de se rétrécir */
}

.header-center {
    flex: 2;
    text-align: center;
    min-width: 0; /* Permet au texte de se rétrécir */
    padding: 0 10px;
}

.header-center h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    justify-content: flex-end;
}

/* Responsive pour le header */
@media (max-width: 1024px) {
    .compact-header {
        left: 15px;
        right: 15px;
        max-width: calc(100vw - 30px);
        padding: 12px 15px;
    }
    
    .header-left, .header-right {
        gap: 8px;
    }
    
    .header-center h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .compact-header {
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .header-left, .header-right {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    
    .header-center {
        order: -1;
        flex: 1 1 100%;
        margin-bottom: 8px;
        padding: 0;
    }
    
    .header-center h2 {
        font-size: 1rem;
    }
    
    /* Masquer certains éléments sur mobile */
    .header-left .search-mini {
        display: none;
    }
    
    .header-right .btn span {
        display: none;
    }
    
    .header-right .btn {
        padding: 8px 10px;
        min-width: 40px;
        justify-content: center;
    }
    
    .header-right .btn i {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .compact-header {
        left: 5px;
        right: 5px;
        max-width: calc(100vw - 10px);
        padding: 8px 10px;
        top: 10px;
    }
    
    .header-left, .header-right {
        gap: 4px;
    }
    
    .header-center h2 {
        font-size: 0.9rem;
    }
    
    .header-right .btn {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    .header-right .btn i {
        font-size: 0.9rem;
    }
    
    /* Masquer complètement certains éléments sur très petit écran */
    .header-right .btn:not(.notification-btn):not(.profile-avatar-btn):not(#logoutBtn):not(.view-toggle-btn) {
        display: none;
    }
}

@media (max-width: 360px) {
    .compact-header {
        left: 2px;
        right: 2px;
        max-width: calc(100vw - 4px);
        padding: 6px 8px;
    }
    
    .header-center h2 {
        font-size: 0.85rem;
    }
    
    .header-right .btn {
        padding: 5px 6px;
        min-width: 32px;
    }
    
    .header-right .btn i {
        font-size: 0.8rem;
    }
}

/* Styles pour les notifications */
.notification-container {
    position: relative;
    display: inline-block;
}

.notification-btn {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.notification-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Badge pour la modération */
.moderation-btn {
    position: relative;
}

.moderation-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: var(--white);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    padding: 0 4px;
    animation: pulse-moderation 2s infinite;
}

@keyframes pulse-moderation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -80px;
        max-height: 350px;
    }
    
    .notification-header {
        padding: 12px;
    }
    
    .notification-header h4 {
        font-size: 13px;
    }
    
    .notification-item {
        padding: 10px 12px;
    }
    
    .notification-title {
        font-size: 12px;
    }
    
    .notification-message {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .notification-dropdown {
        width: 260px;
        right: -100px;
        max-height: 300px;
    }
    
    .notification-header {
        padding: 10px;
    }
    
    .notification-item {
        padding: 8px 10px;
    }
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
}

.notification-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--bg-color);
}

.notification-item.unread {
    background: var(--primary-color-light);
}

.notification-item.unread:hover {
    background: var(--primary-color-light);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 10px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.notification-actions .btn {
    padding: 4px 8px;
    font-size: 10px;
    min-height: auto;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-color);
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

.btn-warning {
    background: #f39c12;
    color: var(--white);
    border: none;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-success {
    background: #4caf50;
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background: #45a049;
}

.btn-success:disabled {
    background: #4caf50;
    color: var(--white);
    opacity: 0.8;
    cursor: default;
}

.profile-privacy-notice {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
}

.privacy-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.privacy-message i {
    font-size: 1.2rem;
    color: #f39c12;
}

.privacy-message p {
    margin: 0;
    font-size: 0.9rem;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Styles pour la gestion d'avatar */
.avatar-management-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.avatar-preview {
    flex: 0 0 auto;
}

.avatar-upload-section {
    flex: 0 0 400px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .avatar-management-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .avatar-preview {
        flex: none;
    }
    
    .avatar-upload-section {
        flex: none;
    }
}

.avatar-upload-section h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.avatar-upload-preview {
    margin-bottom: 15px;
    text-align: center;
}

.avatar-upload-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.avatar-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.upload-label:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.upload-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.upload-requirements {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.upload-requirements small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .avatar-upload-controls {
        align-items: center;
    }
    
    .upload-label {
        width: 100%;
        justify-content: center;
    }
}

.notification-empty {
    padding: 30px 15px;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Styles pour l'avatar dans le header */
.profile-avatar-btn {
    padding: 0 !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    min-width: 45px;
    min-height: 45px;
}

.profile-avatar-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.header-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    border-radius: 50%;
}

.user-display-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Style pour le bouton accueil */
.home-btn {
    font-weight: 600;
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adaptation au thème sombre */
[data-theme="dark"] .home-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

[data-theme="dark"] .home-btn:hover {
    background-color: var(--primary-color);
    color: white;
}



.search-mini input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    width: 200px;
    max-width: 300px;
    background: var(--white);
    color: var(--text-color);
}

.search-mini input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    background: var(--white);
    color: var(--text-color);
}

.search-results-mini {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    color: var(--text-color);
}

.search-results-mini.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    position: relative;
}



/* Header original (pour compatibilité) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.avatar {
    flex-shrink: 0;
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.user-details p {
    margin-bottom: 8px;
    color: var(--text-color);
}

.welcome-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border-radius: var(--border-radius);
    border: 1px solid #c6f6d5;
}

.welcome-message h2 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Section de recherche */
.search-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.search-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.search-container {
    width: 100%;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
}

.search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 1;
}

.search-input-group input {
    width: 100%;
    max-width: none;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    box-sizing: border-box;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group .btn {
    width: 100%;
    white-space: nowrap;
}

.search-tips {
    margin-bottom: 15px;
    color: var(--text-light);
}

.search-tips small {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-tips i {
    color: var(--primary-color);
}

.search-tips h4 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-tips li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mise en surbrillance des termes de recherche */
mark {
    background-color: #fef08a;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Page de profil */
.profile-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    animation: slideUp 0.6s ease-out;
    margin-top: 100px; /* Espace pour le header fixe */
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.profile-back {
    flex: 1;
}

.profile-header h1 {
    flex: 2;
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.profile-avatar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.avatar-placeholder.large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    border: 3px solid var(--primary-color);
}

.profile-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.profile-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-tab-btn.active {
    color: var(--primary-color);
}

.profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.profile-form {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.profile-form.active {
    display: block;
}

.auth-provider-display {
    padding: 10px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-color);
}

.badge.manual {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.discord {
    background: #7289da;
    color: var(--white);
}

.join-date {
    padding: 10px 0;
    color: var(--text-light);
    font-weight: 500;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-width: 500px;
}

.password-requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    max-width: 500px;
}

.password-requirements h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements li::before {
    content: '○';
    color: var(--text-light);
    font-weight: bold;
}

.password-requirements li.valid::before {
    content: '●';
    color: var(--success-color);
}

.password-requirements li.invalid::before {
    content: '●';
    color: var(--danger-color);
}

@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-back {
        align-self: flex-start;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-tab-btn {
        justify-content: flex-start;
    }
}

.search-results {
    min-height: 50px;
}

.search-results.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
}

.search-results.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-results.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.user-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.user-card .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-card .user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.user-card .user-info {
    flex: 1;
}

.user-card .user-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.user-card .user-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-card .user-provider {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-card .user-provider.manual {
    background: #e2e8f0;
    color: #4a5568;
}

.user-card .user-provider.discord {
    background: #7289da;
    color: white;
}

.user-card .user-provider.gmail {
    background: #ea4335;
    color: white;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    padding: 10px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.user-card .user-details {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.user-card .user-email {
    font-family: monospace;
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.user-card .user-join-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.user-card .user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: auto;
}

.btn-group {
    display: flex;
    gap: 5px;
}

.btn-group .btn {
    flex: 1;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections d'amis */
.friends-section,
.requests-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.friends-section h3,
.requests-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.friends-list,
.requests-list {
    min-height: 50px;
}

.friends-list .loading,
.requests-list .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

.friends-list .empty,
.requests-list .empty {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

.friends-list .empty i,
.requests-list .empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.friend-item,
.request-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.friend-item:hover,
.request-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.friend-item .friend-avatar,
.request-item .request-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.friend-item .friend-avatar-placeholder,
.request-item .request-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.friend-item .friend-info,
.request-item .request-info {
    flex: 1;
}

.friend-item .friend-name,
.request-item .request-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.friend-item .friend-details,
.request-item .request-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.friend-item .friend-actions,
.request-item .request-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .auth-container,
    .dashboard {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn.active::after {
        display: none;
    }
}

/* Animations de chargement */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Améliorations d'accessibilité */
.btn:focus,
input:focus,
.tab-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* États de survol améliorés */
.btn:hover {
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: var(--primary-color);
}

/* Styles pour l'intégration Steam */
.steam-section {
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.steam-section h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.steam-section p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.steam-status {
    margin-bottom: 20px;
}

.steam-status .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

.steam-status .message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.steam-status .message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.steam-status .message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.steam-link-form {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.steam-not-connected {
    text-align: center;
    padding: 40px 20px;
}

.steam-notice {
    margin-bottom: 30px;
}

.steam-notice i {
    font-size: 4rem;
    color: #1b2838;
    margin-bottom: 20px;
}

.steam-notice h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.steam-notice p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.steam-verification-steps {
    position: relative;
}

.steam-verification-steps .step {
    transition: all 0.3s ease;
}

.steam-verification-steps .step.active {
    display: block;
}

.steam-verification-steps h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.verification-info {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.steam-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.steam-preview img {
    border: 2px solid var(--primary-color);
}

.steam-preview strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.steam-preview p {
    margin: 5px 0 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.verification-instructions {
    color: var(--text-color);
}

.verification-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.verification-instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.verification-instructions code {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
}

.verification-timer {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
}

.verification-timer small {
    color: #ff9800;
    font-weight: 600;
}

.verification-timer.expired {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.verification-timer.expired small {
    color: #f44336;
}

.steam-info {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.steam-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: var(--white);
}

.steam-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.steam-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steam-details {
    flex: 1;
}

.steam-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.steam-details p {
    margin: 0 0 10px 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.steam-friend-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.steam-friend-code strong {
    font-weight: 600;
    color: #66c0f4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.steam-actions {
    display: flex;
    gap: 10px;
}

.steam-games {
    padding: 20px;
}

.steam-games h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.games-filter {
    margin-bottom: 20px;
}

.games-filter input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-color);
}

.games-filter input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: var(--white);
    color: var(--text-color);
}

.games-list {
    max-height: 400px;
    overflow-y: auto;
}

.games-list .no-games {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
    color: var(--text-color);
}

.game-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    background: var(--white);
    color: var(--text-color);
}

.game-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-info h5 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.playtime-total,
.playtime-recent {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.playtime-total i,
.playtime-recent i {
    color: var(--primary-color);
    width: 14px;
}

/* Responsive pour Steam */
@media (max-width: 768px) {
    .steam-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .steam-avatar {
        width: 60px;
        height: 60px;
    }
    
    .steam-actions {
        justify-content: center;
    }
    
    .game-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .game-image {
        width: 80px;
        height: 80px;
    }
}

/* Section Steam sur la page d'accueil */
.dashboard .steam-section {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: var(--white);
    border: 2px solid #66c0f4;
    box-shadow: 0 8px 25px rgba(102, 192, 244, 0.3);
    text-align: center;
    padding: 30px;
    margin: 30px 0;
}

.dashboard .steam-section h3 {
    color: #66c0f4;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.dashboard .steam-section p {
    color: #c7d5e0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dashboard .steam-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 192, 244, 0.4);
}

/* Cartes utilisateur mini pour la recherche */
.user-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    cursor: pointer;
    background: var(--white);
    color: var(--text-color);
}

.user-card-mini:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.user-card-mini:active {
    background-color: var(--primary-color);
    color: var(--white);
}

.user-card-mini:last-child {
    border-bottom: none;
}

.user-avatar-mini {
    flex-shrink: 0;
}

.user-avatar-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.user-info-mini {
    flex: 1;
    min-width: 0;
}

.user-name-mini {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details-mini {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.user-actions-mini {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.user-card-mini:hover .user-actions-mini {
    color: var(--primary-color);
}

.user-card-mini.selected {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.user-card-mini.selected .user-name-mini {
    color: var(--white);
}

.user-card-mini.selected .user-details-mini {
    color: rgba(255, 255, 255, 0.8);
}

.user-card-mini.selected .user-actions-mini {
    color: var(--white);
}

.no-results-mini, .error-mini {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.error-mini {
    color: var(--danger-color);
}

/* Styles pour les profils en lecture seule */
.profile-info-readonly {
    padding: 20px 0;
}

.profile-info-readonly .form-group {
    margin-bottom: 25px;
}

.profile-info-readonly .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readonly-value {
    padding: 12px 16px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-color);
    min-height: 48px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.readonly-value:empty::before {
    content: 'Non renseigné';
    color: var(--text-light);
    font-style: italic;
}

/* Styles pour les actions d'amis */
.friend-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.friend-action .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* Header secondaire pour le profil consulté */
.profile-user-header {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.profile-user-avatar {
    flex-shrink: 0;
}

.profile-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-user-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    border: 3px solid var(--primary-color);
}

.profile-user-details {
    flex: 1;
}

.profile-user-details h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-user-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-user-provider,
.profile-user-join-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-user-provider i,
.profile-user-join-date i {
    width: 16px;
    color: var(--primary-color);
}

.profile-user-actions {
    flex-shrink: 0;
}

.profile-user-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-user-actions .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-user-actions .btn-primary {
    padding: 12px 20px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .profile-user-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-user-meta {
        align-items: center;
    }
    
    .profile-user-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-user-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour les liens de cartes utilisateur */
.user-card-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-card-link:hover {
    background: rgba(102, 126, 234, 0.05);
    text-decoration: none;
    color: inherit;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
} 

/* Boutons compacts dans le header notifications */
.notification-header .btn {
    padding: 3px 7px;
    font-size: 12px;
    min-width: 0;
    min-height: 0;
    height: 26px;
    line-height: 1;
    border-radius: 5px;
    margin: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-header .btn i {
    font-size: 13px;
    margin-right: 0;
}

.notification-header .btn-danger {
    background: var(--danger-color);
    color: var(--white);
    border: none;
}

.notification-header .btn-danger:hover {
    background: #c0392b;
}

.notification-header .btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.notification-header .btn-secondary:hover {
    background: #7f8c8d;
}

.notification-header .btn {
    font-weight: 500;
    letter-spacing: 0;
}

.notification-header .btn span {
    display: none;
}

@media (min-width: 400px) {
    .notification-header .btn span {
        display: inline;
    }
}

/* Styles pour les actions de demandes d'amis dans les notifications */
.notification-friend-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.notification-friend-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.notification-friend-actions .btn-success {
    background: #27ae60;
    color: var(--white);
    border: none;
}

.notification-friend-actions .btn-success:hover {
    background: #229954;
    transform: translateY(-1px);
}

.notification-friend-actions .btn-danger {
    background: #e74c3c;
    color: var(--white);
    border: none;
}

.notification-friend-actions .btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.notification-friend-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages de statut dans les notifications */
.notification-success,
.notification-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 10px 0;
}

.notification-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-left: 3px solid #27ae60;
}

.notification-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-left: 3px solid #3498db;
}

.notification-success i,
.notification-info i {
    font-size: 1rem;
}

/* Toast de notification */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #27ae60;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-left-color: #27ae60;
}

.notification-toast.success i {
    color: #27ae60;
}

.notification-toast.error {
    border-left-color: #e74c3c;
}

.notification-toast.error i {
    color: #e74c3c;
}

/* Responsive pour les actions d'amis */
@media (max-width: 480px) {
    .notification-friend-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .notification-friend-actions .btn {
        width: 100%;
        padding: 10px;
    }
    
    .notification-toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification-toast.show {
        transform: translateY(0);
    }
}

/* Styles responsives pour les avatars du header */
@media (max-width: 768px) {
    .profile-avatar-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .header-avatar-placeholder {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .profile-avatar-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    .header-avatar-placeholder {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .profile-avatar-btn {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
    
    .header-avatar-placeholder {
        font-size: 0.6rem;
    }
}

/* Styles pour les notifications cliquables */
.notification-content {
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 8px;
    margin: -8px;
}

.notification-content:hover {
    background-color: rgba(102, 126, 234, 0.05);
    cursor: pointer;
}

.notification-item[data-target-user] .notification-content:hover {
    background-color: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout en 3 colonnes pour la page amis */
.friends-layout {
    padding-left: 350px; /* Largeur de la sidebar gauche */
    padding-right: 300px; /* Largeur de la sidebar droite */
    padding-top: 80px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    gap: 24px;
}

.search-friends-column {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.requests-column {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.recent-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    right: 0 !important;
    width: 300px !important;
    min-width: 300px !important;
    padding-top: 80px !important;
    border-left: 1px solid var(--border-color) !important;
}

@media (max-width: 1400px) {
    .friends-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        padding-top: 80px;
        overflow: visible;
    }
    
    .friends-column.fixed-sidebar,
    .recent-column.fixed-sidebar {
        position: static !important;
        width: auto !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        overflow-y: visible !important;
        padding: 20px !important;
        border-radius: var(--border-radius) !important;
        box-shadow: var(--shadow) !important;
        margin-bottom: 20px;
    }
    
    .search-friends-column,
    .requests-column {
        height: auto;
        margin-bottom: 20px;
    }
}

.friends-section,
.search-section,
.requests-section,
.recent-section {
    margin-bottom: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.friends-section:last-child,
.search-section:last-child,
.requests-section:last-child,
.recent-section:last-child {
    margin-bottom: 0;
}

.friends-section h3,
.search-section h3,
.requests-section h3,
.recent-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.recent-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    background: var(--bg-color);
    transition: var(--transition);
    cursor: pointer;
}

.recent-user-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.recent-user-item .recent-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-user-item .recent-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-user-item .recent-user-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.recent-user-item .recent-user-info {
    flex: 1;
    min-width: 0;
}

.recent-user-item .recent-user-name {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-user-item .recent-user-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive pour la mise en page en 3 colonnes */
@media (max-width: 1400px) {
    .friends-layout {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .recent-column {
        grid-column: 1 / -1;
        order: 4;
    }
}

@media (max-width: 1024px) {
    .friends-layout {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .friends-column,
    .search-column,
    .recent-column {
        padding: 20px;
    }
    

}

@media (max-width: 768px) {
    .friends-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .friends-column,
    .search-column,
    .recent-column {
        order: unset;
        max-height: none;
        padding: 20px;
    }
    
    .friends-section h3,
    .search-section h3,
    .requests-section h3,
    .recent-section h3 {
        font-size: 1.1rem;
    }
    

    
    /* Ajuster le container et dashboard pour mobile */
    .container.friends-page,
    .container.home-page,
    .container.profile-page,
    .container.games-page {
        padding: 10px;
    }
    
    .dashboard.friends-dashboard,
    .dashboard.home-dashboard,
    .profile-container.profile-dashboard,
    .dashboard.games-dashboard {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .friends-layout {
        gap: 15px;
    }
    
    .friends-column,
    .search-column,
    .recent-column {
        padding: 15px;
    }
    
    .recent-user-item {
        padding: 8px;
    }
    
    .recent-user-item .recent-user-avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    

    
    .container.friends-page,
    .container.home-page,
    .container.profile-page {
        padding: 5px;
    }
    
    .dashboard.friends-dashboard,
    .dashboard.home-dashboard,
    .profile-container.profile-dashboard,
    .dashboard.games-dashboard {
        padding: 10px;
    }
}

/* Styles pour la page des jeux en commun */
.games-content {
    margin-top: 20px;
}

.games-content h1 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-user-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-user-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-user-avatar {
    text-align: center;
}

.game-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.game-user-info {
    flex: 1;
}

.game-user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.game-user-stats {
    color: var(--success-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.shared-games-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.shared-games-list li:last-child {
    border-bottom: none;
}

.game-hours {
    color: var(--text-light);
    font-size: 0.8rem;
}

.game-user-actions {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive pour la page des jeux */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-user-card {
        padding: 15px;
    }
    
    .games-content h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        gap: 10px;
    }
    
    .game-user-card {
        padding: 12px;
    }
    
    .game-user-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .game-user-name {
        font-size: 1.1rem;
    }
}

/* Colonne Catégories sticky à droite */
.categories-sidebar {
    width: 300px;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    margin-left: 0;
}

.categories-sidebar-header {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: var(--white);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.categories-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item-container {
    position: relative;
    margin-bottom: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    font-family: inherit;
    font-size: inherit;
    border: none;
    width: 100%;
    text-align: left;
}

.category-edit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.category-edit-btn:hover {
    background: var(--warning-hover);
}

.category-item-container:hover .category-edit-btn {
    opacity: 1;
}
.category-item:hover {
    background: #fffbe6;
    box-shadow: var(--shadow-lg);
}
.category-icon {
    font-size: 1.3rem;
    color: #ffb347;
    flex-shrink: 0;
}
.category-info {
    flex: 1;
    min-width: 0;
}
.category-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.category-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* Badge pour les nouveaux messages */
.category-item {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff2d2d;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    box-shadow: 0 2px 8px rgba(255, 45, 45, 0.25);
    z-index: 2;
    border: 2px solid #fff;
    animation: pulse-strong 1.2s infinite;
}

@keyframes pulse-strong {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 45, 45, 0.25);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 4px 16px rgba(255, 45, 45, 0.45);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 45, 45, 0.25);
    }
}

@media (max-width: 600px) {
    .unread-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.8rem;
        top: 4px;
        right: 4px;
    }
}

/* Surlignage de la catégorie avec badge */
.category-item:has(.unread-badge) {
    background: rgba(255, 45, 45, 0.08);
    border-left-color: #ff2d2d !important;
}

.category-item:has(.unread-badge):hover {
    background: rgba(255, 45, 45, 0.15);
}

/* Statut de connexion SSE */
.sse-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f2937;
    color: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.sse-status.active {
    transform: translateX(0);
}

.sse-status-warning {
    border-left-color: #f59e0b;
    background: #1f2937;
}

.sse-status-error {
    border-left-color: #ef4444;
    background: #1f2937;
}

.sse-status-icon {
    font-size: 16px;
}

.sse-status-message {
    white-space: nowrap;
}

/* Ajustement pour les catégories avec badge */
.category-item:has(.unread-badge) {
    background: rgba(255, 71, 87, 0.05);
    border-left-color: #ff4757 !important;
}

.category-item:has(.unread-badge):hover {
    background: rgba(255, 71, 87, 0.1);
}





@media (max-width: 1200px) {
    .categories-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        max-height: none;
        margin-left: 0;
    }
}
@media (max-width: 900px) {
    .categories-sidebar {
        display: none;
    }
}



.notification-content {
    margin-right: 20px;
}

.notification-title {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--text-color);
}

/* Badge de notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

/* Badge de demandes d'amis */
.friend-request-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}



/* Animations pour les mises à jour fluides */
.new-post-animation {
    animation: slideInFromTop 0.5s ease-out;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        background: rgba(255, 193, 7, 0.3);
    }
    50% {
        background: rgba(255, 193, 7, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255, 193, 7, 0.1);
    }
}

/* Animation pour les nouveaux posts récents */
.recent-post-card.new-post {
    animation: slideInFromLeft 0.4s ease-out;
    background: rgba(255, 193, 7, 0.05);
    border-left: 3px solid #ffc107;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicateur de mise à jour en cours */
.updating-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Styles pour les posts récents */
.recent-posts-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.recent-posts-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.recent-posts-header h3 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-posts-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recent-posts-content {
    padding: 20px;
}

.recent-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.recent-post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.recent-post-header {
    margin-bottom: 15px;
}

.recent-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.recent-post-author:hover {
    text-decoration: none;
    color: inherit;
}

.recent-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.recent-post-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.recent-post-author-info {
    flex: 1;
}

.recent-post-author-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.recent-post-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.recent-post-category {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.recent-post-content {
    margin-bottom: 15px;
}

.recent-post-text {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.recent-post-image-container {
    text-align: center;
}

.recent-post-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-post-image:hover {
    transform: scale(1.02);
}

.recent-post-actions {
    display: flex;
    justify-content: flex-end;
}

.recent-post-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Responsive pour les posts récents */
@media (max-width: 768px) {
    .recent-posts-header {
        padding: 15px;
    }
    
    .recent-posts-content {
        padding: 15px;
    }
    
    .recent-post-card {
        padding: 12px;
    }
    
    .recent-post-avatar,
    .recent-post-avatar-placeholder {
        width: 35px;
        height: 35px;
    }
    
    .recent-post-image {
        max-height: 250px;
    }
}

/* Styles pour les liens cliquables dans les amis */
.friend-link,
.request-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.friend-link:hover,
.request-link:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    text-decoration: none;
    color: inherit;
}

.friend-link:visited,
.request-link:visited {
    color: inherit;
    text-decoration: none;
}

.friend-link:active,
.request-link:active {
    color: inherit;
    text-decoration: none;
}

.friend-item,
.request-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
    overflow: hidden;
}

.friend-item:hover,
.request-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.friend-item .friend-avatar,
.request-item .request-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.friend-item .friend-avatar-placeholder,
.request-item .request-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.friend-item .friend-info,
.request-item .request-info {
    flex: 1;
    min-width: 0;
}

.friend-item .friend-name,
.request-item .request-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.friend-item .friend-details,
.request-item .request-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.friend-item .friend-actions,
.request-item .request-actions {
    display: flex;
    gap: 10px;
}

/* Styles pour les liens des derniers inscrits */
.recent-user-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
}

.recent-user-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.recent-user-link:visited {
    color: inherit;
    text-decoration: none;
}

.recent-user-link:active {
    color: inherit;
    text-decoration: none;
}

.recent-user-link:hover .recent-user-item {
    box-shadow: var(--shadow);
}

/* Styles globaux pour supprimer l'apparence de lien */
.friends-section a,
.recent-section a {
    text-decoration: none !important;
    color: inherit !important;
}

.friends-section a:visited,
.recent-section a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.friends-section a:active,
.recent-section a:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* Responsive pour les liens cliquables */
@media (max-width: 768px) {
    .friend-link,
    .request-link {
        padding: 10px;
        gap: 10px;
    }
    
    .friend-item .friend-actions,
    .request-item .request-actions {
        padding: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .friend-item .friend-actions .btn,
    .request-item .request-actions .btn {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

/* Styles pour les utilisateurs bannis */
.banned-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.banned-message {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 3px solid var(--danger-color);
    position: relative;
    overflow: hidden;
}

.banned-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--danger-color) 0%, #dc3545 50%, var(--danger-color) 100%);
}

.banned-icon {
    margin-bottom: 30px;
}

.banned-icon i {
    font-size: 4rem;
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

.banned-message h1 {
    color: var(--danger-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banned-message p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.banned-message p:last-of-type {
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--text-light);
}

.banned-actions {
    margin-top: 30px;
}

.banned-actions .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.banned-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
    .banned-message {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .banned-message h1 {
        font-size: 2rem;
    }
    
    .banned-icon i {
        font-size: 3rem;
    }
    
    .banned-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banned-message {
        padding: 30px 15px;
    }
    
    .banned-message h1 {
        font-size: 1.8rem;
    }
    
    .banned-icon i {
        font-size: 2.5rem;
    }
}

/* Notice pour compte principal Discord */
.primary-account-notice {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.primary-account-notice .notice-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.primary-account-notice .notice-info i {
    color: var(--primary-color);
    margin-top: 2px;
}

.primary-account-notice .notice-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
} 

/* Styles pour les pages de proposition et modération des catégories */
.propose-category-container,
.moderation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    border-radius: var(--border-radius);
    color: var(--white);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-header-text {
    flex: 1;
    text-align: left;
}

.page-header-actions {
    flex-shrink: 0;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.page-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.propose-form-section,
.pending-proposals-section,
.recent-proposals-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.propose-form-section h2,
.pending-proposals-section h2,
.recent-proposals-section h2 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.propose-form {
    max-width: 600px;
}

.propose-form .form-group {
    margin-bottom: 20px;
}

.propose-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.propose-form .form-group input,
.propose-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.propose-form .form-group input:focus,
.propose-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.propose-form .form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
}

/* Styles pour les propositions */
.proposals-list,
.proposals-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.proposal-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s;
}

.proposal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.proposal-card.pending {
    border-left: 6px solid #ffb347;
}

.proposal-card.status-approved {
    border-left: 6px solid #28a745;
}

.proposal-card.status-rejected {
    border-left: 6px solid #dc3545;
}

.proposal-card.status-modified {
    border-left: 6px solid #ffc107;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.user-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.proposer {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-modified {
    background: #fff3cd;
    color: #856404;
}

.proposal-description {
    margin: 15px 0;
    color: var(--text-color);
    line-height: 1.5;
}

.proposal-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.proposal-date,
.moderation-date {
    display: block;
    margin-bottom: 8px;
}

.proposal-date i,
.moderation-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.moderator-notes {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.moderator-notes strong {
    color: var(--text-color);
}

.original-proposal {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
}

.original-proposal strong {
    color: #856404;
}

.original-proposal p {
    margin: 5px 0;
    color: #856404;
}

/* Actions de modération */
.moderation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.moderation-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Modal de modération */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}

.modal-content form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions .btn {
    flex: 1;
}

/* Bouton de proposition dans la sidebar */
.propose-category-btn {
    margin-bottom: 15px;
}

.propose-category-btn .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.categories-separator {
    margin: 15px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* États vides */
.no-proposals {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-proposals i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    opacity: 0.5;
}

.no-proposals p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .propose-category-container,
    .moderation-container {
        padding: 15px;
    }
    
    .page-header {
        padding: 15px;
    }
    
    .page-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-header-text {
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .propose-form-section,
    .pending-proposals-section,
    .recent-proposals-section {
        padding: 20px;
    }
    
    .proposals-grid {
        grid-template-columns: 1fr;
    }
    
    .proposal-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .moderation-actions {
        flex-direction: column;
    }
    
    .moderation-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .proposal-card {
        padding: 15px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Styles pour la page de test */
.test-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.test-section h2 {
    margin-top: 0;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

#status {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

#status p {
    margin: 5px 0;
    font-family: monospace;
}

#status span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Styles pour les actions des posts dans les catégories */
.category-post-group .post-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-post-group .post-message:hover .post-actions {
    opacity: 1;
}

.category-post-group .btn-edit {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.category-post-group .btn-edit:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.category-post-group .btn-delete {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.category-post-group .btn-delete:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Styles pour l'édition en place */
.post-message.editing {
    position: relative;
}

.post-message.editing .post-text {
    display: none;
}

.post-message.editing .edit-form {
    display: block;
}

.post-message .edit-form {
    display: none;
}

.post-message .edit-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.post-message .edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.post-message .edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.post-message .edit-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.post-message .edit-actions .btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.post-message .edit-actions .btn-cancel:hover {
    background: var(--border-color);
}

.post-message .edit-actions .btn-save {
    background: var(--primary-color);
    color: white;
}

.post-message .edit-actions .btn-save:hover {
    background: var(--primary-color-dark);
}

/* Indicateur de modification */
.edited-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    opacity: 0.8;
}

.edited-indicator i {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* Styles pour les réactions */
.post-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.reactions-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.no-reactions {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    min-width: 32px;
    justify-content: center;
}

.reaction-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.reaction-btn.reacted {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reaction-emoji {
    font-size: 1rem;
}

.reaction-count {
    font-weight: 500;
    min-width: 8px;
    text-align: center;
}

.add-reaction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    position: relative;
}

.add-reaction-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
    transform: scale(1.1);
}

/* Picker de réactions */
.reaction-picker {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    min-width: 200px;
    margin-top: 4px;
}

/* Flèche du picker */
.reaction-picker::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--border-color);
}

.reaction-picker::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-color);
}

/* Flèche inversée quand le picker s'affiche vers le haut */
.reaction-picker[style*="bottom: 100%"]::before {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 6px solid var(--border-color);
}

.reaction-picker[style*="bottom: 100%"]::after {
    top: auto;
    bottom: -5px;
    border-bottom: none;
    border-top: 6px solid var(--bg-color);
}

/* Flèche à gauche quand le picker s'affiche à gauche */
.reaction-picker[style*="left: 0"]::before {
    right: auto;
    left: 10px;
}

.reaction-picker[style*="left: 0"]::after {
    right: auto;
    left: 10px;
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
    .reaction-picker {
        right: auto;
        left: 0;
        min-width: 160px;
    }
}

/* Picker affiché vers le haut */
.reaction-picker[style*="bottom: 100%"] {
    margin-bottom: 4px;
}

.reaction-picker.show {
    display: grid;
    animation: pickerFadeIn 0.2s ease;
}

@keyframes pickerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reaction-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.reaction-option:hover {
    background: var(--bg-secondary);
    transform: scale(1.2);
}

/* Positionnement relatif pour le conteneur des réactions */
.post-message {
    position: relative;
}

/* Animation pour les réactions */
@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.reaction-btn.reacted {
    animation: reactionPop 0.3s ease;
}

/* Responsive pour les réactions */
@media (max-width: 768px) {
    .post-reactions {
        gap: 6px;
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .reaction-btn {
        padding: 3px 6px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .reaction-emoji {
        font-size: 0.9rem;
    }
    
    .add-reaction-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .reaction-picker {
        grid-template-columns: repeat(4, 1fr);
        min-width: 160px;
        padding: 6px;
    }
    
    .reaction-option {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Section des posts de catégorie - Styles de base uniquement */
.category-posts-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-posts-content {
    padding: 0; /* Suppression du padding pour prendre toute la largeur */
}

/* État actif pour les catégories */
.category-item.active {
    background: var(--primary-color);
    color: white;
}

.category-item.active .category-name,
.category-item.active .category-desc {
    color: white;
}

.category-item.active .category-icon {
    color: white;
}



/* Styles pour l'encart d'envoi rapide de message */
.category-post-quick-form {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.quick-form-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.quick-form-input-group {
    flex: 1;
    position: relative;
}

.quick-form-input-group textarea {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-color);
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-form-input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.quick-form-image-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.quick-form-image-btn:hover {
    color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.1);
}

.quick-form-container .btn {
    height: 44px;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .category-post-form {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Sidebars fixes - Priorité sur les styles existants */
.fixed-sidebar {
    position: fixed !important;
    top: 0 !important; /* Collé au header */
    bottom: 0 !important; /* Collé au bas de l'écran */
    height: 100vh !important; /* Toute la hauteur de l'écran */
    max-height: none !important; /* Annule le max-height existant */
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important; /* Fond pour couvrir l'espace */
    border-radius: 0 !important; /* Pas de border-radius pour les sidebars fixes */
    box-shadow: none !important; /* Pas de shadow pour les sidebars fixes */
}

.twitch-sidebar.fixed-sidebar {
    left: 0 !important;
    width: 300px !important;
    min-width: 300px !important;
    padding-top: 80px !important; /* Espace pour le header */
    border-right: 1px solid var(--border-color) !important;
}

.categories-sidebar.fixed-sidebar {
    right: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    padding-top: 80px !important; /* Espace pour le header */
    border-left: 1px solid var(--border-color) !important;
}

/* Ajuster le contenu principal pour les sidebars fixes */
.home-layout {
    padding-left: 0; /* Pas de padding, les colonnes prennent toute la largeur */
    padding-right: 0;
    height: 100vh; /* Hauteur fixe pour éviter le scroll */
    overflow: hidden; /* Pas de scroll sur le layout principal */
}

/* Zone centrale fixe */
.fixed-main {
    position: fixed;
    top: 0; /* Collé au header */
    left: 300px; /* Largeur de la sidebar Twitch */
    right: 280px; /* Largeur de la sidebar Catégories */
    height: 100vh; /* Toute la hauteur de l'écran */
    overflow-y: auto;
    z-index: 50;
    background: var(--bg-color); /* Fond pour couvrir l'espace */
    padding-top: 80px; /* Espace pour le header */
}

/* Layout fixe pour la page friends - 4 colonnes égales */
.friends-layout {
    padding-left: 0; /* Pas de padding, les colonnes prennent toute la largeur */
    padding-right: 0;
    height: 100vh; /* Hauteur fixe pour éviter le scroll */
    overflow: hidden; /* Pas de scroll sur le layout principal */
}

.friends-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    left: 0 !important;
    width: 25% !important; /* Un quart de l'écran */
    min-width: 300px !important;
    padding-top: 80px !important;
    border-right: 1px solid var(--border-color) !important;
}

.search-column.fixed-main {
    position: fixed;
    top: 0;
    left: 25%; /* Un quart de l'écran */
    width: 25%; /* Un quart de l'écran */
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    background: var(--bg-color);
    padding-top: 80px;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

/* Supprimer le margin-bottom du dernier enfant pour éviter l'espace en bas */
.search-column.fixed-main > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.recent-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    right: 0 !important;
    width: 300px !important;
    min-width: 300px !important;
    padding-top: 80px !important;
    border-left: 1px solid var(--border-color) !important;
}

/* Layout fixe pour la page profile - Même style que la page d'accueil */
.profile-layout {
    padding-left: 0; /* Pas de padding, les colonnes prennent toute la largeur */
    padding-right: 0;
    height: 100vh; /* Hauteur fixe pour éviter le scroll */
    overflow: hidden; /* Pas de scroll sur le layout principal */
}

.profile-left-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    left: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    padding-top: 80px !important;
    border-right: 1px solid var(--border-color) !important;
}

.profile-main-column.fixed-main {
    position: fixed;
    top: 0;
    left: 280px; /* Largeur de la sidebar gauche */
    right: 0; /* Prend toute la largeur restante */
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    background: var(--bg-color);
    padding-top: 80px;
    padding: 80px 20px 20px 20px;
}

.profile-right-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    right: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    padding-top: 80px !important;
    border-left: 1px solid var(--border-color) !important;
}

/* Styles pour les utilisateurs en live sur Twitch */
.live-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
}

.live-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.live-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--text-color);
}

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

.live-user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.live-user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.live-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

.live-indicator i {
    color: white;
    font-size: 0.6rem;
}

.live-user-info {
    flex: 1;
    min-width: 0;
}

.live-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-user-game {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-user-viewers {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-user-viewers i {
    color: #ff4444;
    font-size: 0.7rem;
}

.no-live-users {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-live-users i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-live-users p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.no-live-users p:first-of-type {
    font-weight: 600;
    color: var(--text-color);
}

/* Styles pour les colonnes de profil */
.profile-avatar {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-basic-info {
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-basic-info h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-actions {
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-actions h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions .btn {
    width: 100%;
    text-align: left;
}

/* Responsive pour les sidebars fixes */
@media (max-width: 1400px) {
    .fixed-sidebar {
        position: static !important;
        height: auto !important;
        overflow-y: visible !important;
        width: auto !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        border: none !important;
    }
    
    .fixed-main {
        position: static !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        overflow-y: visible !important;
    }
    
    .home-layout,
    .friends-layout,
    .profile-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 0;
    }
    
    .twitch-sidebar.fixed-sidebar,
    .categories-sidebar.fixed-sidebar,
    .friends-column.fixed-sidebar,
    .recent-column.fixed-sidebar,
    .profile-left-column.fixed-sidebar,
    .profile-right-column.fixed-sidebar {
        width: auto !important;
        min-width: auto !important;
        padding: 20px !important;
        border-radius: var(--border-radius) !important;
        box-shadow: var(--shadow) !important;
        margin-bottom: 20px;
    }
    
    .search-column.fixed-main,
    .profile-main-column.fixed-main {
        flex: none;
        padding: 20px !important;
    }
}

.search-requests-split {
    display: flex;
    gap: 24px;
    height: 100%;
}
.search-requests-split > .search-section,
.search-requests-split > .requests-section {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .search-requests-split {
        flex-direction: column;
        gap: 20px;
    }
}

/* Layout fixe pour la page friends - 4 colonnes fixes */
.friends-layout {
    height: 100vh;
    overflow: hidden;
}

.friends-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    left: 0 !important;
    width: 25% !important; /* Un quart de l'écran */
    min-width: 300px !important;
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-right: 1px solid var(--border-color) !important;
}

.search-friends-column {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 50 !important;
    background: var(--bg-color) !important;
    left: 25% !important; /* Position à 25% pour être le deuxième quart */
    width: 25% !important; /* Un quart de l'écran */
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-right: 1px solid var(--border-color) !important;
}

.requests-column {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 50 !important;
    background: var(--bg-color) !important;
    left: 50% !important;
    width: 25% !important; /* Un quart de l'écran */
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-right: 1px solid var(--border-color) !important;
}

.recent-column.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    background: var(--bg-color) !important;
    left: 75% !important; /* Position à 75% pour être le dernier quart */
    width: 25% !important; /* Un quart de l'écran */
    min-width: 300px !important;
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-left: 1px solid var(--border-color) !important;
}

/* Styles pour les sections dans chaque colonne */
.friends-section,
.search-section,
.requests-section,
.recent-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    height: fit-content;
}

.friends-section:last-child,
.search-section:last-child,
.requests-section:last-child,
.recent-section:last-child {
    margin-bottom: 0;
}

/* Responsive - Empiler les colonnes */
@media (max-width: 1400px) {
    .friends-layout {
        height: auto;
        overflow: visible;
        padding-top: 80px;
    }
    
    .friends-column.fixed-sidebar,
    .search-friends-column,
    .requests-column,
    .recent-column.fixed-sidebar {
        position: static !important;
        width: auto !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        overflow-y: visible !important;
        padding: 20px !important;
        border: none !important;
        margin-bottom: 20px;
    }
    
    .friends-section,
    .search-section,
    .requests-section,
    .recent-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .friends-column.fixed-sidebar,
    .search-friends-column,
    .requests-column,
    .recent-column.fixed-sidebar {
        padding: 15px !important;
    }
    
    .friends-section,
    .search-section,
    .requests-section,
    .recent-section {
        padding: 15px;
    }
}

/* Styles spécifiques pour la colonne de recherche d'amis */
.search-friends-column .search-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    height: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.search-friends-column .search-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.search-friends-column .search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-friends-column .search-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 40px;
}

.search-friends-column .search-input-group .btn {
    width: 100%;
    margin-top: 10px;
}

.search-friends-column .search-results {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.search-friends-column .user-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.search-friends-column .user-card .user-info {
    max-width: 100%;
    overflow: hidden;
}

.search-friends-column .user-card .user-name {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.search-friends-column .user-card .user-actions {
    flex-wrap: wrap;
    gap: 5px;
}

.search-friends-column .user-card .btn {
    font-size: 0.8rem;
    padding: 5px 8px;
}

/* Indicateur de mise à jour en temps réel */
.live-indicator-small {
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.live-indicator-small i {
    color: #ff4444;
    font-size: 8px;
}

/* Animation pour l'indicateur de mise à jour */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

