/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5F7FA;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --badge-blue: #4A90E2;
    --badge-red: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Page rouge pour desktop */
.desktop-block {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.desktop-block.show {
    display: flex;
}

.desktop-message {
    text-align: center;
    color: white;
    padding: 40px;
}

.desktop-message h1 {
    font-size: 80px;
    margin-bottom: 20px;
}

.desktop-message h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
}

.desktop-message p {
    font-size: 18px;
    opacity: 0.9;
}

/* Contenu mobile */
.mobile-content {
    display: block;
    min-height: 100vh;
    padding-bottom: 80px;
}

.mobile-content.hide {
    display: none;
}

/* Header */
.page-header {
    background: white;
    padding: 20px 20px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 15px;
    background: var(--secondary-color);
    font-size: 15px;
    color: var(--text-secondary);
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

/* Sections */
.section {
    padding: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Grid de profils */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.profile-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 20px 15px 15px;
}

.profile-card-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Chat Page */
.activities-section {
    background: white;
    padding: 20px;
    margin-bottom: 10px;
}

.activities-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.activities-scroll::-webkit-scrollbar {
    display: none;
}

.activity-item {
    text-align: center;
    min-width: 80px;
}

.activity-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 8px;
}

.activity-name {
    font-size: 13px;
    color: var(--text-primary);
}

/* Messages */
.messages-section {
    background: white;
    padding: 20px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.message-item:hover {
    background: var(--secondary-color);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.message-item:last-child {
    border-bottom: none;
}

.message-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.message-preview {
    font-size: 14px;
    color: var(--text-secondary);
}

.message-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--badge-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Profile Page */
.profile-header {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main {
    background: white;
    padding: 20px;
    margin-top: -50px;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.profile-avatar-container {
    position: absolute;
    top: -60px;
    left: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}

.profile-info {
    margin-top: 70px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
}

.certified-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-job {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-about {
    margin: 25px 0;
}

.about-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-looking {
    margin: 25px 0;
}

.looking-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.looking-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--secondary-color);
    font-size: 14px;
    color: var(--text-primary);
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shopping Page */
.carousel-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--badge-red);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px 20px 20px;
    color: white;
}

.carousel-title {
    font-size: 22px;
    font-weight: 700;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Liste des partenaires */
.partners-list {
    background: white;
    border-radius: 20px;
    padding: 20px;
}

.partner-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.partner-item:last-child {
    border-bottom: none;
}

.partner-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.partner-info {
    flex: 1;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.partner-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.partner-arrow {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 20px;
}

/* Events Page */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.event-image-container {
    position: relative;
    aspect-ratio: 16/9;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px 20px 20px;
}

.event-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.event-participants {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.participants-avatars {
    display: flex;
    margin-right: 10px;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    object-fit: cover;
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participants-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.event-button {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 15px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.event-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 24px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover {
    color: var(--primary-color);
}

/* Responsive - Tablette */
@media (min-width: 768px) and (max-width: 1024px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Masquer sur desktop */
@media (min-width: 1025px) {
    .desktop-block {
        display: flex !important;
    }
    
    .mobile-content {
        display: none !important;
    }
}

