/* ============================================
   MODERN SOCIAL NETWORK DESIGN - AFP
   ============================================ */

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs modernes - Charte AFP: Bleu (dominant), Vert, Blanc */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Shadows modernes */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Gradients - Charte AFP: Bleu (dominant), Vert, Blanc */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-warm: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER MODERNE
   ============================================ */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 80px;
    border-radius: var(--radius);
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Sur mobile, cacher le menu par défaut */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(30, 64, 175, 0.1);
}

/* Alterner les couleurs actives des liens nav */
.nav-link:nth-child(3).active,
.nav-link:nth-child(5).active {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
}

.nav-link:nth-child(3).active::before,
.nav-link:nth-child(5).active::before {
    background: var(--gradient-secondary);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.nav-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-link span {
    display: inline-block;
}

.nav-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border-light);
}

.nav-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-notification:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    transform: scale(1.1);
}

.nav-notification.has-notifications {
    color: var(--primary);
}

.notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-full);
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.user-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.user-avatar-menu:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-light);
    transition: transform 0.3s ease;
}

.user-avatar-menu:hover .user-avatar-img {
    transform: scale(1.1);
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--border-light);
    transition: transform 0.3s ease;
}

.user-avatar-menu:hover .user-avatar-placeholder {
    transform: scale(1.1);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-avatar-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 240px;
    border: 1px solid var(--border-light);
    animation: slideDown 0.2s ease;
    z-index: 1001;
    pointer-events: auto; /* Permet d'interagir avec le dropdown */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-avatar-menu:hover .user-dropdown,
.user-avatar-menu.active .user-dropdown {
    display: block;
}

/* Garder le dropdown ouvert quand on survole le dropdown lui-même */
.user-dropdown:hover {
    display: block !important;
}

/* Créer un pont invisible entre l'avatar et le dropdown pour éviter la fermeture */
.user-avatar-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    pointer-events: auto;
}

/* Garder le dropdown ouvert quand on survole le dropdown lui-même */
.user-dropdown:hover {
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    color: var(--primary);
}

.dropdown-item svg {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: var(--primary);
}

.dropdown-item-danger {
    color: var(--danger);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-item-danger svg {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-full);
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1003; /* Au-dessus de tout */
    position: relative;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1001; /* Entre le header (1000) et le menu (1002) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   BOUTONS MODERNES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Bouton vert pour certaines actions secondaires */
.btn-success {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8125rem;
    min-height: 32px;
    font-weight: 500;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8125rem;
    min-height: 32px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Style vert au survol pour tous les boutons principaux */
.btn:hover {
    border-color: var(--secondary);
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

/* Si le h1 contient des spans avec des couleurs spécifiques, ne pas appliquer le gradient */
.hero-text h1 .afp-name-hero,
.hero-text h1 .afp-white-hero {
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 56px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.15rem;
    padding: 18px 36px;
}

.hero-buttons .btn-outline {
    border: 3px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 1.15rem;
    padding: 18px 36px;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-success {
    background: var(--secondary);
    color: white;
    border: none;
}

.badge-primary {
    background: var(--primary);
    color: white;
    border: none;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 3rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Alterner les couleurs des icônes de stats */
.stat-card:nth-child(2) .stat-icon {
    color: var(--secondary);
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--secondary);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */
.valeurs-section,
.actualites-section,
.contact-section {
    padding: 5rem 0;
}

.valeurs-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ecfdf5 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.valeur-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.valeur-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

/* Alterner les couleurs des bordures des cartes valeurs */
.valeur-card:nth-child(2)::before,
.valeur-card:nth-child(4)::before {
    background: var(--gradient-secondary);
}

.valeur-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.valeur-card:hover::before {
    transform: scaleY(1);
}

.valeur-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Alterner les couleurs des icônes valeurs */
.valeur-card:nth-child(2) .valeur-icon,
.valeur-card:nth-child(4) .valeur-icon {
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.3));
}

.valeur-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Alterner les couleurs des titres valeurs */
.valeur-card:nth-child(2) h3,
.valeur-card:nth-child(4) h3 {
    color: var(--secondary);
}

/* ============================================
   ENGAGEMENT SECTION
   ============================================ */
.engagement-section {
    padding: 5rem 0;
}

.engagement-card {
    background: var(--gradient-secondary);
    color: white;
    padding: 5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.engagement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.engagement-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.engagement-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   ACTUALITÉS
   ============================================ */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.actualite-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.actualite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.actualite-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actualite-card:hover img {
    transform: scale(1.05);
}

.actualite-content {
    padding: 2rem;
}

.actualite-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.actualite-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

.actualite-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.actualite-author .author-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.actualite-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.actualite-author .text-muted {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

.actualite-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.actualite-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
}

.social-links a,
.social-link-footer {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.social-links a:hover,
.social-link-footer:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    color: var(--primary) !important;
}

.social-link-footer:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-form-section {
    padding: 3.5rem;
}

.auth-form-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.auth-image-section {
    background: var(--gradient-primary);
    color: white;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-image-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-image-section img {
    max-width: 250px;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.quote {
    font-style: italic;
    opacity: 0.95;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group .icon {
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-light);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: var(--primary-dark);
}

/* ============================================
   DASHBOARD
   ============================================ */
.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.dashboard-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Alterner les couleurs des cartes dashboard */
.dashboard-card:nth-child(2)::before,
.dashboard-card:nth-child(4)::before {
    background: var(--gradient-secondary);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.dashboard-stat {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.dashboard-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* ============================================
   ADMIN TABLES
   ============================================ */
.admin-table {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.admin-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--bg-secondary);
}

.section-card h2,
.section-card h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.75rem;
}

/* ============================================
   GROUPS
   ============================================ */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.group-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Alterner les couleurs des cartes groupes */
.group-card:nth-child(2)::before,
.group-card:nth-child(4)::before,
.group-card:nth-child(6)::before {
    background: var(--gradient-secondary);
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.group-card:hover::before {
    transform: scaleX(1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.group-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
}

.group-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.group-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-card,
.publication-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.publication-card:hover,
.publication-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.publication-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-light);
    transition: transform 0.3s ease;
}

.publication-author:hover .author-avatar {
    transform: scale(1.1);
}

.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid var(--border-light);
}

.publication-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.publication-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: scale(1.05);
}

.btn-icon.liked {
    color: var(--danger);
}

.btn-icon.liked:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.commentaires-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.commentaire-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}

/* Alterner les couleurs des bordures de commentaires */
.commentaire-item:nth-child(even) {
    border-left-color: var(--secondary);
}

.commentaire-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.commentaire-item strong {
    margin-right: 0.75rem;
    color: var(--primary);
}

.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.comment-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.comment-form button {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MEMBERS
   ============================================ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.member-avatar.large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.member-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.close:hover {
    background: var(--bg-secondary);
    color: var(--danger);
    transform: rotate(90deg);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--danger);
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: var(--secondary);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: var(--primary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-muted {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary);
}

/* Style pour le nom AFP avec A, F, P en blanc et le reste en vert */
.afp-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.afp-name {
    color: var(--secondary);
}

.afp-white {
    color: white;
}

/* Style spécifique pour le hero (fond bleu) */
.hero-text h1 .afp-name-hero {
    color: var(--secondary) !important;
}

.hero-text h1 .afp-white-hero {
    color: white !important;
}

/* Style pour register (lettres en bleu) */
.afp-blue {
    color: var(--primary);
}



/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   PROFILE STYLES
   ============================================ */
.profile-container {
    background: var(--bg-secondary);
}

.profile-cover {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    display: flex;
    gap: 2.5rem;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    border: 6px solid var(--bg-primary);
    overflow: hidden;
    position: relative;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-xl);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 700;
}

.avatar-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    border: 3px solid var(--bg-primary);
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.avatar-edit:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.profile-profession,
.profile-location {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.profile-stats {
    display: flex;
    gap: 3rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

.profile-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.profile-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.followers-list,
.following-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.follower-item,
.following-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.follower-item:hover,
.following-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.follower-avatar,
.following-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--border-light);
}

.follower-avatar img,
.following-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FEED STYLES
   ============================================ */
.feed-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.notification-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.notification-link:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.suggestion-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border: 2px solid var(--border-light);
}

.suggestion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-link {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.action-link:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-grid,
    .profile-content,
    .feed-container {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        order: 2;
    }
    
    .feed-main {
        order: 1;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablette - icônes seulement mais pas dans le header scrollable */
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 10px;
        min-width: 40px;
        justify-content: center;
    }
    
    .user-name {
        display: none;
    }
    
    .nav-user-section {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    /* Menu mobile dans le header avec icônes seulement */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .header-content::-webkit-scrollbar {
        display: none;
    }
    
    .logo {
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Menu visible dans le header avec icônes seulement */
    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 0.25rem;
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        height: auto;
        width: auto;
        background: transparent;
        box-shadow: none;
        overflow-y: visible;
    }
    
    .nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        min-width: 44px;
        height: 44px;
        border-radius: var(--radius);
        flex-shrink: 0;
        position: relative;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-link.active {
        background: rgba(30, 64, 175, 0.1);
        color: var(--primary);
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
    }
    
    /* Section utilisateur compacte */
    .nav-user-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-left: 0.5rem;
        padding: 0;
        border: none;
        flex-shrink: 0;
    }
    
    .nav-notification {
        width: 44px;
        height: 44px;
        padding: 0.5rem;
        justify-content: center;
        min-height: 44px;
        position: relative;
    }
    
    .user-avatar-menu {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        min-height: 44px;
        cursor: pointer;
    }
    
    .user-avatar-menu.active {
        background: rgba(30, 64, 175, 0.1);
    }
    
    .user-avatar-img,
    .user-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .user-dropdown {
        display: none !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: auto;
        min-width: 200px;
        max-width: calc(100vw - 40px);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
        margin-top: 0;
        animation: slideUp 0.3s ease;
        z-index: 1003;
        background: var(--bg-primary);
        border-radius: var(--radius-lg);
        padding: 8px;
    }
    
    .user-avatar-menu.active .user-dropdown {
        display: block !important;
    }
    
    /* Désactiver complètement le hover sur mobile */
    .user-avatar-menu:hover .user-dropdown {
        display: none !important;
    }
    
    /* S'assurer que le dropdown est cliquable sur mobile */
    .user-dropdown {
        pointer-events: auto;
    }
    
    .user-dropdown .dropdown-item {
        pointer-events: auto;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Cacher le bouton toggle et l'overlay */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Main content padding for mobile */
    .main-content,
    .facebook-main-content {
        padding: 1rem 0;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .auth-card {
        grid-template-columns: 1fr;
    }
    
    .auth-image-section {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        margin-top: -60px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .profile-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .groups-grid,
    .members-grid,
    .actualites-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   FACEBOOK-LIKE LAYOUT
   ============================================ */
.facebook-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 80px);
}

.facebook-sidebar-left {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.facebook-sidebar-right {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.facebook-main-content {
    min-width: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.sidebar-nav-item:hover {
    background: var(--bg-secondary);
}

.sidebar-nav-item.active {
    background: var(--primary);
    color: white;
}

/* Alterner les couleurs actives de la sidebar */
.sidebar-nav-item:nth-child(3).active,
.sidebar-nav-item:nth-child(5).active {
    background: var(--secondary);
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-card-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-card-item:hover {
    background: var(--bg-secondary);
}

.sidebar-card-item:last-child {
    margin-bottom: 0;
}

.sidebar-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.sidebar-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Cover Facebook Style */
.profile-cover-fb {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.profile-cover-fb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-fb {
    background: var(--bg-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-header-fb-content {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.profile-avatar-fb {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    overflow: hidden;
    background: var(--primary);
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-fb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fb .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 700;
}

.profile-info-fb {
    flex: 1;
    padding-bottom: 1rem;
}

.profile-info-fb h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-info-fb .profile-meta {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-actions-fb {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-tabs-fb {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

.profile-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.profile-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--primary);
}

/* Alterner les couleurs des onglets actifs */
.profile-tab:nth-child(2).active {
    color: var(--secondary);
}

.profile-tab:nth-child(2).active::after {
    background: var(--secondary);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Messages Facebook Style */
.messages-layout-fb {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 650px;
    max-width: 100%;
}

.messages-sidebar-fb {
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.messages-header-fb {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.messages-search-fb {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.messages-search-fb input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    font-size: 0.9rem;
}

.conversations-list-fb {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.conversations-list-fb::-webkit-scrollbar {
    width: 6px;
}

.conversations-list-fb::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list-fb::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.conversations-list-fb::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.conversation-item-fb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
    cursor: pointer;
}

.conversation-item-fb:hover {
    background: var(--bg-secondary);
}

.conversation-item-fb.active {
    background: rgba(25, 118, 210, 0.08);
    border-left: 3px solid var(--primary);
}

.conversation-item-fb .sidebar-card-avatar {
    flex-shrink: 0;
}

.messages-main-fb {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.messages-chat-header-fb {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.messages-list-fb {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scroll-behavior: smooth;
}

.messages-list-fb::-webkit-scrollbar {
    width: 6px;
}

.messages-list-fb::-webkit-scrollbar-track {
    background: transparent;
}

.messages-list-fb::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.messages-list-fb::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.message-bubble {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.message-bubble.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

.message-bubble-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--bg-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.message-bubble.sent .message-bubble-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble:not(.sent) .message-bubble-content {
    border-bottom-left-radius: 4px;
}

.messages-input-fb {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.messages-input-wrapper-fb {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.messages-input-wrapper-fb input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
}

/* Members Grid Facebook Style */
.members-grid-fb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.member-card-fb {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card-fb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-card-link {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.member-info {
    width: 100%;
    margin-top: 1rem;
}

.member-avatar-fb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    overflow: hidden;
}

.member-avatar-fb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.member-card-fb h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.member-card-fb .text-muted {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.member-action-form {
    display: inline;
}

.member-message-btn {
    padding: 6px 10px !important;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-message-btn svg {
    width: 16px;
    height: 16px;
}

.member-message-btn span {
    display: none;
}

/* Styles pour la recherche de membres */
.members-search-card {
    margin-bottom: 1.5rem;
}

.members-search-form {
    margin-top: 1rem;
}

.members-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.members-search-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.members-search-input-wrapper svg {
    position: absolute;
    left: 12px;
    pointer-events: none;
    z-index: 1;
}

.members-search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.members-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.members-region-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.members-region-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Sections mobile pour suggestions et invitations */
.members-mobile-sections {
    display: none;
    margin-bottom: 1.5rem;
}

.members-mobile-card {
    margin-bottom: 1rem;
}

.invitations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invitation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.invitation-info {
    flex: 1;
    min-width: 0;
}

.invitation-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.invitation-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.suggestion-item-mobile:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .facebook-layout {
        grid-template-columns: 250px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .facebook-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .facebook-sidebar-left,
    .facebook-sidebar-right {
        position: static;
        max-height: none;
    }
    
    .messages-layout-fb {
        grid-template-columns: 1fr;
        height: calc(100vh - 80px);
        min-height: calc(100vh - 80px);
        border-radius: 0;
        margin: 0;
    }
    
    .messages-sidebar-fb {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1001;
        background: var(--bg-primary);
        border-right: none;
        border-bottom: none;
    }
    
    .messages-sidebar-fb.show {
        display: flex;
    }
    
    .messages-main-fb {
        min-height: calc(100vh - 80px);
        height: calc(100vh - 80px);
    }
    
    .back-to-conversations-btn {
        display: flex !important;
    }
    
    .messages-chat-header-fb {
        padding: 0.75rem 1rem;
    }
    
    .messages-chat-header-fb .btn {
        display: none;
    }
    
    .profile-header-fb-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar-fb {
        width: 150px;
        height: 150px;
    }
}

/* Mobile - 768px et moins */
@media (max-width: 768px) {
    /* Container et spacing */
    .container {
        padding: 0 1rem;
    }
    
    /* Header mobile */
    .header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Navigation mobile */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Feed mobile */
    .feed-container {
        padding: 1rem 0;
    }
    
    .feed-main {
        padding: 0;
    }
    
    .publication-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .publication-header {
        margin-bottom: 0.75rem;
    }
    
    .publication-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .publication-actions button {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    /* Profile mobile */
    .profile-cover-fb {
        height: 200px;
        border-radius: 0;
    }
    
    .profile-header-fb {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .profile-header-fb-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -60px;
    }
    
    .profile-avatar-fb {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .profile-info-fb h1 {
        font-size: 1.5rem;
    }
    
    .profile-actions-fb {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-actions-fb .btn {
        width: 100%;
    }
    
    .profile-tabs-fb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .profile-tab {
        flex: 1;
        min-width: calc(50% - 0.125rem);
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Messages mobile */
    .messages-container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .messages-layout-fb {
        height: calc(100vh - 80px);
        min-height: calc(100vh - 80px);
        border-radius: 0;
        margin: 0;
    }
    
    .messages-sidebar-fb {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        z-index: 1001;
        background: var(--bg-primary);
        border-right: none;
        border-bottom: none;
    }
    
    .messages-sidebar-fb.show {
        display: flex;
    }
    
    .messages-main-fb {
        display: none;
        min-height: calc(100vh - 80px);
        height: calc(100vh - 80px);
    }
    
    .messages-main-fb.show {
        display: flex;
    }
    
    .back-to-conversations-btn {
        display: none !important;
        color: var(--text-primary);
    }
    
    .messages-main-fb.show .back-to-conversations-btn {
        display: flex !important;
    }
    
    .messages-chat-header-fb {
        padding: 0.75rem 1rem;
    }
    
    .messages-chat-header-fb .btn {
        display: none;
    }
    
    .messages-list-fb {
        padding: 1rem 0.75rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .messages-input-fb {
        padding: 0.75rem;
    }
    
    .messages-input-wrapper-fb {
        gap: 0.5rem;
    }
    
    .messages-input-wrapper-fb input {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 0.75rem;
    }
    
    .messages-input-wrapper-fb .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Groups mobile */
    .group-card {
        padding: 1rem;
    }
    
    .group-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .group-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .group-actions .btn {
        width: 100%;
    }
    
    /* Members mobile */
    .members-grid-fb {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .member-card-fb {
        padding: 1rem;
    }
    
    .member-avatar-fb {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Forms mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Modals mobile */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Cards mobile */
    .section-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-card h2,
    .section-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* Sidebar mobile */
    .facebook-sidebar-left,
    .facebook-sidebar-right {
        display: none;
    }
    
    /* Afficher les sections mobile */
    .members-mobile-sections {
        display: block;
    }
    
    .sidebar-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Comments mobile */
    .comment-item {
        padding: 0.75rem;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Notifications mobile */
    .notification-item {
        padding: 0.75rem;
    }
    
    /* Search mobile */
    .search-results {
        padding: 1rem 0;
    }
    
    /* Admin pages mobile */
    .admin-content {
        padding: 1rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    /* Course pages mobile */
    .course-card {
        padding: 1rem;
    }
    
    .course-detail-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Utilities mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    /* Spacing mobile */
    .mb-mobile-1 {
        margin-bottom: 0.5rem;
    }
    
    .mb-mobile-2 {
        margin-bottom: 1rem;
    }
    
    .p-mobile-1 {
        padding: 0.5rem;
    }
    
    .p-mobile-2 {
        padding: 1rem;
    }
}

/* Small mobile - 480px et moins */
@media (max-width: 480px) {
    /* Header très petit */
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Navigation très petit */
    .nav {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
    
    /* Cards très petit */
    .publication-card,
    .section-card,
    .group-card {
        padding: 0.75rem;
    }
    
    /* Text très petit */
    .profile-info-fb h1 {
        font-size: 1.25rem;
    }
    
    .profile-avatar-fb {
        width: 100px;
        height: 100px;
    }
    
    /* Messages très petit */
    .message-bubble {
        max-width: 90%;
    }
    
    .message-bubble-content {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    /* Members très petit */
    .members-grid-fb {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .member-avatar-fb {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Buttons très petit */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Forms très petit */
    .form-control {
        padding: 0.625rem;
        font-size: 16px;
    }
    
    /* Modals très petit */
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 100px);
        padding: 0.75rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .messages-layout-fb {
        height: calc(100vh - 60px);
    }
    
    .messages-sidebar-fb {
        max-height: 40vh;
    }
    
    .profile-cover-fb {
        height: 150px;
    }
    
    .profile-header-fb-content {
        margin-top: -50px;
    }
    
    .profile-avatar-fb {
        width: 100px;
        height: 100px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Augmenter les zones de touch */
    .nav-link,
    .btn,
    .conversation-item-fb,
    .member-card-fb,
    .group-card,
    .publication-card {
        min-height: 44px;
    }
    
    /* Désactiver les hover effects sur mobile */
    .publication-card:hover,
    .group-card:hover,
    .member-card-fb:hover,
    .suggestion-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Améliorer les inputs pour mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Améliorer les boutons pour mobile */
    button,
    .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* Améliorations supplémentaires pour mobile */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Améliorer la lisibilité */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Optimiser les performances */
    .publication-card,
    .group-card,
    .member-card-fb {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Améliorer les modals sur mobile */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Améliorer les listes scrollables */
    .conversations-list-fb,
    .messages-list-fb {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimiser les animations */
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Améliorer les formulaires */
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    /* Améliorer les badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Améliorer les tooltips */
    [title] {
        cursor: help;
    }
}

/* Améliorations pour très petits écrans */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .publication-card,
    .section-card,
    .group-card {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .profile-avatar-fb {
        width: 80px;
        height: 80px;
    }
    
    .profile-info-fb h1 {
        font-size: 1.125rem;
    }
}
