/* ============================================
   HOME PAGE MODERNE - STYLES
   ============================================ */

/* Hero section moderne */
.hero-modern {
    background: linear-gradient(135deg, #4A90E2 0%, #2C5282 50%, #B8D4F1 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-modern-content {
    text-align: center;
    color: white;
}

.hero-modern-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-sub-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: -15px 0 25px 30px;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 25px;
    font-style: italic;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-modern-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-member-count {
    font-weight: 700;
    font-size: 1.3em;
}

.hero-modern-cta {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero-modern-primary {
    background: white;
    color: #4A90E2;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-hero-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-hero-modern-primary:active {
    transform: translateY(-1px);
}

/* Stats modernes */
.hero-modern-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-icon {
    font-size: 2rem;
}

.hero-stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Section nouveaux membres moderne */
.new-members-modern {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px;
}

.section-subtitle-modern {
    font-size: 1.1rem;
    color: #718096;
    margin: 0;
}

.gender-section-modern {
    margin-bottom: 80px;
}

.gender-section-modern:last-child {
    margin-bottom: 0;
}

.gender-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.gender-icon {
    font-size: 2rem;
}

.gender-title-modern {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Grille de profils moderne */
.profiles-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Responsivité pour la grille 5 colonnes */
@media (max-width: 1400px) {
    .profiles-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.profile-card-modern {
    background: rgba(26, 31, 58, 0.98);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 195, 0, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
}

.profile-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 195, 0, 0.3);
    border-color: #FFD93D;
}

/* Overlay au hover pour indiquer que c'est cliquable */
.profile-card-modern::before {
    content: '👁️ Voir le profil';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF7F89, #E56B75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
    border: 2px solid #FFD93D;
}

.profile-card-modern:hover::before {
    opacity: 1;
}

.profile-card-modern .profile-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio carré (hauteur = largeur) */
    overflow: hidden;
}

.profile-card-modern .profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
}

.profile-card-modern:hover .profile-image {
    transform: scale(1.08);
}

/* Drapeau principal en haut à droite */
.profile-card-modern .profile-country-flag-main {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 24px;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 
        0 0 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: help;
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.profile-card-modern .profile-country-flag-main:hover {
    transform: scale(1.15);
}

/* Badge en ligne */
.profile-card-modern .online-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    background: #48bb78;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Badge bloqué */
.profile-card-modern .blocked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.9;
    z-index: 5;
}

.profile-card-content-modern {
    padding: 16px;
    background: rgba(26, 31, 58, 0.98);
}

.profile-card-content-modern h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD93D;
    margin: 0 0 6px;
}

.profile-card-content-modern .profile-location {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0;
}

.profile-card-location-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

.profile-card-location-modern::before {
    content: '📍';
}

/* Badge en ligne */
.profile-online-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(72, 187, 120, 0.95);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-online-badge::before {
    content: '●';
    font-size: 0.6rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-modern {
        padding: 80px 20px 60px;
    }
    
    .hero-modern-title {
        font-size: 2.2rem;
    }
    
    .hero-modern-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-modern-stats {
        gap: 20px;
    }
    
    .hero-stat-item {
        padding: 12px 16px;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .profiles-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .new-members-modern {
        padding: 60px 20px;
    }
    
    .gender-section-modern {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-modern-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stat-item {
        width: 100%;
        justify-content: center;
    }
    
    .profiles-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MESSAGE DE FERMETURE HERO
   ============================================ */

.hero-closing-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-style: italic;
    margin: 0;
    padding: 15px 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Masquer les anciennes sections */
.hero-fullscreen,
.hero-text-section {
    display: none;
}

/* ============================================
   DASHBOARD CONNECT� - NOUVEAUX STYLES
   ============================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dash-welcome h1 {
    font-size: 2rem;
    margin: 0;
    color: #2d3748;
}

.highlight-name {
    color: #4A90E2;
}

.dash-date {
    color: #718096;
    margin: 5px 0 0;
    font-size: 0.95rem;
}

/* 
.dash-avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

#dash-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}
*/

.status-indicator.online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #48bb78;
    border: 2px solid white;
    border-radius: 50%;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dash-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dash-column-main { display: flex; flex-direction: column; gap: 30px; }
.dash-column-side { display: flex; flex-direction: column; gap: 30px; }

.dash-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.see-all {
    font-size: 0.9rem;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

/* Quick Actions */
.dash-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dash-action-btn.secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.dash-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text strong { font-size: 1.1rem; margin-bottom: 2px; }
.btn-text small { font-size: 0.85rem; opacity: 0.9; }

/* Favorites List */
.favorites-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.favorites-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.favorites-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

.favorite-item {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.favorite-item:hover { transform: scale(1.05); }

.favorite-avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.favorite-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.favorite-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.favorite-status.online { background-color: #48bb78; }
.favorite-status.offline { background-color: #d1d5db; }

.favorite-name {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    color: #4a5568;
}

/* Mini Discovery Grid */
.mini-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.mini-profile-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.mini-profile-item:hover { transform: translateY(-3px); }

.mini-profile-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mini-birthday-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Progress Bar */
.completion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/*
.completion-icon { font-size: 1.5rem; }
.completion-card h4 { margin: 0; flex: 1; font-size: 1rem; }
.completion-value { font-weight: 700; color: #667eea; }

.progress-bar-container {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}
*/

.completion-hint {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .dash-main-grid {
        grid-template-columns: 1fr;
    }
    .dash-stats-grid {
        gap: 10px;
    }
    .stat-value { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-actions-row {
        grid-template-columns: 1fr;
    }
}

