﻿
:root {
    --primary-color: #13357B;
    --secondary-color: #FF5A5F;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Mobile-first approach */
.profile-section {
    background: #E1E1E1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 600px;
    position: relative;
}

.profile-images {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin: -50px auto 1rem; /* Ajusté pour descendre l'image */
    display: block;
    background: white;
    box-shadow: var(--shadow);
}

.user-info {
    text-align: center;
    padding: 0 1rem;
}

.user-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.verification-badge {
    color: var(--primary-color);
    font-size: 1.2rem;
    vertical-align: middle;
}

.user-details {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 100px;
    flex: 1;
}

    .btn-contact:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.btn-koma {
    background: #8563B4;
    color: white;
    border: none;
}

.btn-call {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-share {
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
}

/* Share menu styles */
.share-menu {
    display: none;
    position: absolute;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 1000;
    width: 200px;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

    .share-menu.show {
        display: block;
    }

.share-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

    .share-option:hover {
        background-color: #f8f9fa;
    }

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-details {
    padding: 1rem;
}

.product-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    height: 40px;
    overflow: hidden;
    font-weight: 500;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reduced-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-details {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

    .btn-details:hover {
        background-color: #0d2a5a;
    }

.section-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    text-align: center;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .profile-images {
        margin-top: -44px; /* 6px de plus vers le bas pour small screens */
    }

    .contact-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn-contact {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .profile-section {
        padding: 2rem;
    }

    .user-name {
        font-size: 1.75rem;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .btn-contact {
        min-width: 120px;
        padding: 0.75rem 1rem;
    }
}


.modal-content {
    border-radius: 16px;
    border: none;
}


.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px; /* Espace entre les boutons */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

    .action-btn:hover {
        background-color: #0d2a5a;
    }

.comment-count {
    font-size: 0.8rem;
}

.btn-comment {
    background: #6c757d;
}

    .btn-comment:hover {
        background: #5a6268;
    }
