* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #ffffff; /* Fond blanc pur */
    color: #1f2937; /* Texte gris foncé */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Animated Background */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: #10b981; /* Vert émeraude */
    animation-delay: 0s;
    opacity: 0.08; /* Plus subtil sur fond blanc */
}

.blob-2 {
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: #059669; /* Vert foncé */
    animation-delay: 5s;
    opacity: 0.08; /* Plus subtil sur fond blanc */
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 1rem 0 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 1.5rem;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 3s infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.logo-box {
    position: relative;
    background: transparent; /* Pas de fond, juste le blur */
    padding: 0.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: bold;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.avatar-group {
    display: flex;
    margin-left: 1rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #e5e7eb;
    margin-left: -8px;
}

.btn-notifications {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #f9fafb; /* Fond gris très clair */
    backdrop-filter: blur(10px);
    border: 2px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 50%;
    color: #1f2937; /* Texte gris foncé */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-notifications:hover {
    transform: scale(1.1);
    background: #f3f4f6; /* Gris un peu plus foncé au hover */
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3); /* Ombre verte */
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #ffffff;
}

/* Guest header styles */
.users-avatars {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 1rem;
}

.user-avatar-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    border: 2px solid white;
    margin-left: -8px;
    position: relative;
    z-index: 1;
}

.user-avatar-header:first-child {
    margin-left: 0;
    z-index: 10;
}

.user-avatar-header img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.users-count {
    margin-right: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-register {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-login-header {
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-login-header:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-messages {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #f9fafb; /* Fond gris très clair */
    backdrop-filter: blur(10px);
    border: 2px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 50%;
    color: #1f2937; /* Texte gris foncé */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-messages:hover {
    transform: scale(1.1);
    background: #f3f4f6; /* Gris un peu plus foncé au hover */
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3); /* Ombre verte */
}

.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #ffffff;
}

.btn-profile {
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.btn-profile:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    margin: 2rem 0 1.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;

}

.hero h2 {
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1f2937, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.hero p {
    font-size: 1.125rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    margin-bottom: 2rem;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 650px;
    width: 100%;
}

.search-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 2rem;
    filter: blur(30px);
    opacity: 0.5;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 0;
}

.search-bar {
    position: relative;
    background: #f9fafb; /* Fond gris très clair */
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 1.5rem;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1; /* Above the glow */
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #1f2937; /* Texte gris foncé */
    font-size: 0.95rem;
    padding: 0 0.75rem;
}

.search-input::placeholder {
    color: #9ca3af; /* Gris moyen pour placeholder */
}

.btn-search {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 1.25rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
}

.btn-filters {
    padding: 0.6rem 0.8rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-filters:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.filters-panel {
    position: relative;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Above search bar */
    pointer-events: auto; /* Ensure clicks work */
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #1f2937;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.filter-select:focus {
    background: #ffffff;
    border-color: #10b981;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-filter-apply {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-filter-clear {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter-clear:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results svg {
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 0.9375rem;
    color: #6b7280;
}

.card {
    position: relative;
    background: #ffffff; /* Fond blanc pour les cartes */
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Ombre légère */
    border-radius: 2rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.card.tall {
    grid-row: span 2;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover .card-glow {
    opacity: 0.3;
}

.card:hover {
    background: #f9fafb; /* Fond gris très clair au hover */
    border-color: #d1d5db; /* Bordure gris moyen au hover */
    transform: translateY(-5px);
}

.card-image {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 0.5s;
    border: 2px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ombre plus légère */
}

.card.large .card-image {
    width: 120px;
    height: 120px;
    top: 3rem;
    right: 3rem;
}

.card:not(.large) .card-image {
    top: 1.5rem;
    right: 1.5rem;
}

.card:hover .card-image {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-condition-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-transform: capitalize;
}

.card-content {
    margin-top: 1rem;
}

.card.large .card-content {
    margin-top: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.5s;
}

.card.large .card-title {
    font-size: 2.5rem;
}

.card:hover .card-title {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-desc {
    color: #6b7280; /* Gris moyen pour fond blanc */
    margin-bottom: 1.5rem;
}

.card.large .card-desc {
    font-size: 1.125rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.card.large .user-avatar {
    width: 48px;
    height: 48px;
}

/* Ensure profile image inside avatar is correctly sized */
.user-avatar.has-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-location {
    font-size: 0.75rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-time {
    color: #6b7280; /* Gris moyen pour fond blanc */
    font-size: 0.875rem;
}

.card-interested {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: #1a4109; /* Fond gris très clair */
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 15;
}

.card:not(.large) .card-interested {
    top: 5rem;
}

.card.large .card-interested {
    top: 8rem;
    right: 3rem;
}

.card-interested:hover {
    background: #f3f4f6; /* Fond gris clair au hover */
    transform: scale(1.1);
}

.card-interested.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.card-interested.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.card-interested svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    transition: all 0.3s;
}

.card-interested::after {
    content: 'Interested';
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.card-interested:hover::after {
    opacity: 1;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border-radius: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.btn-details {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0f172a;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-details:hover {
    transform: scale(1.05);
}

/* Floating Add Button */
.btn-add {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
    transition: all 0.5s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    transform: scale(1.1) rotate(90deg);
}

.btn-join-community {
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-join-community:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(16, 185, 129, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: #ffffff; /* Fond blanc pour les modals */
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Ombre */
    border-radius: 1.25rem;
    padding: 1rem;
}

/* Hide scrollbars but keep functionality if needed */
.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 50%;
    color: #1f2937; /* Texte gris foncé */
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background:#eb9797; /* Gris un peu plus foncé au hover */
    border-color: #000000; 
    color: white;/* Bordure plus foncée */
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Image Carousel in Modal */
.modal-image-carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 220px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

.carousel-btn:hover {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.modal-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 1.25rem;
    margin: 0 auto 1rem;
    display: block;
    border: 2px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937; /* Texte gris foncé */
}

.modal-desc {
    color: #6b7280; /* Gris moyen pour fond blanc */
    font-size: 0.9rem;
}

.modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-box {
    padding: 0.5rem;
    background: #f9fafb; /* Fond gris très clair */
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb; /* Bordure gris clair */
}

.info-label {
    font-size: 0.8rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-profile-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb; /* Fond gris très clair */
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb; /* Bordure gris clair */
}

.modal-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
    overflow: hidden; /* avoid image overflow */
}

.modal-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.modal-user-info {
    flex: 1;
}

.modal-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-user-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 0.85rem;
}

.star.empty {
    color: #4b5563;
}

.rating-value {
    font-weight: 600;
    color: #fbbf24;
    font-size: 0.9rem;
}

.reviews-count {
    font-size: 0.8rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.reviews-count:hover {
    color: #60a5fa;
}

/* Messages Modal */
/* Notifications Modal */
.notifications-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.notifications-modal.active {
    display: flex;
}

.notifications-modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid #10b981;
}

.notification-item.unread:hover {
    background: rgba(16, 185, 129, 0.1);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.notification-message {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #9ca3af;
    font-size: 0.75rem;
}

.notification-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.messages-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.messages-modal.active {
    display: flex;
}

.messages-modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff; /* Fond blanc */
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Ombre */
    border-radius: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#messagesListView {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
}

#messagesListView h2 {
    flex-shrink: 0;
    margin: 0 0 1rem 0;
    padding: 0;
    color: #1f2937; /* Texte gris foncé pour le titre */
    font-size: 1.5rem;
    font-weight: 700;
}

#messagesListMain {
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#messagesListMain::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#conversationView {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#conversationView .conversation-header {
    flex-shrink: 0;
}

#conversationView .conversation-actions {
    flex-shrink: 0;
}

#conversationView .conversation-input-container {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb; /* Bordure gris clair */
}

/* Conversation styles for messages modal */
.conversation-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; /* Bordure gris clair */
}

.conversation-header h2 {
    color: #1f2937; /* Texte gris foncé */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.conversation-header p {
    color: #6b7280; /* Texte gris moyen */
    font-size: 0.875rem;
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.conversation-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#mainConversationMessages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem 0;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#mainConversationMessages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#mainConversationActions {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

#mainConversationInput {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 0.75rem;
    color: #1f2937; /* Texte gris foncé */
    font-size: 0.875rem;
}

#mainConversationInput:focus {
    outline: none;
    border-color: #10b981; /* Bordure verte au focus */
}

#mainConversationInput::placeholder {
    color: #9ca3af; /* Placeholder gris */
}

.message {
    margin-bottom: 0;
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.875rem 1rem;
    border-radius: 1.25rem;
    background: #f3f4f6; /* Fond gris clair pour messages reçus */
    position: relative;
    word-wrap: break-word;
}

.message-sent .message-content {
    background: linear-gradient(135deg, #10b981, #059669);
    border-bottom-right-radius: 0.25rem;
}

.message-received .message-content {
    background: #f3f4f6; /* Fond gris clair pour messages reçus */
    border-bottom-left-radius: 0.25rem;
    color: #1f2937; /* Texte gris foncé */
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    color: #1f2937; /* Texte gris foncé */
}

.message-sent .message-content p {
    color: white; /* Texte blanc pour messages envoyés (sur fond vert) */
}

.message-time {
    font-size: 0.7rem;
    color: #6b7280; /* Gris moyen pour l'heure */
    margin-top: 0.5rem;
    display: block;
}

.message-sent .message-time {
    text-align: right;
}

/* Read Receipts */
.read-receipt {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-block;
}

.read-receipt.pending {
    color: #9ca3af;
}

.read-receipt.sent {
    color: #6b7280;
}

.read-receipt.read {
    color: #10b981;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.conversation-actions {
    margin-bottom: 1rem;
}

.conversation-buttons {
    display: flex;
    gap: 1rem;
}

.btn-accept, .btn-reject, .btn-confirm {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-accept:hover, .btn-reject:hover, .btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.conversation-input-container {
    display: flex;
    gap: 0.5rem;
}

.conversation-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 0.75rem;
    color: #1f2937; /* Texte gris foncé */
    font-size: 0.875rem;
}

.conversation-input:focus {
    outline: none;
    border-color: #10b981; /* Bordure verte au focus */
}

.conversation-input::placeholder {
    color: #9ca3af; /* Placeholder gris */
}

.conversation-send {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.conversation-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.conversation-send svg {
    width: 20px;
    height: 20px;
}

/* Conversation List Item */
.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.conversation-item:hover {
    background: #f3f4f6; /* Fond gris clair au hover */
    border-color: #d1d5db; /* Bordure plus foncée */
    transform: translateX(5px);
}

.conversation-item.unread {
    background: rgba(16, 185, 129, 0.1); /* Fond vert très clair pour non-lus */
    border-color: rgba(16, 185, 129, 0.3); /* Bordure verte */
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #10b981, #059669);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937; /* Texte gris foncé */
    margin: 0;
}

.conversation-time {
    font-size: 0.75rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    white-space: nowrap;
}

.conversation-preview {
    font-size: 0.875rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-item.unread .conversation-preview {
    color: #1f2937; /* Texte gris foncé pour non-lus */
    font-weight: 600; /* Plus gras pour les non-lus */
}

.unread-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
    margin-left: auto;
}

.reviews-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.reviews-modal.active {
    display: flex;
}

.reviews-content {
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff; /* Fond blanc */
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Ombre */
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reviews-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-modal .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.reviews-modal .modal-close:hover {
    background: #f3f4f6; /* Fond gris clair au hover */
    border-color: #d1d5db; /* Bordure plus foncée */
    transform: rotate(90deg);
}

.reviews-modal .modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

#reviewsList {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reviews-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.feedback-modal.active {
    display: flex;
}

.feedback-modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 2rem;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feedback-modal-content::-webkit-scrollbar {
    display: none;
}

/* Online Status Indicator */
.online-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 0.25rem;
    position: relative;
}

.online-status.online {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse-online 2s infinite;
}

.online-status.offline {
    background-color: #9ca3af;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    }
}

.feedback-type-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feedback-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.feedback-type-btn:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.feedback-type-btn.active {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.star-rating {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star-rating:hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating.active {
    color: #fbbf24;
}

.feedback-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.btn-skip {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-skip:hover {
    background: #e5e7eb;
    color: #374151;
}

.request-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.request-modal.active {
    display: flex;
}

.request-modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 2rem;
}

.review-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-user {
    font-weight: 600;
    font-size: 1rem;
    color: #1b9327;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-date {
    font-size: 0.8rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    font-weight: 400;
}

.review-stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.review-stars .star {
    font-size: 1.1rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.review-stars .star.empty {
    color: rgba(255, 255, 255, 0.2);
    filter: none;
}

.review-text {
    color: #000000;
    line-height: 1.6;
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover:not(:disabled) {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5);
}

.btn-contact:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Add Item Modal */
.add-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.add-modal.active {
    display: flex;
}

.add-modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff; /* Fond blanc */
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Ombre */
    border-radius: 2rem;
    padding: 2rem;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.add-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.add-modal-content h2 {
    color: #1f2937; /* Texte gris foncé */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280; /* Gris moyen pour fond blanc */
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 1rem;
    color: #1f2937; /* Texte gris foncé */
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    background: #ffffff; /* Fond blanc au focus */
    border-color: #10b981; /* Bordure verte au focus */
}

.form-input::placeholder {
    color: #9ca3af; /* Placeholder gris moyen */
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f0fdf4; /* Fond vert très clair */
    border: 2px solid #10b981; /* Bordure verte */
    border-radius: 1rem; /* Plus arrondi */
    color: #047857; /* Texte vert foncé */
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1); /* Ombre subtile verte */
    appearance: none; /* Supprime le style par défaut du navigateur */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23047857' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); /* Flèche personnalisée verte */
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 2.5rem; /* Espace pour la flèche */
}

.form-select:hover {
    background-color: #ecfdf5; /* Fond vert plus prononcé au survol */
    border-color: #059669; /* Bordure vert foncé au survol */
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15); /* Ombre plus marquée */
    transform: translateY(-1px); /* Légère élévation */
}

.form-select:focus {
    background-color: #ffffff; /* Fond blanc au focus */
    border-color: #047857; /* Bordure vert très foncé au focus */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 4px 12px rgba(16, 185, 129, 0.2); /* Double ombre au focus */
    transform: translateY(-2px); /* Plus d'élévation au focus */
}

.form-select option {
    background: #ffffff; /* Fond blanc pour les options */
    color: #047857; /* Texte vert foncé */
    padding: 0.875rem 1rem; /* Plus d'espace généreux */
    border-radius: 0.75rem; /* Options plus arrondies */
    margin: 0.125rem 0; /* Espacement entre options */
    font-weight: 500; /* Texte légèrement plus épais */
    transition: all 0.2s ease; /* Animation fluide */
    border: 1px solid transparent; /* Bordure transparente par défaut */
}

.form-select option:hover {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5); /* Dégradé vert clair au survol */
    color: #059669; /* Texte vert au survol */
    border-color: #10b981; /* Bordure verte au survol */
    transform: translateX(4px); /* Léger décalage au survol */
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1); /* Ombre subtile */
}

.form-select option:checked,
.form-select option:selected {
    background: linear-gradient(135deg, #10b981, #059669); /* Dégradé vert pour option sélectionnée */
    color: #ffffff; /* Texte blanc pour option sélectionnée */
    font-weight: 600; /* Texte plus épais pour sélection */
    border-color: #047857; /* Bordure vert foncé */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); /* Halo vert */
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb; /* Fond gris très clair */
    border: 1px solid #e5e7eb; /* Bordure gris clair */
    border-radius: 1rem;
    color: #1f2937; /* Texte gris foncé */
    font-size: 1rem;
    outline: none;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-textarea:focus {
    background: #ffffff; /* Fond blanc au focus */
    border-color: #10b981; /* Bordure verte au focus */
}

.form-textarea::placeholder {
    color: #9ca3af; /* Placeholder gris moyen */
}

.image-upload {
    border: 2px dashed #d1d5db; /* Bordure gris moyen en pointillés */
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb; /* Fond gris très clair */
}

.image-upload:hover {
    border-color: #10b981; /* Bordure verte au hover */
    background: rgba(16, 185, 129, 0.05); /* Fond vert très clair au hover */
}

.image-upload input[type="file"] {
    display: none;
}

.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-top: 1rem;
    display: none;
}

.image-preview.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4); /* Ombre verte */
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(34, 197, 94, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    header {
        padding: 0.75rem 0;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .header-right {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .users-avatars {
        display: none !important;
    }
    
    .users-count {
        display: none !important;
    }
    
    .btn-register, .btn-login-header {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }
    
    /* Hero section */
    .hero {
        margin: 2rem 0 1rem 0;
        padding-top: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    /* Search bar */
    .search-container {
        max-width: 100%;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .search-bar svg {
        display: none;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-search span {
        font-size: 0.8rem;
    }
    
    .btn-filters {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    /* Grid */
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card.large, .card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Cards */
    .card {
        padding: 0.75rem;
    }
    
    .card-image {
        height: 180px;
        width: 60px;
        height: 60px;
        top: 1rem;
        right: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-desc {
        font-size: 0.85rem;
    }
    
    .card-user {
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    /* Modals */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 0.875rem;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .modal-image-carousel {
        max-width: 100%;
        height: 200px;
    }
    
    .modal-image-carousel .carousel-image img {
        object-fit: contain;
        background: #f9fafb;
    }
    
    /* Reviews Modal */
    .reviews-content {
        padding: 1.25rem;
        max-width: 95%;
    }
    
    .reviews-content h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .review-item {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .review-header {
        margin-bottom: 0.625rem;
        padding-bottom: 0.625rem;
    }
    
    .review-user {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .review-date {
        font-size: 0.75rem;
    }
    
    .review-stars {
        gap: 0.25rem;
        margin-bottom: 0.625rem;
    }
    
    .review-stars .star {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Buttons */
    .btn-add {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .btn-add span {
        display: none;
    }
    
    .btn-add svg {
        margin: 0;
    }
    
    .btn-join-community {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Header */
    header {
        padding: 0.5rem 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .header-right {
        gap: 0.375rem;
    }
    
    .btn-register, .btn-login-header {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Hero */
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    /* Search */
    .search-bar {
        padding: 0.5rem;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .btn-search {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .btn-search span {
        font-size: 0.75rem;
    }
    
    .btn-search svg {
        width: 16px;
        height: 16px;
    }
    
    /* Cards */
    .card {
        padding: 0.625rem;
    }
    
    .card-image {
        width: 50px;
        height: 50px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-desc {
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .card-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Modal */
    .modal-content {
        max-width: 98%;
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-desc {
        font-size: 0.85rem;
    }
    
    .modal-image-carousel {
        height: 160px;
        max-width: 100%;
    }
    
    .modal-image-carousel .carousel-image img {
        object-fit: contain;
        background: #f9fafb;
    }
    
    /* Reviews Modal */
    .reviews-modal {
        padding: 0.75rem;
    }
    
    .reviews-content {
        padding: 1rem;
        max-width: 100%;
        border-radius: 1.25rem;
    }
    
    .reviews-content h2 {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
    }
    
    .reviews-modal .modal-close {
        top: 0.875rem;
        right: 0.875rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .review-item {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .review-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .review-user {
        font-size: 0.85rem;
        gap: 0.375rem;
    }
    
    .review-date {
        font-size: 0.7rem;
    }
    
    .review-stars {
        gap: 0.2rem;
        margin-bottom: 0.5rem;
    }
    
    .review-stars .star {
        font-size: 0.95rem;
    }
    
    .review-text {
        font-size: 0.8rem;
        line-height: 1.5;
        padding-top: 0.375rem;
    }
    
    /* Buttons */
    .btn-add {
        width: 45px;
        height: 45px;
    }
    
    .btn-join-community {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        width: auto;
        max-width: 95%;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }
    
    .btn-mark-all-read {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        margin-right: 10px !important;
    }
    
    .btn-notifications,
    .btn-messages,
    .btn-profile {
        width: 50px;
        height: 50px;
    }
    
    .btn-notifications svg,
    .btn-messages svg {
        width: 22px;
        height: 22px;
    }
}

