/* ============================================================
   components.css — Composants réutilisables (BADEL)
   Header, Search, Footer Nav, Boutons, Cartes, Modaux, Notifications
   ============================================================ */

/* ════════════════════════════════════════
   HEADER
   ════════════════════════════════════════ */
header {
    background: linear-gradient(to bottom, #0f2533, #0a1a24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    border-bottom: 2px solid var(--accent-green);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    width: 100%;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex: 1;
    width: 100%;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav .footer-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.header-nav .footer-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 132, 0.2), transparent);
    transition: all 0.4s ease;
    z-index: 1;
}

.header-nav .footer-icon:hover::before {
    left: 100%;
}

.header-nav .footer-icon span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: inherit;
    position: relative;
    z-index: 2;
}

.header-nav .footer-icon svg,
.header-nav .footer-icon i {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-green);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.footer-icon:hover .nav-avatar-img {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 10px rgba(0, 255, 132, 0.5);
}

.notification-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0 8px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    color: #00ff84;
    margin-left: auto;
}

.notification-btn span {
    font-size: 13px;
    font-weight: 500;
    color: #00ff84;
}

/* ── Notification Bell (standalone in header-main) ── */
.notif-bell-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.notif-bell-icon i {
    font-size: 1.1rem;
    color: #00ff84;
    transition: all 0.3s ease;
}
.notif-bell-icon:hover {
    background: rgba(0, 255, 132, 0.12);
    border-color: rgba(0, 255, 132, 0.3);
    transform: scale(1.08);
}
.notif-bell-icon:hover i {
    filter: drop-shadow(0 0 6px rgba(0,255,132,0.5));
}

.header-nav .footer-icon:hover {
    background: rgba(0, 255, 132, 0.15);
    border-color: rgba(0, 255, 132, 0.4);
    box-shadow: 0 4px 20px rgba(0, 255, 132, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.header-nav .footer-icon.active {
    background: rgba(0, 255, 132, 0.15);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 132, 0.2);
    color: var(--accent-green);
}

/* Fix Echange button alignment in header on desktop */
.header-nav .plus-icon {
    transform: none;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.header-nav .plus-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 132, 0.2);
}

.header-nav .plus-icon:hover i {
    transform: scale(1.1); /* Disable rotating on desktop hover */
}

.header-nav .plus-icon:active {
    transform: translateY(-1px);
}

.header-nav .footer-icon.active svg {
    stroke: var(--accent-green);
    filter: drop-shadow(0 0 5px rgba(0, 255, 132, 0.5));
}

.header-nav .footer-icon.active i {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 132, 0.5);
}

.logo img {
    height: 45px;
    width: auto;
    padding: 0;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* ════════════════════════════════════════
   NOTIFICATION BADGE
   ════════════════════════════════════════ */
.notif-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-dark, #112836);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: notif-pulse 1.8s infinite;
    z-index: 10;
    line-height: 1;
}

@keyframes notif-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}


.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    padding: 0;
}

.header-image {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hero-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1.5;
    max-width: 500px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 132, 0.15);
}

.search-btn {
    background: var(--accent-green);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-green-2);
    transform: scale(1.05);
}

.search-input {
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
    background: transparent;
    color: var(--white);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ════════════════════════════════════════
   GLOBAL SEARCH DROPDOWN
   ════════════════════════════════════════ */
.gs-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(15, 37, 51, 0.98);
    border: 1px solid rgba(0, 255, 132, 0.2);
    border-radius: 16px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 132, 0.08);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 132, 0.2) transparent;
}

.gs-dropdown::-webkit-scrollbar { width: 5px; }
.gs-dropdown::-webkit-scrollbar-track { background: transparent; }
.gs-dropdown::-webkit-scrollbar-thumb { background: rgba(0, 255, 132, 0.2); border-radius: 10px; }

.gs-dropdown.gs-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Section labels */
.gs-section-label {
    padding: 10px 16px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(0, 255, 132, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gs-section-label:first-child {
    border-top: none;
}

.gs-section-label i {
    font-size: 0.65rem;
}

/* Result items */
.gs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gs-item:hover,
.gs-item.gs-active {
    background: rgba(0, 255, 132, 0.08);
}

.gs-item:last-child {
    border-radius: 0 0 16px 16px;
}

.gs-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    margin-left: auto;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gs-item:hover .gs-arrow {
    color: var(--accent-green);
    transform: translateX(3px);
}

/* User avatar */
.gs-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 132, 0.3);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.gs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Offer thumbnail */
.gs-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.gs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gs-type-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gs-type-bien {
    background: rgba(0, 255, 132, 0.9);
    color: #112836;
}

.gs-type-service {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Info block */
.gs-info {
    flex: 1;
    min-width: 0;
}

.gs-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gs-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.gs-meta span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.gs-meta i {
    font-size: 0.6rem;
    color: rgba(0, 255, 132, 0.4);
}

/* Highlight match */
mark.gs-highlight {
    background: rgba(0, 255, 132, 0.25);
    color: var(--accent-green);
    padding: 0 2px;
    border-radius: 3px;
}

/* "See all results" footer */
.gs-see-all {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--accent-green);
    font-weight: 600;
    gap: 8px;
}

.gs-see-all:hover {
    background: rgba(0, 255, 132, 0.12);
}

/* Empty / Loading states */
.gs-empty,
.gs-loading {
    padding: 28px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gs-empty i,
.gs-loading i {
    font-size: 1.3rem;
    opacity: 0.5;
}

.gs-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(0, 255, 132, 0.15);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: gs-spin 0.6s linear infinite;
}

@keyframes gs-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gs-dropdown {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        max-height: 70vh;
        border-radius: 14px;
    }

    .gs-item {
        padding: 10px 12px;
    }

    .gs-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ════════════════════════════════════════
   FOOTER NAVIGATION
   ════════════════════════════════════════ */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #112836;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    border-top: #00ff84 3px solid;
    z-index: var(--z-footer);
    height: var(--footer-height);
    animation: slideUp 0.8s ease-out;
}

.footer-nav::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 200%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff84, #00d46a, #00ff84, transparent);
    animation: waveMove 3s linear infinite;
}



.footer-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition);
}

.footer-icon:hover::before {
    opacity: 1;
}

.footer-icon:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    border-color: white;
}

.footer-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.footer-icon i {
    font-size: 20px;
    color: #00ff84;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.footer-icon svg {
    width: 22px;
    height: 22px;
    stroke: #00ff84;
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.footer-icon:hover i {
    transform: scale(1.1);
    color: white;
}

.footer-icon:hover svg {
    transform: scale(1.1);
    stroke: white;
}

.footer-icon.active i {
    color: white;
}

.footer-icon.active svg {
    stroke: #00ff84;
}

.footer-icon:active {
    transition: transform 0.1s ease;
}

.footer-icon.active {
    background: #112836;
    border: none;
}

.footer-icon.active i {
    color: #00ff84;
}

/* Commented out page-load bounce animations
.footer-icon:nth-child(1) {
    animation: iconBounce 0.6s ease-out 0.2s both;
}

.footer-icon:nth-child(2) {
    animation: iconBounce 0.6s ease-out 0.4s both;
}

.footer-icon:nth-child(3) {
    animation: iconBounce 0.6s ease-out 0.6s both;
}

.footer-icon:nth-child(4) {
    animation: iconBounce 0.6s ease-out 0.8s both;
}

.footer-icon:nth-child(5) {
    animation: iconBounce 0.6s ease-out 1.0s both;
}
*/

/* Plus icon (central CTA) */
.plus-icon {
    background: linear-gradient(135deg, #112836, #112836);
    border: none;
    transform: translateY(-15px);
    height: 55px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
    /* animation: pulsePlus 2s infinite; */
}

.plus-icon i {
    color: #00ff84 !important;
}

.plus-icon svg {
    stroke: #00ff84 !important;
    width: 26px;
    height: 26px;
}

.plus-icon:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.plus-icon:hover i {
    color: white !important;
    transform: scale(1.1) rotate(90deg);
}

.plus-icon:hover svg {
    stroke: white !important;
    transform: scale(1.1) rotate(90deg);
}

.plus-icon:active {
    transform: translateY(-12px) scale(0.95);
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.footer-icon .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 132, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

/* Responsive footer */
@media (max-width: 480px) {
    .footer-nav {
        padding: 6px;
        height: 70px;
    }

    .footer-icon {
        min-width: 44px;
        height: 44px;
    }

    .footer-icon i {
        font-size: 18px;
    }

    .plus-icon {
        height: 50px;
    }

    .plus-icon i {
        font-size: 20px;
    }
}

/* ════════════════════════════════════════
   BOUTONS
   ════════════════════════════════════════ */
.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 132, 0.3);
}

.btn-secondary {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary:hover {
    background: #0d1f2a;
    transform: translateY(-2px);
}

.action-icon {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* ════════════════════════════════════════
   USER AVATAR
   ════════════════════════════════════════ */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid var(--accent-green);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.user-rating {
    display: flex;
    align-items: center;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.8rem;
    margin-right: 4px;
}

.rating-value {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ════════════════════════════════════════
   CARTES ANNONCES (partagé)
   ════════════════════════════════════════ */
.annonce-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0, 255, 132, 0.1);
    display: flex;
    flex-direction: column;
}

.annonce-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.annonce-card:hover .annonce-image img {
    transform: scale(1.05);
}

.annonce-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.annonce-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.annonce-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 255, 132, 0.15);
    border-color: rgba(0, 255, 132, 0.3);
}

.annonce-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: var(--primary-dark);
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    box-shadow: 0 3px 8px rgba(0, 255, 132, 0.3);
    z-index: 4;
}



.annonce-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 132, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 132, 0.1);
    color: var(--primary-dark);
}

.detail-label {
    font-weight: 700;
    margin-right: 5px;
    color: var(--primary-dark);
    opacity: 0.8;
}

.detail-icon {
    color: var(--accent-green);
    margin-right: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.detail-text {
    font-weight: 500;
}

.annonce-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    position: relative;
}

.price::before {
    content: "Prix";
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-bottom: 2px;
}

.value-est {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f9f9f9;
    padding: 4px 8px;
    border-radius: 5px;
}

.annonce-user {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 255, 132, 0.3); /* Ligne du haut en vert */
    border-bottom: 1px solid rgba(0, 255, 132, 0.3); /* Ligne du bas en vert */
}

.annonce-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.annonce-description {
    display: none; /* Keep description hidden on cards for cleaner look, or show 1 line */
}

.annonce-details {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Gap réduit */
    margin-bottom: 10px; /* Espace réduit */
}

.annonce-card {
    cursor: pointer;
}

/* Detail Modal specific styles */
.detail-modal {
    max-width: 800px !important;
}

.detail-full-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-info-box {
    margin: 20px 0;
}

.detail-full-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.detail-full-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.modal-actions-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.make-offer-btn-details {
    padding: 12px 40px !important;
    font-size: 1.1rem !important;
}

/* ════════════════════════════════════════
   MODAUX
   ════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1a2b3c;
    /* Darker navy blue matching screenshot */
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 25px;
}

/* Offer steps */
.offer-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    padding: 0 40px;
}

.offer-steps::before {
    content: '';
    position: absolute;
    top: 17.5px;
    left: 80px;
    right: 80px;
    height: 1px;
    /* Thinner line */
    background: #e5e7eb;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #00e676;
    /* Bright green from screenshot */
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
}

.step.completed .step-number {
    background: var(--primary-dark);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

.step.active .step-label {
    color: #1a2b3c;
    font-weight: 600;
}

.step-instruction {
    text-align: left;
    color: #374151;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Product selection grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.product-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-green);
}

.product-item.selected {
    border: 2px solid var(--accent-green);
    background: rgba(0, 255, 132, 0.02);
    box-shadow: 0 0 0 4px rgba(0, 255, 132, 0.1);
}

.product-img-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Change to cover to match screenshot feel */
    transition: transform 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    padding: 12px 8px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
}

/* Offer message */
.offer-message {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 20px;
    resize: none;
    min-height: 80px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s ease;
}

.offer-message:focus {
    border-color: #00e676;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
    outline: none;
}

.modal-submit {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: var(--primary-dark);
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 132, 0.4);
}

/* ════════════════════════════════════════
   CHAT
   ════════════════════════════════════════ */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.message-content {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.sent .message-content {
    background: var(--accent-green);
    color: var(--primary-dark);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.message.received .message-content {
    background: #e9ecef;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message-time {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 10px 0 0;
}

.chat-input-field {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    outline: none;
    font-family: var(--font-primary);
    background: #fcfcfc;
    transition: var(--transition);
}

.chat-input-field:focus {
    border-color: var(--accent-green);
    background: white;
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 4px 12px rgba(0, 255, 132, 0.4);
}

/* ════════════════════════════════════════
   NOTIFICATIONS TOAST
   ════════════════════════════════════════ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: var(--z-notification);
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--font-primary);
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-normal);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: var(--color-success);
    color: white;
}

.notification.error {
    background: var(--color-error);
    color: white;
}

.notification.info {
    background: var(--color-info);
    color: white;
}

/* ════════════════════════════════════════
   ACCESSIBILITÉ
   ════════════════════════════════════════ */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
/* ════════════════════════════════════════
   FOOTER PREMIUM
   ════════════════════════════════════════ */
/* ════════════════════════════════════════
   FOOTER PREMIUM REDESIGN
   ════════════════════════════════════════ */
.main-footer {
    background: linear-gradient(to bottom, #0f2533, #0a1a24);
    color: var(--white);
    padding: 10px 0 20px;
    margin-top: 0; /* Supprimer l'espace blanc */
    position: relative;
    z-index: var(--z-footer);
    overflow: hidden;
    border-top: none; /* Supprimer la ligne de séparation */
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(0, 255, 132, 0.05), transparent 70%);
    pointer-events: none;
}

/* Slogan Section */
.footer-top-slogan {
    max-width: 1600px;
    margin: 0 auto 10px;
    padding: 0 25px 8px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 255, 132, 0.3);
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.slogan-highlight {
    background: linear-gradient(135deg, var(--accent-green), #00d46a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    position: relative;
    padding: 0 5px;
}


.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1.8fr 2fr 1.5fr;
    gap: 40px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.footer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 132, 0.3));
    transform: scale(1.02);
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 255, 132, 0.3);
    border-color: var(--accent-green);
}

/* Nav Sections */
.footer-why {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-why h3,
.footer-newsletter h3 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-why ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-why li {
    color: #94a3b8;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.footer-why li i {
    color: var(--accent-green);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.footer-why li:hover {
    color: var(--white);
    transform: translateX(5px);
}


.footer-links a:hover,
.footer-categories a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    align-items: center;
    text-align: center;
}

.footer-newsletter h3 {
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 15px;
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-normal);
    flex: 1;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 132, 0.1);
}

.newsletter-form button {
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1600px;
    margin: 60px auto 0;
    padding: 30px 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-bottom-links a:hover {
    color: var(--accent-green);
}



@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-top-slogan {
        font-size: 1.6rem;
        padding: 0 20px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand, .footer-brand p {
        max-width: 100%;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a, .footer-categories a {
        justify-content: center;
    }
    
    .footer-newsletter {
        padding: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

.footer-slogan {
    text-align: center;
}

/* ── Premium Notification Panel ── */
.notif-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: rgba(17, 40, 54, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 255, 132, 0.2);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-panel.active {
    right: 0;
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark-2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 40, 54, 0.1);
}

.notif-panel-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-panel-header h3::before {
    content: '\f0f3';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-green);
}

.close-notif-panel {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notif-panel:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #d0e8dd;
    border-radius: 4px;
}

.notif-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notif-item:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 196, 106, 0.12);
    border-color: var(--accent-green-2);
    transform: translateY(-2px);
}

.notif-item.unread {
    background: rgba(0, 255, 132, 0.08);
    border-color: rgba(0, 255, 132, 0.2);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--accent-green);
}

.notif-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 132, 0.15), rgba(0, 196, 106, 0.1));
    color: var(--accent-green-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.notif-item-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-text strong {
    color: var(--primary-dark);
}

.notif-item-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-item-time::before {
    content: '\f017';
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.notif-panel-footer {
    padding: 16px 20px;
    background: rgba(17, 40, 54, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.view-all-notif {
    color: var(--accent-green-2);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-notif:hover {
    color: var(--primary-dark);
}

.view-all-notif::after {
    content: '\f061';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.2s;
}

.view-all-notif:hover::after {
    transform: translateX(4px);
}

/* Modal contact styles (Simple White) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal animations */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #112836;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close:hover {
    background: #eeeeee;
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 85%;
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
}

.message.received {
    background: #ffffff;
    color: #333;
    align-self: flex-start;
    border: 1px solid #eee;
    border-bottom-left-radius: 2px;
}

.message.sent {
    background: #00ff84;
    color: #112836;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 5px;
    display: block;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.chat-input-field {
    flex: 1;
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 18px;
    color: #333;
    outline: none;
}

.chat-send-btn {
    background: #00ff84;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    color: #112836;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* ════════════════════════════════════════
   MAKE A DEAL MODAL — Wizard Steps
   ════════════════════════════════════════ */

/* Completed step line */
.offer-steps::after {
    content: '';
    position: absolute;
    top: 17.5px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--accent-green);
    z-index: 2;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step.completed .step-number {
    background: var(--accent-green);
    color: var(--primary-dark);
    border-color: var(--accent-green);
}

/* Product check overlay */
.product-img-wrapper {
    position: relative;
}

.product-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 255, 132, 0.5);
    pointer-events: none;
}

.product-item.selected .product-check {
    opacity: 1;
    transform: scale(1);
}

/* Product image fill (cover) mode for grid */
.products-grid .product-img-wrapper {
    height: 130px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.products-grid .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Selection hint text */
.deal-selection-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin: -8px 0 16px;
    transition: color 0.2s;
    font-weight: 500;
}

/* Navigation buttons */
.deal-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.deal-btn-next {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: var(--primary-dark);
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-family: var(--font-primary);
}

.deal-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 132, 0.35);
}

.deal-btn-prev {
    background: #f0f2f5;
    color: var(--primary-dark);
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-family: var(--font-primary);
}

.deal-btn-prev:hover {
    background: #e2e6ea;
    transform: translateY(-1px);
}

/* Step 3 — Summary */
.deal-summary {
    text-align: center;
    padding: 10px 0 20px;
}

.deal-summary-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 12px;
    animation: iconBounce 0.6s ease-out;
}

.deal-summary h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.deal-summary-products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.summary-tag {
    background: rgba(0, 255, 132, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.summary-msg-text {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-medium);
    font-style: italic;
    line-height: 1.5;
    text-align: left;
    border-left: 3px solid var(--accent-green);
}

/* Make a Deal submit inside step 3 */
.deal-nav-btns .modal-submit {
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

/* ── Contact Modal (Screenshot Match) ── */
.contact-premium-modal {
    width: 480px;
    max-width: 95%;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.contact-header {
    background: #112836;
    padding: 35px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    color: #fff;
}

.contact-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1c27;
    margin-bottom: 15px;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-avatar i {
    font-size: 32px;
    color: var(--accent-green);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.contact-product {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-highlight {
    color: var(--accent-green);
    font-weight: 700;
}

.contact-header .modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8fafc;
}

.contact-welcome-msg {
    background: #f1f5f9;
    padding: 15px 25px;
    border-radius: 20px;
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    align-self: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #1e293b;
    resize: none;
    transition: all 0.3s ease;
}

.contact-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(0, 255, 132, 0.1);
}

.contact-footer {
    display: flex;
    justify-content: flex-end;
}

.contact-send-btn {
    background: #00ff84;
    color: #112836;
    border: none;
    padding: 15px 40px;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 255, 132, 0.2);
    width: fit-content;
}

.contact-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 255, 132, 0.3);
    background: #00eb79;
}

.contact-send-btn i {
    font-size: 0.9rem;
}

/* ── Premium Product Detail Modal ── */
.product-premium-modal {
    width: 800px;
    max-width: 95%;
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    animation: modalScaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-top {
    position: relative;
    background: #f8fafc;
}

.product-gallery-main {
    position: relative;
    height: 400px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery-main img.main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.badge-type {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--accent-green);
    color: #112836;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 255, 132, 0.3);
}

.modal-close-overlay {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.1);
    color: #112836;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close-overlay:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(17, 40, 54, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.gallery-arrow:hover {
    background: rgba(17, 40, 54, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev { left: 20px; }
.gallery-arrow.next { right: 20px; }

.product-thumbnails {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active {
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(0, 255, 132, 0.2);
}

.product-modal-content {
    padding: 35px;
    background: #fff;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.product-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #112836;
    letter-spacing: -0.02em;
}

.status-badge {
    background: #e6fffa;
    color: #38b2ac;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.info-item {
    background: #f8fafc;
    padding: 18px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #112836;
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-icon i { color: var(--accent-green); }

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.info-val {
    font-size: 1rem;
    font-weight: 700;
    color: #112836;
}

.product-description-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 25px;
    border: 1px solid #f1f5f9;
}

.product-description-box h3 {
    margin: 0 0 15px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

/* ── Premium Modal System (Shared) ── */
.gallery-arrow-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(17,40,54,0.55); color: #fff; font-size: 0.8rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 3; transition: 0.2s; backdrop-filter: blur(4px);
}
.gallery-arrow-btn.left { left: 10px; }
.gallery-arrow-btn.right { right: 10px; }
.gallery-arrow-btn:hover { background: rgba(17,40,54,0.85); }

.gallery-dots-bar {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 3;
}
.gallery-dot-btn {
    width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5);
    border: none; cursor: pointer; transition: 0.2s; padding:0;
}
.gallery-dot-btn.active { background: #fff; transform: scale(1.3); }

.gallery-thumbs {
    display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: #f8fdfb;
    border-bottom: 1px solid #eef6f2;
}
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #c8e6d8; border-radius: 3px; }
.gallery-thumb {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    cursor: pointer; border: 2px solid transparent; transition: 0.2s; flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--accent-green); }
.gallery-thumb:hover { border-color: var(--accent-green-3); transform: scale(1.05); }

.prod-modal-overlay {
    position: fixed; inset: 0; background: rgba(17,40,54,0.6); backdrop-filter: blur(6px);
    z-index: 99999 !important; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; /* Ajoute l'espace haut et bas */
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.prod-modal-overlay.active { opacity: 1; visibility: visible; }

.prod-modal {
    background: #fff; border-radius: 20px; width: 92%; max-width: 500px;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 25px 60px rgba(17,40,54,0.35);
    transform: translateY(30px) scale(0.97); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.prod-modal-overlay.active .prod-modal { transform: translateY(0) scale(1); }
.prod-modal::-webkit-scrollbar { width: 4px; }
.prod-modal::-webkit-scrollbar-thumb { background: #d0e8dd; border-radius: 4px; }

.prod-modal-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
    border-radius: 50%; border: none; background: rgba(17,40,54,0.12); color: var(--primary-dark);
    font-size: 0.9rem; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.prod-modal-close:hover { background: rgba(17,40,54,0.22); }

.prod-modal-img-wrap { position: relative; width: 100%; height: 220px; overflow: hidden; border-radius: 20px 20px 0 0; }
.prod-modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prod-modal:hover .prod-modal-img-wrap img { transform: scale(1.04); }

.prod-modal-badge {
    position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: var(--primary-dark); font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.05em;
}

.prod-modal-body { padding: 20px 22px 24px; }
.prod-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.prod-modal-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }

.prod-status-chip {
    background: #e6f9ef; color: var(--accent-green-2); font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

.prod-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.prod-spec-item { display: flex; align-items: center; gap: 10px; background: #f8fdfb; border: 1px solid #e0f0e8; border-radius: 12px; padding: 10px 12px; }
.prod-spec-icon {
    width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark-2));
    color: var(--accent-green); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0;
}
.prod-spec-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.prod-spec-value { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); margin-top: 2px; }

.prod-desc-section { background: #f8fdfb; border-radius: 12px; padding: 14px; margin-bottom: 16px; border: 1px solid #e0f0e8; }
.prod-desc-section h4 { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.prod-desc-section h4 i { color: var(--accent-green-2); }
.prod-desc-section p { font-size: 0.88rem; color: var(--text-medium); line-height: 1.6; margin: 0; }

.prod-modal-actions { display: flex; gap: 10px; }
.prod-deal-btn {
    flex: 1; padding: 10px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark-2));
    color: var(--accent-green); font-weight: 700; font-size: 0.78rem;
    cursor: pointer; transition: 0.25s; display: flex; align-items: center; justify-content: center; gap: 7px;
    white-space: nowrap;
}
.prod-deal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,40,54,0.3); }

.prod-msg-btn {
    flex: 1; padding: 10px; border-radius: 12px; border: 1.5px solid #c0e0d0;
    background: #f8fdfb; color: var(--primary-dark); font-weight: 600; font-size: 0.78rem;
    cursor: pointer; transition: 0.25s; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.prod-msg-btn:hover { background: #e8f9f0; border-color: var(--accent-green-3); }

/* User Card inside Modal */
.detail-user-card {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    background: #f8fdfb; border-radius: 12px; border: 1px solid #e0f0e8;
}
.detail-user-card .annonce-user { display: flex; align-items: center; gap: 12px; width: 100%; }
.detail-user-card .user-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.detail-user-card .user-info { display: flex; flex-direction: column; }
.detail-user-card .user-name { font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; }
.detail-user-card .user-rating { font-size: 0.8rem; color: #f39c12; margin-top: 3px; }
.detail-user-card .rating-value { color: var(--text-muted); margin-left: 5px; }

/* ════════════════════════════════════════
   LIGHTBOX (Full Screen Image Preview)
   ════════════════════════════════════════ */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrap {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* ============================================================
   CUSTOM NOTIFICATION & DIALOG SYSTEM (Stitch UI)
   ============================================================ */

/* Custom Animations */
.toast-enter {
    animation: slideDownPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast-exit {
    animation: slideUpFade 0.3s ease-in forwards;
}
.modal-enter {
    animation: scaleInPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.modal-exit {
    animation: scaleOutFade 0.3s ease-in forwards;
}
.overlay-enter {
    animation: fadeIn 0.3s ease-out forwards;
}
.overlay-exit {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideDownPop {
    0% { transform: translate(-50%, -100%) scale(0.9); opacity: 0; }
    100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
@keyframes slideUpFade {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -100%) scale(0.9); opacity: 0; }
}
@keyframes scaleInPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes scaleOutFade {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0; }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glass-toast {
    background: rgba(15, 23, 42, 0.8); /* Slate 900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}
