/* modern-styles.css - Thème Vert Profond */
/* Régénéré pour MarketPro avec palette verte */

/* ==================== VARIABLES ==================== */
:root {
    /* PALETTE VERT PROFOND */
    --primary-color: #15803d;        /* Vert forêt profond */
    --secondary-color: #14532d;      /* Vert foncé élégant */
    --accent-color: #ef4444;         /* Rouge vif pour accents */
    --success-color: #10b981;        /* Vert émeraude */
    --warning-color: #f59e0b;        /* Orange ambre */
    --danger-color: #ef4444;         /* Rouge pour erreurs */
    
    /* COULEURS DE BASE */
    --light-bg: #f0fdf4;            /* Fond vert très clair */
    --dark-bg: #0f172a;             /* Fond nuit pour footer */
    --card-bg: #ffffff;             /* Blanc pur */
    --text-primary: #1e293b;        /* Texte principal foncé */
    --text-secondary: #64748b;      /* Texte secondaire */
    --border-color: #d1fae5;        /* Bordure vert pâle */
    
    /* OMBRES */
    --shadow-sm: 0 2px 4px rgba(22, 101, 52, 0.1);
    --shadow-md: 0 4px 6px rgba(22, 101, 52, 0.15);
    --shadow-lg: 0 10px 15px rgba(22, 101, 52, 0.2);
    --shadow-xl: 0 20px 25px rgba(22, 101, 52, 0.15);
    
    /* BORDURES ARRONDIES */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== HEADER MODERNE VERT ==================== */
.modern-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* LOGO SECTION - Market(blanc)Pro(rouge) */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.8rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.site-title .market {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title .pro {
    color: var(--accent-color);
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* NAVIGATION */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active a {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
}

/* SEARCH SECTION */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CSS POUR LE BLOC RECHERCHE SEULEMENT */

/* Conteneur principal */
.search-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    margin:0px 15px 15px 15px;
}

/* Formulaire */
.search-form {
    width: 100%;
}

/* Labels */
.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.search-field label i {
    color: #78A881;
    margin-right: 8px;
    width: 16px;
}

/* Champs de formulaire */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #78A881;
    box-shadow: 0 0 0 3px rgba(120, 168, 129, 0.2);
}

/* Bouton Rechercher */
.btn-search {
    background: #78A881;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-search:hover {
    background: #6a9472;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(120, 168, 129, 0.3);
}

/* VERSION DESKTOP (min-width: 768px) */
@media (min-width: 768px) {
    .search-row-desktop {
        display: flex;
        gap: 20px;
        align-items: flex-end;
    }
    
    .search-column {
        flex: 1;
    }
    
    .search-button-field .btn-search {
        height: 46px; /* Correspond à la hauteur des inputs */
    }
    
    /* Masquer la version mobile */
    .search-row-mobile {
        display: none !important;
    }
}

/* VERSION MOBILE (max-width: 767px) */
@media (max-width: 767px) {
    .search-row-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .search-field {
        width: 100%;
    }
    
    /* Masquer la version desktop */
    .search-row-desktop {
        display: none !important;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .btn-search {
        padding: 16px;
        font-size: 17px;
    }
}

/* Pour l'icône de recherche (si vous utilisez une image) */
.search-icon-image {
    background-color: transparent !important;
    border: none !important;
    filter: brightness(0) saturate(100%) invert(68%) sepia(12%) saturate(1100%) hue-rotate(85deg) brightness(90%) contrast(85%);
}

/* Si vous avez un bouton avec image PNG */
.search-button-with-icon {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.search-button-with-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(68%) sepia(12%) saturate(1100%) hue-rotate(85deg) brightness(90%) contrast(85%);
}

.filter-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: white;
}

.filter-tag.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.sort-dropdown {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.sort-dropdown:hover {
    border-color: var(--primary-color);
}

.view-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.view-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.Disponible {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.status-badge.Réservé {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.status-badge.Vendu {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 101, 52, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-unit {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==================== BOUTONS ==================== */
.xspButton {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-details {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-details:hover {
    background: #e2f8ed;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-buy {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-buy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-reserve {
    background: var(--warning-color);
    color: white;
    border: 1px solid var(--warning-color);
}

.btn-reserve:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--warning-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--warning-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.btn-buy-link:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-cart-add.xspButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-width: 120px;
    border: 2px solid #2d7a4b;
    border-radius: 6px;
    background: #2d7a4b;
    color: #fff;
    font-weight: 650;
    text-transform: uppercase;
}

.btn-cart-add.xspButton:hover { background:#235f3b; border-color:#235f3b; }

.header-cart-link {
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-right:12px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.45);
    border-radius:22px;
    color:#fff;
    text-decoration:none;
    font-weight:650;
}

.header-cart-count {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:12px;
    background:#fff;
    color:#2d7a4b;
    font-size:12px;
}

.card-extra {
    padding: 0 1.5rem 1rem;
}

.extra-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.extra-info i {
    margin-right: 0.25rem;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-number:hover:not(.active) {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.page-dots {
    display: flex;
    align-items: center;
}

/* ==================== FOOTER ==================== */
.modern-footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #b91c1c;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .main-nav .nav-list {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .xspButton {
        width: 100%;
        justify-content: center;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 2.2rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .price-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .tagline {
        display: none;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ==================== LOADING STATES ==================== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== SCROLLBAR PERSONNALISÉ ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ==================== FOCUS STATES ==================== */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .modern-header,
    .search-section,
    .modern-footer,
    .action-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Structure de base */
.repeat-item-wrapper {
    display: contents;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Contenu de la carte */
.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Titre */
.product-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    text-align: center;
}

/* Conteneur pour les métadonnées */
.product-meta {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ligne de métadonnées */
.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Desktop : alignements gauche/droite */
@media (min-width: 768px) {
    .meta-item {
        flex-direction: row;
    }
    
    /* Première ligne : Quantité à gauche, Prix à droite */
    .product-meta .meta-item:nth-child(1) {
        display: flex;
        justify-content: space-between;
    }
    
    /* Deuxième ligne : Localisation à gauche, Téléphone à droite */
    .product-meta .meta-item:nth-child(2) {
        display: flex;
        justify-content: space-between;
    }
    
    /* Groupes pour desktop */
    .meta-group-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .meta-group-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* Mobile : empilement avec séparateurs */
@media (max-width: 767px) {
    .product-meta {
        gap: 16px;
    }
    
    .meta-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    /* Pour la première ligne (Quantité/Prix) */
    .product-meta .meta-item:nth-child(1) {
        display: flex;
        flex-direction: column;
    }
    
    /* Ligne mobile avec séparateur */
    .mobile-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    /* Ajout d'un séparateur entre les paires mobile */
    .mobile-line:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Pour la deuxième ligne (Localisation/Téléphone) */
    .product-meta .meta-item:nth-child(2) {
        display: flex;
        flex-direction: column;
    }
    
    /* Effacer les groupes desktop sur mobile */
    .meta-group-left,
    .meta-group-right {
        display: contents;
    }
}

/* Icônes - Gris argenté métallisé */
.meta-item i {
    color: #a0a0a0;
    font-size: 14px;
    min-width: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Texte des métadonnées */
.product-type,
.product-location {
    font-size: 14px;
    color: #555;
}

/* Lien téléphone */
.product-location a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.product-location a:hover {
    color: #333;
    text-decoration: underline;
}

/* Footer avec bouton */
.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* Bouton Détails avec vert #78A881 */
.btn-buy-link {
    display: inline-block;
    background: #78A881;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #78A881;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-buy-link:hover {
    background: #6a9472;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 168, 129, 0.3);
    border-color: #6a9472;
}

/* Desktop : bouton aligné à droite */
@media (min-width: 768px) {
    .action-buttons {
        display: flex;
        justify-content: flex-end;
    }
    
    .btn-buy-link {
        min-width: 120px;
    }
}

/* Mobile : bouton pleine largeur */
@media (max-width: 767px) {
    .action-buttons {
        display: flex;
        justify-content: stretch;
    }
    
    .btn-buy-link {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* Image produit */
.card-image {
    height: 180px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Style pour le texte des prix et quantités */
.price-unit {
    font-weight: 600;
    color: #2c3e50;
}

.quantity-info {
    font-weight: 500;
    color: #2c3e50;
}

/* Classes pour gérer l'affichage desktop/mobile */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: flex !important;
    }
}



/* AJOUTS MINIMAUX POUR LES BOUTONS */

/* Groupe de boutons */
.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Bouton Réinitialiser */
.btn-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-reset:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.1);
}

/* Ajustement du bouton Rechercher existant pour qu'ils aient la même taille */
.btn-search {
    flex: 1;
    padding: 12px 20px;
    height: auto;
}

/* Version Desktop : boutons côte à côte */
@media (min-width: 768px) {
    .search-buttons-column {
        flex: 1.5; /* Un peu plus large pour accommoder 2 boutons */
    }
    
    .button-group {
        flex-direction: row;
    }
    
    .btn-search, .btn-reset {
        flex: 1;
        min-width: 120px;
    }
}

/* Version Mobile : boutons empilés ou côte à côte selon espace */
@media (max-width: 767px) {
    .mobile-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-search, .btn-reset {
        flex: 1;
        padding: 14px;
        font-size: 15px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .mobile-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-search, .btn-reset {
        width: 100%;
    }
}


/* CORRECTION POUR LES BOUTONS CÔTE À CÔTE */

/* Le conteneur des boutons doit forcer l'affichage en ligne */
.button-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Les deux boutons doivent partager l'espace */
.btn-search, .btn-reset {
    flex: 1 !important;
    min-width: 0 !important; /* Important pour éviter le débordement */
    width: auto !important;
    display: inline-block !important;
}

/* Surtout, annuler les styles qui forcent la pleine largeur */
.search-button-field .btn-search {
    width: auto !important;
    flex: 1 !important;
}

/* Version Desktop spécifique */
@media (min-width: 768px) {
    .search-buttons-column {
        flex: 1.2; /* Un peu plus large pour 2 boutons */
        min-width: 250px; /* Minimum pour contenir les 2 boutons */
    }
    
    .button-group {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* Version Mobile */
@media (max-width: 767px) {
    .mobile-buttons {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* Très petits écrans : empiler */
@media (max-width: 480px) {
    .mobile-buttons {
        flex-direction: column !important;
    }
}

/* RESET FORCÉ des styles problématiques */
.search-button-field > * {
    width: auto !important;
    max-width: none !important;
}

.button-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Forcer l'affichage inline des boutons */
.button-group .btn-search,
.button-group .btn-reset {
    display: inline-block !important;
    float: none !important;
    width: 48% !important; /* 48% pour laisser un peu d'espace */
    margin: 0 !important;
}


/* ===== ACCORDÉON PURE CSS ===== */

/* Cache la checkbox */
.accordion-checkbox {
    display: none;
}

/* En-tête de l'accordéon */
.search-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
}

.search-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-accordion-header h3 i {
    color: #78A881;
}

/* Label du toggle */
.accordion-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #78A881;
    font-weight: 500;
    user-select: none;
}

.toggle-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #78A881;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toggle-text {
    display: none; /* Caché sur desktop */
}

/* Contenu de l'accordéon */
.search-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e9ecef;
    border-top: none;
}

/* Quand la checkbox est cochée (accordéon ouvert) */
.accordion-checkbox:checked ~ .search-accordion-content {
    max-height: 500px; /* Assez grand pour le contenu */
    opacity: 1;
    padding: 20px;
    margin-top: -1px; /* Pour coller à l'en-tête */
}

.accordion-checkbox:checked ~ .search-accordion-header .toggle-icon {
    transform: rotate(45deg);
    background: #6a9472;
}

/* ===== VERSION DESKTOP ===== */
@media (min-width: 768px) {
    /* Sur desktop, toujours ouvert */
    .search-accordion-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 25px !important;
        border: 1px solid #e9ecef !important;
        border-radius: 12px !important;
        margin-top: 15px !important;
    }
    
    .search-accordion-header {
        display: none; /* Caché sur desktop */
    }
    
    .accordion-checkbox {
        display: none !important;
    }
}

/* ===== VERSION MOBILE ===== */
@media (max-width: 767px) {
    .search-accordion-header {
        margin-bottom: 0;
    }
    
    .toggle-text {
        display: inline; /* Visible sur mobile */
    }
    
    /* Quand ouvert sur mobile */
    .accordion-checkbox:checked ~ .search-accordion-content {
        padding: 20px 15px;
    }
    
    /* Ajustement pour les boutons dans l'accordéon mobile */
    .search-accordion-content .mobile-buttons {
        margin-top: 10px;
    }
}

/* ===== VARIANTE SIMPLIFIÉE (sans checkbox) ===== */
/* Si vous préférez sans checkbox HTML, voici une version avec :hover/:focus */

.search-container-simple {
    position: relative;
}

.search-toggle {
    display: none; /* Caché sur desktop */
}

@media (max-width: 767px) {
    .search-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
        width: 36px;
        height: 36px;
        background: #78A881;
        color: white;
        border-radius: 50%;
        border: none;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(120, 168, 129, 0.3);
    }
    
    .search-form {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .search-container:hover .search-form,
    .search-container:focus-within .search-form {
        max-height: 400px;
        padding-top: 50px; /* Pour éviter que le bouton cache le contenu */
    }
}

/* ACCORDÉON DE RECHERCHE — comportement identique desktop/mobile */
.search-accordion-native {
    border: 1px solid #e1e8e3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

/* Localisation arabe : lisibilite renforcee */
.i18n-rtl {
    font-family: 'Noto Kufi Arabic','Noto Sans Arabic',Tahoma,'Segoe UI',Arial,sans-serif;
    font-size: 1.08em;
    line-height: 1.65;
}
.i18n-rtl input,.i18n-rtl textarea,.i18n-rtl select,.i18n-rtl button {
    font-family: inherit;
    font-size: 1em;
    line-height: 1.55;
}
.i18n-rtl .product-title,.i18n-rtl .content-title,.i18n-rtl .search-summary {
    font-weight: 700;
    line-height: 1.55;
}

/* Le simulateur de device conserve parfois une largeur CSS proche de 1000px.
   Ce palier force alors le vrai rendu mobile au lieu de deux cartes comprimees. */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
    .search-row-desktop,.desktop-only { display:none !important; }
    .search-row-mobile,.mobile-only { display:block !important; }
    .main-content { padding:1rem !important; }
    .header-container { padding:.85rem 1rem; }
    .logo-section { flex-wrap:wrap; gap:10px; }
    .brand-left { min-width:0; flex:1 1 auto; }
    .brand-right {
        width:100%;
        margin-left:0 !important;
        display:flex;
        justify-content:space-between;
        gap:8px;
    }
    .site-title { font-size:1.55rem; }
    .logo-icon { width:48px; height:48px; font-size:2rem; }
    .header-cart-link { padding:7px 10px; }
    .search-container { padding:1rem; }
    .content-header { align-items:stretch; }
}

@media (max-width: 520px) {
    .products-grid { max-width:100%; }
    .brand-left,.brand-right { width:100%; }
    .brand-right { flex-wrap:wrap; }
    .tagline { display:none; }
    .site-title { font-size:1.35rem; }
    .header-cart-link { font-size:.88rem; }
    .lang-pill { margin-inline-start:auto; }
    .card-content { padding:14px; }
}

.search-accordion-native > .search-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #263d2e;
    background: #f7faf8;
    user-select: none;
}

.search-accordion-native > .search-summary::-webkit-details-marker {
    display: none;
}

.search-accordion-native > .search-summary:hover {
    background: #eef6f0;
}

.search-accordion-native .details-arrow {
    margin-left: auto;
    transition: transform .2s ease;
}

.search-accordion-native[open] .details-arrow {
    transform: rotate(180deg);
}

.search-accordion-native:not([open]) > .search-form {
    display: none !important;
}

.search-accordion-native[open] > .search-form {
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 22px;
    border-top: 1px solid #e1e8e3;
}

@media (max-width: 767px) {
    .search-accordion-native > .search-summary { padding: 14px 16px; }
    .search-accordion-native[open] > .search-form { padding: 18px 14px; }
}


/* FOOTER ULTRA-COMPACT */
.footer-section.ultra-compact .footer-links li {
    margin-bottom: 2px !important;
    line-height: 1.1;
}

.footer-section.ultra-compact .footer-links a {
    padding: 2px 0 !important;
    font-size: 12px !important;
}

.footer-section.ultra-compact .footer-links i {
    font-size: 8px !important;
    width: 10px !important;
}




.footer-section.ultra-compact .footer-subtitle {
    margin-bottom: 8px !important;
    font-size: 13px !important;
}


.logo-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-right{
  display:flex;
  align-items:center;
}

.lang-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}

.ga-lang-select{
  font-size:12px;
  height:26px;
  padding:2px 6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  color:#fff;
}

.ga-lang-select option{
  color:#111; /* options en dropdown lisibles */
}

 .header-container{
  display:flex;
  align-items:center;
  width:100%;
}

.logo-section{
  display:flex;
  align-items:center;
  width:100%;
}

.brand-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-right{
  margin-left:auto;              /* pousse à droite */
  display:flex;
  align-items:center;
}
 

/* Dashboard vendeur */
.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
}

.dash-stat-card {
    background: #f5f3ee;
    border-radius: 12px;
    padding: 18px 20px;
    border: none;
}

.dash-stat-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
}

.dash-stat-val {
    font-size: 26px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}

.dash-annonce-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 24px 14px;
}

.dash-annonce-titre {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dash-annonce-prix {
    font-size: 20px;
    font-weight: bold;
    color: #2d5a3d;
    white-space: nowrap;
}

.dash-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.dash-meta-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 4px;
}

.dash-meta-val {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}

.badge-cat {
    background: #e8f1fb;
    color: #0c447c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge-dispo {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.dash-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}


/* ── Dashboard vendeur ── */
.btn-deconnexion {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    cursor: pointer !important;
}
.btn-deconnexion:hover {
    background: rgba(255,255,255,0.25) !important;
}

.dash-nav {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.dash-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid #ddd;
    color: #333 !important;
    background: white;
}
.dash-nav-btn:hover { background: #f5f5f5; }
.dash-nav-primary {
    background: #2d5a3d !important;
    color: white !important;
    border-color: #2d5a3d !important;
}
.dash-nav-primary:hover { background: #1e3f2b !important; }

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    padding: 20px 24px;
}
.dash-stat-card {
    background: #f5f3ee;
    border-radius: 12px;
    padding: 18px 20px;
}
.dash-stat-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
}
.dash-stat-val {
    font-size: 26px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}

.dash-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 14px;
    padding: 0 24px;
}

.dash-annonce-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 24px 14px;
    display: block;
}
.dash-annonce-titre {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.dash-annonce-prix {
    font-size: 20px;
    font-weight: bold;
    color: #2d5a3d;
    white-space: nowrap;
}
.dash-meta-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.dash-meta-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 4px;
}
.dash-meta-val {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}
.dash-annonce-desc {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f9f9f9;
    border-radius: 6px;
    line-height: 1.6;
}
.dash-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid;
}
.dash-btn-voir {
    color: #0c447c !important;
    border-color: #85b7eb;
    background: #f0f7ff;
}
.dash-btn-edit {
    color: #1b5e20 !important;
    border-color: #97c459;
    background: #f0f8f0;
}
.badge-cat {
    background: #e8f1fb;
    color: #0c447c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.badge-dispo {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}


/* Stats grid */
.dash-stat-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
}
.dash-stat-card {
    -webkit-flex: 1 1 28%;
    flex: 1 1 28%;
    min-width: 100px;
    background: #f5f3ee;
    border-radius: 12px;
    padding: 18px 20px;
}

/* Meta grid annonce */
.dash-meta-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.dash-meta-grid > div {
    -webkit-flex: 1 1 40%;
    flex: 1 1 40%;
    min-width: 100px;
}

/* Nav */
.dash-nav {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.dash-nav-btn {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}

/* Photo : taille fixe réduite sur mobile */
@media (max-width: 480px) {
    #annoncePhoto {
        width: 90px !important;
        height: 90px !important;
    }
    .dash-annonce-prix {
        font-size: 14px !important;
    }
    .dash-annonce-titre {
        font-size: 16px !important;
    }
}


/* ==============================
   SEO CONTENT - Version ultra compacte
   ============================== */

.seo-content {
  max-width: 980px;
  margin: 20px auto 24px auto;
  padding: 18px 24px 19px 24px;
  background: #fbfaf6;
  border: 1px solid rgba(31, 107, 91, 0.10);
  border-left: 3px solid #1f6b5b;
  border-radius: 16px;
  color: #303636;
}

.seo-content h1 {
  margin: 0 0 5px 0;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #183f36;
}

.seo-content h2 {
  margin: 0 0 11px 0;
  font-size: 15.5px;
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #2c3838;
}

.seo-content p {
  margin: 0 0 7px 0;
  font-size: 13.8px;
  line-height: 1.52;
  font-weight: 400;
  color: #454b4b;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .seo-content {
    margin: 18px 14px 22px 14px;
    padding: 17px 18px 18px 18px;
    border-radius: 14px;
  }

  .seo-content h1 {
    font-size: 20px;
  }

  .seo-content h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .seo-content p {
    font-size: 13.6px;
    line-height: 1.48;
  }
}





