body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.top-bar {
    background: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 250px;
    outline: none;
}

.profile-nav {
    position: relative;
}

.profile-icon {
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 150px;
    z-index: 1000;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-interaction {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.btn-like {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    color: #333;
}

.btn-dark {
    background: #333;
    color: white !important;
    text-decoration: none;
    padding: 0 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.btn-report {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    box-sizing: border-box;
}

.btn-admin {
    background: #27ae60;
    color: white !important;
    text-decoration: none;
    padding: 0 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.btn-admin:hover {
    background: #1e8449;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.info-item span {
    display: block;
    color: #888;
    font-size: 13px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.img-box {
    height: 180px;
    background: #f0f0f0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 15px;
}

.price {
    color: #ff6b6b;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

body.dark {
    background-color: #121212;
    color: #eeeeee;
}

body.dark .top-bar {
    background-color: #1e1e1e;
}

body.dark .profile-card,
body.dark .product-card,
body.dark .modal-content {
    background-color: #1f1f1f;
    color: #eeeeee;
}

body.dark input,
body.dark button {
    background-color: #2a2a2a;
    color: #ffffff;
    border-color: #444;
}

body.dark a {
    color: #9ecfff;
}

.btn-theme {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-theme:hover {
    background-color: #000;
    transform: translateY(-1px);
}

.abonnement-bloc {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.abo-compteur {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #444;
    white-space: nowrap;
}

.abo-compteur i {
    font-size: 1rem;
    line-height: 1;
}

#abo-count {
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.abo-label {
    color: #666;
    font-size: 0.85rem;
    line-height: 1;
}

.btn-abo {
    padding: 6px 14px;
    border-radius: 999px;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.btn-abo:hover {
    background: #222;
    color: #fff;
}

.btn-abo.abonne {
    background: #222;
    color: #fff;
}

.btn-abo.abonne:hover {
    background: #c0392b;
    border-color: #c0392b;
}

@keyframes pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.pop { animation: pop 0.3s ease; }

 .btn-report {
    background: #fff;
     color: #e74c3c;
     border: 2px solid #e74c3c;
     padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 5px;
     transition: all 0.2s ease;
     white-space: nowrap;
     height: 32px;
     box-sizing: border-box;
}

.btn-report:hover { background: #e74c3c; color: #fff; 
}

.modal-signalement {
     position: fixed;
     top: 0; left: 0;
     width: 100%; height: 100%;
     background: rgba(0,0,0,0.5);
     z-index: 9000;
     display: flex;
     align-items: center;
     justify-content: center;
 }
   
 .modal-signalement-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
    
.modal-signalement-content h3 {
     margin: 0 0 8px;
     font-size: 1.2rem;
     color: #e74c3c;
}
    
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
 }
    
 .signalement-options {
     display: flex;
     flex-direction: column;
     gap: 10px;
     margin: 14px 0;
}
    
.signalement-options label {
     display: flex;
     align-items: center;
     gap: 8px;
     cursor: pointer;
     font-size: 0.95rem;
     color: #333;
}
    
.btn-confirmer-sig {
     width: 100%;
     background: #e74c3c;
     color: #fff;
     border: none;
     padding: 10px;
    border-radius: 25px;
    font-size: 0.95rem;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.2s;
     margin-top: 6px;
 }
    
 .btn-confirmer-sig:hover { background: #c0392b; 
}
    
body.dark .modal-signalement-content { background: #1f1f1f; color: #eee; 
}
    
body.dark .signalement-options label { color: #ddd; 
}