/* ============================================================================
   CLASSIFIEDS ADDON - Styles centralisés
   @version 1.0.0
   
   Extrait de :
   - addons/classifieds/ui-blocks.php (5 blocs)
   - core/pages/classifieds-home.php (1 bloc)
   
   Chargé via $GLOBALS['page_css'] dans les pages classifieds
   ============================================================================ */

/* ============================================================================
   VALIDATION REQUIRED BLOCK
   Source: ui-blocks.php classifieds_validation_required()
   ============================================================================ */

.validation-required-block {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2.5rem;
    text-align: center;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
}

.validation-required-icon {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.validation-required-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.75rem;
}

.validation-required-text {
    color: var(--text-secondary, #64748b);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.validation-required-steps {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.validation-step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full, 9999px);
}

.validation-step.pending {
    background: #fef3c7;
    color: #92400e;
}

.validation-step.done {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .validation-required-block {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .validation-step.pending {
    background: #78350f;
    color: #fef3c7;
}

[data-theme="dark"] .validation-step.done {
    background: #064e3b;
    color: #d1fae5;
}

/* ============================================================================
   ADVERTISER SECTION
   Source: ui-blocks.php classifieds_advertiser_header()
   ============================================================================ */

.advertiser-section {
    margin-bottom: 1.5rem;
}

.advertiser-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.advertiser-section-title svg {
    opacity: 0.7;
}

.advertiser-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.advertiser-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.advertiser-avatar-wrapper .vendor-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.advertiser-avatar-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: var(--radius-full) !important;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

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

.advertiser-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.advertiser-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.advertiser-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.advertiser-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.advertiser-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.advertiser-meta-item svg {
    opacity: 0.7;
}

/* Bloc entreprise PRO intégré dans le profil */
.advertiser-pro-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.advertiser-pro-title {
    margin-bottom: 0.25rem;
}

.advertiser-pro-title strong {
    color: var(--text-primary);
}

.advertiser-pro-desc {
    margin: 0.25rem 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.advertiser-meta-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.advertiser-meta-link:hover {
    color: var(--primary-color);
}

.advertiser-meta-website {
    color: var(--primary-color);
}

.advertiser-meta-website:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .advertiser-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
    
    .advertiser-name-row {
        justify-content: center;
    }
    
    .advertiser-name {
        font-size: 1.25rem;
    }
    
    .advertiser-meta {
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    
    .advertiser-avatar-img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Bouton Partager profil */
.advertiser-share {
    margin-top: 1rem;
}

.advertiser-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md, 6px);
    transition: all 0.2s ease;
}

.advertiser-share-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 480px) {
    .advertiser-share {
        width: 100%;
    }
    
    .advertiser-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   CATEGORIES HOME GRID
   Source: ui-blocks.php classifieds_categories_home_grid()
   ============================================================================ */

.categories-home-wrapper {
    margin: 0;
}

.categories-home-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 5), 1fr);
    gap: 1rem;
}

.category-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: var(--radius-lg, 12px);
    text-decoration: none;
    color: var(--text-primary, #1a1a1a);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-home-card:hover {
    background: var(--bg-tertiary, #fff);
    border-color: var(--primary-color, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-home-card--hidden {
    display: none;
}

.categories-home-grid.expanded .category-home-card--hidden {
    display: flex;
    animation: categoryFadeIn 0.3s ease forwards;
}

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

.category-home-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color-light, rgba(0, 123, 255, 0.1));
    border-radius: 50%;
    margin-bottom: 0.75rem;
    color: var(--primary-color, #007bff);
}

.category-home-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.category-home-count {
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
}

.categories-home-toggle {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.categories-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--radius-full, 999px);
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categories-toggle-btn:hover {
    background: var(--bg-secondary, #f8f9fa);
    border-color: var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
}

.categories-toggle-btn svg {
    transition: transform 0.2s ease;
}

@media (max-width: 1024px) {
    .categories-home-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-home-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .category-home-card {
        padding: 1rem 0.5rem;
    }
    
    .category-home-icon {
        width: 48px;
        height: 48px;
    }
    
    .category-home-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    .categories-toggle-btn {
        border-color: #374151;
        color: #9ca3af;
    }
    
    .categories-toggle-btn:hover {
        background: #1f2937;
        border-color: #60a5fa;
        color: #60a5fa;
    }
}

[data-theme="dark"] .categories-toggle-btn {
    border-color: #374151;
    color: #9ca3af;
}

[data-theme="dark"] .categories-toggle-btn:hover {
    background: #1f2937;
    border-color: #60a5fa;
    color: #60a5fa;
}

/* ============================================================================
   POPULAR SEARCHES
   Source: ui-blocks.php classifieds_popular_searches_section()
   ============================================================================ */

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.popular-search-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-secondary, #666);
    border-radius: var(--radius-full, 20px);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-search-tag:hover {
    background: var(--primary-color, #007bff);
    color: #fff;
}

/* ============================================================================
   LOCATION TAGS
   Source: ui-blocks.php classifieds_location_tags_section()
   ============================================================================ */

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

.location-tag {
    color: var(--text-primary, #333);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.location-tag:hover {
    color: var(--primary-color, #007bff);
}

.location-count {
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
}

/* ============================================================================
   CANTON PLATES (Style plaque minéralogique suisse)
   Source: ui-blocks.php classifieds_canton_plates_section()
   Identique au style leboncoin-suisse avec count en dessous
   ============================================================================ */

.canton-plates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.canton-plate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.canton-plate {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    color: var(--text-primary, #333);
    transition: all 0.2s ease;
    width: 100%;
    justify-content: flex-start;
}

.canton-plate:hover {
    border-color: var(--primary-color, #3b82f6);
    background: var(--primary-color, #3b82f6);
    color: #fff;
}

.canton-plate:hover .canton-plate-code,
.canton-plate:hover .canton-plate-name {
    color: #fff;
}

.canton-plate-code {
    font-weight: 700;
    font-size: 1.125rem;
    min-width: 2rem;
    color: var(--text-primary, #333);
}

.canton-plate-name {
    font-weight: 500;
    color: var(--text-primary, #333);
}

.canton-plate-count {
    font-size: 0.75rem; 
    color: var(--text-secondary, #666);
    margin-top: 0.2rem; 
}

/* Responsive */
@media (max-width: 480px) {
    .canton-plates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .canton-plate {
        padding: 0.5rem 1rem;
    }
    
    .canton-plate-count {
        font-size: 0.7rem;
    }
}

/* ============================================================================
   CLASSIFIEDS HOME STYLES
   Source: core/pages/classifieds-home.php
   ============================================================================ */

/* Hero */
.classifieds-home-hero {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    text-align: center;
}

/* Première section après hero : moins de padding-top */
.classifieds-home-hero + .classifieds-home-section {
    padding-top: 1.5rem;
}

.classifieds-home-hero .hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.classifieds-home-hero .hero-stats {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.classifieds-home-hero .hero-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* Override search bar pour hero */
.classifieds-home-hero .search-category-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Search: conteneur externe transparent, style sur l'inner */
.classifieds-home-hero .search-bar-permanent {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.classifieds-home-hero .search-bar-inner {
    background: #fff;
    border: none;
    border-radius: var(--radius-full, 999px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
}

.classifieds-home-hero .search-bar-inner input {
    border: none;
    background: transparent;
    box-shadow: none;
}

.classifieds-home-hero .search-bar-inner input:focus {
    outline: none;
    box-shadow: none;
}

/* Sélecteur catégories - Même style que search-bar-inner (pilule) */
.classifieds-home-hero .category-selector-bar {
    background: #fff;
    border: none;
    color: var(--text-primary, #1a1a1a);
    margin-top: 0;
    border-radius: var(--radius-full, 999px);
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.classifieds-home-hero .category-selector-bar:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Icônes du sélecteur : folder bleu, chevron gris */
.classifieds-home-hero .category-selector-current svg {
    color: var(--primary-color, #6366f1);
}

.classifieds-home-hero .category-selector-action svg {
    color: var(--text-secondary, #666);
}

/* Sections - Reset du margin global de core.css */
.classifieds-home-section,
.classifieds-home-hero,
.classifieds-home-cta {
    margin-top: 0 !important;
}

.classifieds-home-section {
    padding: 2rem 0;
}

.classifieds-home-section:nth-child(even) {
    background: var(--bg-secondary, #f8f9fa);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-small {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-secondary, #666);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: 0.5rem;
}

/* Section more link (sous les grilles) */
.section-more {
    text-align: center;
    margin-top: 1rem;
}

.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary, #666);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.section-more-link:hover {
    color: var(--primary-color, #007bff);
    gap: 0.5rem;
}

/* CTA */
.classifieds-home-cta {
    padding: 2rem 0;
    background: var(--bg-tertiary, #e9ecef);
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    background: #fff;
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    color: var(--text-secondary, #666);
    margin-bottom: 1.5rem;
}

/* Trust section */
.classifieds-home-trust {
    padding: 2rem 0;
}

.classifieds-home-trust .features-grid {
    margin-bottom: 0;
}

/* Searches */
.classifieds-home-searches {
    padding: 2rem 0;
    text-align: center;
}

/* Responsive hero */
@media (max-width: 768px) {
    .classifieds-home-hero {
        padding: 1.5rem 0 1.25rem;
    }
    
    .classifieds-home-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .classifieds-home-hero .hero-stats {
        font-size: 0.95rem;
    }
    
    .classifieds-home-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .cta-box {
        padding: 1.25rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   DARK MODE
   ============================================================================ */
@media (prefers-color-scheme: dark) {
    .classifieds-home-hero {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    }
    
    .classifieds-home-hero .search-bar-permanent {
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .classifieds-home-hero .search-bar-inner {
        background: #1f2937;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid #374151;
    }
    
    .classifieds-home-hero .search-bar-inner input {
        color: #f3f4f6;
    }
    
    .classifieds-home-hero .search-bar-inner input::placeholder {
        color: #9ca3af;
    }
    
    .classifieds-home-hero .search-bar-submit {
        background: #3b82f6;
        color: #fff;
    }
    
    .classifieds-home-hero .category-selector-bar {
        background: #1f2937;
        color: #f3f4f6;
        border: 1px solid #4b5563;
    }
    
    .classifieds-home-hero .category-selector-bar:hover {
        background: #374151;
        border-color: #6b7280;
    }
    
    .classifieds-home-hero .category-selector-current svg {
        color: #818cf8;
    }
    
    .classifieds-home-hero .category-selector-action svg {
        color: #9ca3af;
    }
    
    .classifieds-home-cta {
        background: #111827 !important;
    }
    
    .classifieds-home-cta .cta-box {
        background: #1f2937 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        border: 1px solid #374151 !important;
    }
    
    .classifieds-home-cta .cta-title {
        color: #f9fafb !important;
    }
    
    .classifieds-home-cta .cta-subtitle {
        color: #d1d5db !important;
    }
    
    .classifieds-home-cta .btn-primary,
    .classifieds-home-cta .btn {
        background: #3b82f6 !important;
        color: #fff !important;
        border: none !important;
    }
    
    .classifieds-home-cta .btn-primary:hover,
    .classifieds-home-cta .btn:hover {
        background: #2563eb !important;
    }
    
    .classifieds-home-section:nth-child(even) {
        background: #111827;
    }
}

/* Support data-theme="dark" (toggle manuel via UFK DarkMode) */
[data-theme="dark"] .classifieds-home-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .classifieds-home-hero .search-bar-inner {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
}

[data-theme="dark"] .classifieds-home-hero .search-bar-inner input {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .classifieds-home-hero .category-selector-bar {
    background: #1f2937 !important;
    color: #f3f4f6 !important;
    border: 1px solid #4b5563 !important;
}

[data-theme="dark"] .classifieds-home-hero .category-selector-bar:hover {
    background: #374151 !important;
}

[data-theme="dark"] .classifieds-home-cta {
    background: #111827 !important;
}

[data-theme="dark"] .classifieds-home-cta .cta-box {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
}

[data-theme="dark"] .classifieds-home-cta .cta-title {
    color: #f9fafb !important;
}

[data-theme="dark"] .classifieds-home-cta .cta-subtitle {
    color: #d1d5db !important;
}

[data-theme="dark"] .classifieds-home-cta .btn-primary,
[data-theme="dark"] .classifieds-home-cta .btn {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* ============================================================================
   CLASSIFIEDS LISTING PAGE STYLES
   Source: core/pages/classifieds-listing.php
   ============================================================================ */

/* ============================================================================
   BANDE DE RECHERCHE BLEUE (Continuité visuelle avec Home)
   ============================================================================ */

.classifieds-search-banner {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    padding: 0.75rem 0;
    margin-top: 0 !important;
}

.classifieds-search-banner .search-category-container {
    margin-bottom: 0;
}

.classifieds-search-banner .search-bar-permanent {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.classifieds-search-banner .search-bar-inner {
    background: #fff;
    border: none;
    border-radius: var(--radius-full, 999px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
}

.classifieds-search-banner .search-bar-inner input {
    border: none;
    background: transparent;
    box-shadow: none;
}

.classifieds-search-banner .search-bar-inner input:focus {
    outline: none;
    box-shadow: none;
}

.classifieds-search-banner .category-selector-bar {
    background: #fff;
    border: none;
    color: var(--text-primary, #1a1a1a);
    margin-top: 0;
    border-radius: var(--radius-full, 999px);
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.classifieds-search-banner .category-selector-bar:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.classifieds-search-banner .category-selector-current svg {
    color: var(--primary-color, #6366f1);
}

.classifieds-search-banner .category-selector-action svg {
    color: var(--text-secondary, #666);
}

@media (max-width: 768px) {
    .classifieds-search-banner {
        padding: 0.625rem 0;
    }
    
    .classifieds-search-banner .search-bar-inner {
        padding: 0.375rem 0.625rem;
    }
}

@media (prefers-color-scheme: dark) {
    .classifieds-search-banner {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    }
    
    .classifieds-search-banner .search-bar-inner {
        background: #1f2937;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid #374151;
    }
    
    .classifieds-search-banner .search-bar-inner input {
        color: #f3f4f6;
    }
    
    .classifieds-search-banner .search-bar-inner input::placeholder {
        color: #9ca3af;
    }
    
    .classifieds-search-banner .category-selector-bar {
        background: #1f2937;
        color: #f3f4f6;
        border: 1px solid #4b5563;
    }
    
    .classifieds-search-banner .category-selector-bar:hover {
        background: #374151;
        border-color: #6b7280;
    }
    
    .classifieds-search-banner .category-selector-current svg {
        color: #818cf8;
    }
    
    .classifieds-search-banner .category-selector-action svg {
        color: #9ca3af;
    }
}

[data-theme="dark"] .classifieds-search-banner {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .classifieds-search-banner .search-bar-inner {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
}

[data-theme="dark"] .classifieds-search-banner .search-bar-inner input {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .classifieds-search-banner .category-selector-bar {
    background: #1f2937 !important;
    color: #f3f4f6 !important;
    border: 1px solid #4b5563 !important;
}

[data-theme="dark"] .classifieds-search-banner .category-selector-bar:hover {
    background: #374151 !important;
}

/* ============================================================================
   BREADCRUMB - Adapté à la structure listing
   ============================================================================ */

.classifieds-listing {
    margin-top: 0 !important;
}

.classifieds-listing .listing-layout {
    margin-top: 0;
}

.classifieds-listing .breadcrumb {
    margin-bottom: 0.5rem;
}

.classifieds-listing .breadcrumb-list {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.classifieds-listing .breadcrumb-item a span[itemprop="name"],
.classifieds-listing .breadcrumb-item .breadcrumb-text,
.classifieds-listing .breadcrumb-item > span[aria-current="page"] {
    max-width: 280px;
}

@media (max-width: 768px) {
    .classifieds-listing .breadcrumb-item a span[itemprop="name"],
    .classifieds-listing .breadcrumb-item .breadcrumb-text,
    .classifieds-listing .breadcrumb-item > span[aria-current="page"] {
        max-width: 180px;
    }
    
    .classifieds-listing .breadcrumb-item:last-child span[aria-current="page"] {
        max-width: 200px;
    }
    
    .classifieds-listing .breadcrumb-list {
        margin-top: 0.5rem;
        margin-bottom: 0.375rem;
    }
}

@media (max-width: 480px) {
    .classifieds-listing .breadcrumb-item a span[itemprop="name"],
    .classifieds-listing .breadcrumb-item .breadcrumb-text {
        max-width: 120px;
    }
    
    .classifieds-listing .breadcrumb-item:last-child span[aria-current="page"] {
        max-width: none;
        text-overflow: unset;
        overflow: visible;
    }
}

/* ============================================================================
   FILTRE SOUS-CATÉGORIES
   ============================================================================ */

.subcategories-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.subcategories-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================================================
   TAGS SOUS-CATÉGORIES
   ============================================================================ */

.tag-checkbox,
.tag-all,
.tag-link,
.tag-back {
    display: inline-block;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
}

.tag-checkbox input[type="checkbox"] {
    display: none;
}

.tag-checkbox .tag-label,
.tag-all .tag-label,
.tag-link .tag-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tag-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.tag-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.category-header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.category-header-nav--with-cats {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
}

/* Bloc unifié H1 + sous-catégories (une seule bordure en bas) */
.category-nav-block {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.category-nav-block .category-seo-title {
    margin-bottom: 0.5rem;
}

.category-nav-block .subcategories-filter {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Intro pour page /annonces (H1 + retour + compteur) */
.category-header-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-header-intro .category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.category-seo-header {
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.category-seo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-top: 0.6rem;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .category-seo-title {
        font-size: 0.9rem;
        padding-top: 0;
    }
}

.category-header-nav .category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: auto;
}

@media (max-width: 480px) {
    .category-header-nav .category-count {
        display: none;
    }
}

.tag-checkbox .tag-count,
.tag-link .tag-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.tag-checkbox:hover .tag-label,
.tag-all:hover .tag-label,
.tag-link:hover .tag-label {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tag-checkbox.active .tag-label,
.tag-all.active .tag-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tag-checkbox.active .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.subcategories-dropdown {
    width: 100%;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.subcategories-dropdown select {
    width: 100%;
    height: 120px;
}

@media (max-width: 768px) {
    .subcategories-filter {
        gap: 0.4rem;
        padding: 0.5rem 0;
    }
    
    .subcategories-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .tag-checkbox .tag-label {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .subcategories-dropdown select {
        height: 150px;
    }
}

/* ============================================================================
   BARRE UNIFIÉE : RÉSULTATS + FILTRES + TRI
   ============================================================================ */

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0; /* Reset H2 default margin */
}

/* Contexte SEO masqué sur mobile */
@media (max-width: 768px) {
    .results-context {
        display: none;
    }
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}

.toolbar-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.toolbar-btn.has-filters {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
}

/* Fix : Quand expanded + has-filters, le texte/icône doit être blanc sur fond bleu */
.toolbar-btn.has-filters.expanded {
    background: var(--primary-color);
    color: white;
}

.toolbar-btn svg {
    flex-shrink: 0;
}

.toolbar-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.toolbar-chevron {
    display: flex;
    transition: transform 0.2s;
    opacity: 0.6;
}

.toolbar-btn.expanded .toolbar-chevron {
    transform: rotate(180deg);
}

.toolbar-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.toolbar-reset:hover {
    color: var(--danger-color, #dc3545);
    background: rgba(220, 53, 69, 0.1);
}

.toolbar-separator {
    width: 1px;
    height: 1.25rem;
    background: var(--border-color);
    margin: 0 0.25rem;
}

.toolbar-sort {
    display: flex;
    align-items: center;
}

.toolbar-select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s;
}

.toolbar-select:hover {
    border-color: var(--primary-color);
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters-panel {
    display: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem;
    animation: slideDown 0.15s ease-out;
}

.filters-panel.expanded {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 100px;
}

.filter-field label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-field input,
.filter-field select {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.filter-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-field input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.filters-grid-auto .filter-field {
    min-width: 90px;
}

.filter-submit {
    flex: 0 0 auto;
}

.filter-submit .btn {
    padding: 0.4rem 0.75rem;
}

@media (max-width: 480px) {
    .results-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .results-count {
        font-size: 0.8rem;
    }
    
    .toolbar-btn span:not(.toolbar-badge):not(.toolbar-chevron) {
        display: none;
    }
    
    .filters-grid {
        flex-direction: column;
    }
    
    .filter-field {
        width: 100%;
    }
}

/* ============================================================================
   CLASSIFIEDS DETAIL - Section titles (H2 styled like H3 for visual consistency)
   ============================================================================ */

.detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section-title svg {
    color: var(--primary-color, #007bff);
}

.card-header .detail-section-title {
    margin: 0;
}

/* ============================================================================
   CLASSIFIEDS DETAIL - Breadcrumb overrides
   ============================================================================ */

/* Override margin-top global de core.css (main > *:not(:first-child)) */
.classifieds-detail {
    margin-top: 0 !important;
}

.classifieds-detail .detail-layout {
    margin-top: 0;
}

/* Override margin-bottom du wrapper breadcrumb */
.classifieds-detail .breadcrumb {
    margin-bottom: 0.5rem;
}

.classifieds-detail .breadcrumb-list {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Troncature plus souple (plus de place sans bordure) */
.classifieds-detail .breadcrumb-item a span[itemprop="name"],
.classifieds-detail .breadcrumb-item .breadcrumb-text,
.classifieds-detail .breadcrumb-item > span[aria-current="page"] {
    max-width: 280px;
}

@media (max-width: 768px) {
    .classifieds-detail .breadcrumb-item a span[itemprop="name"],
    .classifieds-detail .breadcrumb-item .breadcrumb-text,
    .classifieds-detail .breadcrumb-item > span[aria-current="page"] {
        max-width: 180px;
    }
    
    .classifieds-detail .breadcrumb-item:last-child span[aria-current="page"] {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .classifieds-detail .breadcrumb-item a span[itemprop="name"],
    .classifieds-detail .breadcrumb-item .breadcrumb-text,
    .classifieds-detail .breadcrumb-item > span[aria-current="page"] {
        max-width: 140px;
    }
    
    .classifieds-detail .breadcrumb-item:last-child span[aria-current="page"] {
        max-width: 160px;
    }
}

/* Breadcrumb plus compact sur mobile */
@media (max-width: 768px) {
    .classifieds-detail .breadcrumb-list {
        margin-top: 0.5rem;
        margin-bottom: 0.375rem;
    }
}

/* ============================================================================
   MODALE CONNEXION REQUISE
   ============================================================================ */

.login-required-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.login-required-content {
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-required-title {
    margin: 0 0 1rem 0;
    color: var(--primary-color, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-required-content > p {
    color: var(--text-secondary, #666);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.login-required-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-required-actions .btn {
    min-width: 120px;
}

.login-required-register {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.login-required-register a {
    color: var(--primary-color, #007bff);
    font-weight: 500;
}

/* Fermer modale au clic sur fond */
.login-required-modal:not(:has(.login-required-content:hover)) {
    cursor: pointer;
}

/* ============================================================================
   MEMBER ADS TOOLBAR
   Source: core/pages/classifieds-member-classifieds.php
   ============================================================================ */

/* Header : Titre + Bouton Publier */
.member-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-ads-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #1e293b);
}

/* Barre de filtres compacte */
.member-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 0 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0;
    flex-wrap: wrap;
}

/* Barre de recherche inline */
.member-ads-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.member-ads-search:focus-within {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.member-ads-search svg {
    color: var(--text-tertiary, #94a3b8);
    flex-shrink: 0;
}

.member-ads-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: var(--text-primary, #1e293b);
    min-width: 0;
}

.member-ads-search input::placeholder {
    color: var(--text-tertiary, #94a3b8);
}

.member-ads-search .search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full, 9999px);
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    flex-shrink: 0;
}

.member-ads-search .search-clear:hover {
    background: var(--danger-color, #ef4444);
    color: white;
}

/* Zone filtres */
.member-ads-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Bouton toolbar */
.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
}

.toolbar-btn.expanded {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    color: white;
}

.toolbar-btn.has-filters {
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
}

/* Fix : Quand expanded + has-filters, le texte/icône doit être blanc sur fond bleu */
.toolbar-btn.has-filters.expanded {
    color: white;
}

.toolbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: var(--radius-full, 9999px);
}

.toolbar-btn.expanded .toolbar-badge {
    background: white;
    color: var(--primary-color, #3b82f6);
}

.toolbar-chevron {
    display: flex;
    transition: transform 0.2s;
}

.toolbar-btn.expanded .toolbar-chevron {
    transform: rotate(180deg);
}

/* Bouton reset filtres */
.toolbar-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md, 8px);
    color: var(--text-tertiary, #94a3b8);
    text-decoration: none;
    transition: all 0.2s;
}

.toolbar-reset:hover {
    background: var(--danger-color, #ef4444);
    color: white;
}

/* Panel filtres déroulant */
.member-filters-panel {
    display: none;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 0.75rem;
}

.member-filters-panel.expanded {
    display: block;
}

/* Compteur résultats */
.member-results-count {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.member-results-count .results-filter-label {
    color: var(--primary-color, #3b82f6);
    font-weight: 500;
}

.member-filters-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.member-filters-form .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
    flex: 1;
}

.member-filters-form .filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-filters-form .filter-group select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: border-color 0.2s;
}

.member-filters-form .filter-group select:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
}

/* Responsive */
@media (max-width: 640px) {
    .member-ads-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-ads-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    .member-filters-bar {
        flex-direction: row;
        align-items: center;
    }
    
    .member-ads-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .member-ads-filters {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .member-filters-form {
        flex-direction: column;
    }
    
    .member-filters-form .filter-group {
        min-width: 100%;
    }
}

/* ============================================================================
   MEMBER ADS CARDS
   Source: core/pages/classifieds-member-classifieds.php
   ============================================================================ */

/* Liste annonces */
.member-ads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Transition hover des cartes */
.member-ads-list .classifieds-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.member-ads-list .classifieds-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-ads-list .classifieds-card.classifieds-inactive {
    opacity: 0.7;
}

.member-ads-list .classifieds-card.classifieds-inactive:hover {
    opacity: 1;
}

/* Pagination */
.member-ads-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.member-ads-pagination li {
    display: flex;
    align-items: center;
}

.member-ads-pagination .page-info {
    padding: 0 1rem;
    color: var(--text-secondary, #6b7280);
}

/* Responsive cartes */
@media (max-width: 768px) {
    .member-ads-list .classifieds-card .card-body > div {
        flex-direction: column;
    }
    
    .member-ads-list .classifieds-card .card-body > div > div:first-child {
        width: 100%;
        height: 200px;
    }
}

/* ============================================================================
 * AUTH FORMS - Login & Register (W3C compliant - moved from inline styles)
 * ============================================================================ */

/* Choix méthode d'authentification */
.auth-method-choice,
.validation-choice {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: var(--primary-color);
}

.radio-label.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

[data-theme="dark"] .radio-label:hover {
    background: rgba(79, 70, 229, 0.05);
}

[data-theme="dark"] .radio-label.active,
[data-theme="dark"] .radio-label.active:hover {
    background: rgba(79, 70, 229, 0.15) !important;
    border-color: var(--primary-color);
}

.radio-label input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.radio-content small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Sélection compte (doublons legacy) */
.account-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.account-choice:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.account-choice:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

[data-theme="dark"] .account-choice:has(input:checked) {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary-color);
}

.account-choice input[type="radio"] {
    flex-shrink: 0;
}

.account-info {
    flex: 1;
}

.account-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.account-info small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Indicateur force mot de passe */
.password-strength {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
    width: 0%;
}

.strength-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.strength-weak .strength-bar-fill { background: #ef4444; width: 33%; }
.strength-medium .strength-bar-fill { background: #f59e0b; width: 66%; }
.strength-strong .strength-bar-fill { background: #10b981; width: 100%; }

/* Titre section register (hiérarchie h2) */
.auth-register-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* 🍯 HONEYPOT : Masquage champs pièges (anti-bot) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* ============================================================================
   OWNER CARD FOOTER - Bandeau gestion sur cartes (CONDITIONNEL - propriétaire)
   ============================================================================ */

.classifieds-card-owner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px);
}

.owner-footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 4px;
    color: white;
}

.owner-footer-badge-success { background: #22c55e; }
.owner-footer-badge-warning { background: #f59e0b; }
.owner-footer-badge-secondary { background: #6b7280; }
.owner-footer-badge-danger { background: #ef4444; }
.owner-footer-badge-info { background: #3b82f6; }
.owner-footer-badge-hidden { 
    background: rgba(255,255,255,0.15); 
    padding: 0.25rem 0.375rem;
}
.owner-footer-badge-hidden .icon {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.owner-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.owner-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    transition: all 0.15s ease;
    text-decoration: none;
}

.owner-footer-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.owner-footer-btn-renew {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.owner-footer-btn-renew:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    transform: scale(1.05);
}

.owner-footer-btn-boost {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.owner-footer-btn-boost:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: scale(1.05);
}

.owner-footer-btn-delete {
    background: transparent;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    margin-left: auto; /* Pousse à droite, séparé des autres actions */
}

.owner-footer-btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* === FOOTER GESTION V2 : Layout 2 lignes avec toggles === */

.classifieds-card-owner-footer-v2 {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

/* Info catégorie + expiration (ligne 0 du footer) */
.owner-footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.6);
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.owner-footer-info .footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.owner-footer-info .icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.owner-footer-info .expire-warning {
    color: #fbbf24;
}

.owner-footer-info .expire-warning .icon {
    opacity: 1;
}

.owner-footer-toggles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 28px; /* Hauteur constante : toggles et badges alignés */
}

.classifieds-card-owner-footer-v2 .owner-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    justify-content: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.5rem;
    margin-top: 0;
    flex-wrap: wrap; /* Permet passage sur 2 lignes si manque de place */
}

.classifieds-card-owner-footer-v2 .owner-footer-btn {
    width: auto;
    padding: 0.375rem 0.625rem;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.classifieds-card-owner-footer-v2 .owner-footer-btn .btn-label {
    display: inline;
}

.classifieds-card-owner-footer-v2 .owner-footer-btn .icon {
    width: 14px;
    height: 14px;
}

/* === TOGGLE SWITCH (Slider style) === */

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: #4b5563;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: #22c55e;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* Variante Pause/Active */
.toggle-slider-pause {
    background: #6b7280;
}

.toggle-switch input:checked + .toggle-slider-pause {
    background: #22c55e;
}

/* Variante Profil */
.toggle-slider-profile {
    background: #6b7280;
}

.toggle-switch input:checked + .toggle-slider-profile {
    background: #3b82f6;
}

.toggle-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.toggle-label .icon {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

/* Bouton Annuler publication (statut En attente) */
.owner-footer-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.owner-footer-btn-cancel:hover {
    background: rgba(239, 68, 68, 0.4);
    color: white;
}

.owner-footer-btn-cancel .icon {
    width: 12px;
    height: 12px;
}

/* === VARIANTE FOND CLAIR (Vue liste) === */
.owner-footer-light {
    background: transparent;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 1rem 0 0 0;
    margin-top: 1rem;
}

.owner-footer-light .toggle-label {
    color: #374151;
}

.owner-footer-light .owner-footer-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.owner-footer-light .owner-footer-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.owner-footer-light .owner-footer-btn-renew {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
}

.owner-footer-light .owner-footer-btn-renew:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.owner-footer-light .owner-footer-btn-boost {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
}

.owner-footer-light .owner-footer-btn-boost:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.owner-footer-light .owner-footer-btn-delete {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
}

.owner-footer-light .owner-footer-btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.owner-footer-light .owner-footer-badge {
    color: #374151;
}

.owner-footer-light .owner-footer-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.owner-footer-light .owner-footer-btn-cancel {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.owner-footer-light .owner-footer-btn-cancel:hover {
    background: #fee2e2;
    color: #991b1b;
}

.owner-footer-light .owner-footer-info {
    color: #6b7280;
    border-bottom-color: #e5e7eb;
}

.owner-footer-light .owner-footer-info .expire-warning {
    color: #d97706;
}

/* Responsive : ajustements mobile étroit (labels boutons conservés) */
@media (max-width: 400px) {
    /* Labels de boutons visibles sur mobile */
    .classifieds-card-owner-footer-v2 .owner-footer-btn .btn-label {
        display: inline; /* Afficher les labels sur mobile */
        font-size: 0.75rem;
    }
    .classifieds-card-owner-footer-v2 .owner-footer-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    .classifieds-card-owner-footer-v2 .owner-footer-actions {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    .toggle-label {
        font-size: 0.6875rem;
    }
    .toggle-slider {
        width: 32px;
        height: 18px;
    }
    .toggle-slider::before {
        width: 14px;
        height: 14px;
    }
    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(14px);
    }
}

/* ============================================================================
   TOGGLE MODE PROPRIÉTAIRE (Segmenté)
   Vue profil annonceur : bascule entre Mode gestion et Vue visiteur
   ============================================================================ */

.owner-mode-toggle {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
}

.owner-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.owner-mode-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.owner-mode-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.owner-mode-btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* === TOGGLE VUE GRILLE/LISTE === */
.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
    gap: 2px;
    margin-left: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.view-btn .icon {
    width: 16px;
    height: 16px;
}

/* === HEADER MODE GESTION === */
.owner-gestion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.owner-gestion-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.owner-gestion-header h1 .icon {
    color: var(--primary-color);
}

.owner-gestion-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* Responsive mobile */
@media (max-width: 480px) {
    .owner-mode-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    .owner-mode-btn .icon {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================================
   LANDING PAGES - Styles génériques réutilisables
   Source: Refactoring des styles inline (publier-annonce, aide, contact, etc.)
   
   Classes disponibles:
   - .landing-hero : Section hero avec gradient
   - .landing-hero-title, .landing-hero-subtitle : Titres hero
   - .landing-hero-stats, .landing-hero-stat : Statistiques dans hero
   - .landing-hero-actions : Boutons CTA hero
   - .landing-hero-hint : Texte réassurance sous hero
   - .landing-section : Section de contenu standard
   - .landing-section-alt : Section avec fond alterné
   - .landing-section-title : Titre de section
   - .landing-quote : Bloc citation
   - .landing-cta : Call-to-action final
   - .landing-footer : Footer discret
   ============================================================================ */

/* Hero principal */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 50px);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.landing-hero-title {
    font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1rem);
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats dans hero */
.landing-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.landing-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.landing-hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Actions hero */
.landing-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Bouton blanc (CTA principal sur fond coloré) */
.landing-hero-actions .btn-white {
    background: #fff;
    border: 2px solid #fff;
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.landing-hero-actions .btn-white:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

/* Bouton outline blanc (secondaire sur fond coloré) */
.landing-hero-actions .btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.landing-hero-actions .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Hint réassurance */
.landing-hero-hint {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 1rem;
}

/* Lien texte secondaire sous les CTA (maillage interne) */
.landing-hero .landing-internal-links {
    margin-top: 0.25rem;
}

.landing-hero .landing-internal-links a {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    text-decoration: none;
    opacity: 0.92;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 0.15rem;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.landing-hero .landing-internal-links a:hover {
    opacity: 1;
    border-bottom-color: #fff;
}

.landing-hero .landing-internal-links a:visited {
    color: #fff;
}

.landing-hero .landing-internal-links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Sections de contenu */
.landing-section {
    padding: 3rem 0;
}

.landing-section-alt {
    background: var(--bg-secondary, #f8f9fa);
}

.landing-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.landing-section-title svg,
.landing-section-title .icon {
    color: var(--primary-color);
}

/* Intro section (texte sous titre) */
.landing-section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Bloc citation */
.landing-quote {
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--bg-secondary, #f8f9fa);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    max-width: 700px;
    font-style: italic;
    text-align: center;
}

.landing-quote strong {
    color: var(--primary-color);
}

/* Call-to-action final */
.landing-cta {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color-light, #e3f2fd);
    border-radius: var(--radius-lg);
}

.landing-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.landing-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer discret */
.landing-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.landing-footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Footer minimal (mention légale discrète) */
.landing-footer-minimal {
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.landing-footer-minimal .landing-footer-text,
.landing-footer-minimal .contact-footer-details {
    font-size: 0.75rem;
    color: var(--text-tertiary, #999);
}

.landing-footer-minimal .contact-footer-details strong {
    font-weight: 500;
}

/* ============================================================================
   INTEGRATION PAGE - Passerelles & API PRO
   ============================================================================ */

/* Standards Grid */
.integration-standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-standard-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.integration-standard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.integration-standard-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color-light, #e3f2fd);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.integration-standard-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.integration-standard-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.integration-standard-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* Services Grid */
.integration-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.integration-service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.integration-service-card:hover {
    box-shadow: var(--shadow-lg);
}

.integration-service-card-highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-light);
}

.integration-service-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.integration-service-card-highlight .integration-service-header {
    background: var(--primary-color);
    color: white;
}

.integration-service-card-highlight .integration-service-header .integration-service-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.integration-service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.integration-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.integration-service-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.integration-service-body {
    padding: 1.5rem;
}

.integration-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.integration-service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.integration-service-features li:last-child {
    border-bottom: none;
}

.integration-service-features svg {
    color: var(--success-color, #22c55e);
    flex-shrink: 0;
}

.integration-service-ideal {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sectors Grid */
.integration-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-sector-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.integration-sector-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.integration-sector-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.integration-sector-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.integration-sector-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.integration-sector-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.integration-sector-tools li {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Partners Grid */
.integration-partners-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.integration-partner-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.integration-partner-category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.integration-partner-subtitle {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    font-style: italic;
}

.integration-partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.integration-partner-logo {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.integration-partner-logo-placeholder {
    border-style: dashed;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.7;
    background: var(--primary-color-light, #e3f2fd);
}

/* CTA Steps */
.integration-cta-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.integration-cta-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.integration-cta-step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.integration-cta-step-text {
    font-weight: 500;
}

.integration-cta-step-arrow {
    color: var(--text-tertiary);
}

/* Integration - Dark mode */
[data-theme="dark"] .integration-standard-card,
[data-theme="dark"] .integration-service-card,
[data-theme="dark"] .integration-sector-card,
[data-theme="dark"] .integration-partner-category {
    background: var(--bg-secondary);
}

[data-theme="dark"] .integration-standard-icon,
[data-theme="dark"] .integration-service-icon,
[data-theme="dark"] .integration-sector-icon {
    background: var(--primary-color-dark);
    color: white;
}

[data-theme="dark"] .integration-service-header {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .integration-cta-step {
    background: var(--bg-tertiary);
}

/* Integration - Responsive */
@media (max-width: 768px) {
    .integration-cta-steps {
        flex-direction: column;
    }
    
    .integration-cta-step-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================================================
   LANDING PAGES - Responsive
   ============================================================================ */

@media (max-width: 768px) {
    .landing-hero {
        padding: 2.5rem 0;
    }
    
    /* .landing-hero-title et .landing-hero-subtitle utilisent clamp() */
    
    .landing-hero-stats {
        gap: 1.5rem;
    }
    
    .landing-hero-stat-value {
        font-size: 2rem;
    }
    
    .landing-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .landing-hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .landing-section {
        padding: 2rem 0;
    }
    
    .landing-section-title {
        font-size: 1.5rem;
    }
    
    .landing-cta {
        padding: 1.5rem;
    }
    
    .landing-cta-title {
        font-size: 1.5rem;
    }
    
    .landing-cta-actions {
        flex-direction: column;
    }
}

/* ============================================================================
   LANDING PAGES - Dark mode
   ============================================================================ */

[data-theme="dark"] .landing-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .landing-section-alt {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .landing-quote {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .landing-cta {
    background: var(--bg-secondary);
}

/* ============================================================================
   UI/UX OPTIMISATIONS
   ============================================================================ */

/* 1. Transitions fluides sur boutons */
.landing-hero-actions .btn,
.landing-cta-actions .btn {
    transition: all 0.2s ease;
}

/* 2. Focus states pour accessibilité */
.landing-hero-actions .btn:focus-visible,
.landing-cta-actions .btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* 3. Stats fluides sur mobile */
.landing-hero-stat-value {
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
}

/* 4. Effet hover sur feature cards */
.feature-item,
.pro-feature-card,
.partners-benefit-card,
.contact-card,
.conseil-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   PAGE: ANNONCES-REGIONS
   Migré depuis inline <style> (2025-01-29)
   ============================================================================ */

/* Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Card */
.region-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.region-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.region-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.region-canton-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.region-canton-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.region-canton-title a:hover {
    color: var(--primary-color);
}

.region-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Cities list */
.region-cities {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
}

.region-cities li {
    font-size: 0.9rem;
}

.region-cities a {
    color: var(--text-secondary);
    text-decoration: none;
}

.region-cities a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.city-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* See all link */
.region-see-all {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.region-see-all:hover {
    text-decoration: underline;
}

/* CTA */
.regions-cta {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
}

.regions-cta h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.regions-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Responsive - Regions */
@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .region-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================================================
   PAGE: PUBLIER-ANNONCE
   Migré depuis inline <style>
   ============================================================================ */

/* Steps */
.publish-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.publish-step {
    text-align: center;
    padding: 1.5rem;
}

.publish-step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color, #007bff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.publish-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publish-step-text {
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
}

/* FAQ */
.publish-faq {
    max-width: 800px;
    margin: 0 auto;
}

.publish-faq-item {
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.publish-faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
}

.publish-faq-question::-webkit-details-marker {
    display: none;
}

.publish-faq-question::after {
    content: '+';
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.publish-faq-item[open] .publish-faq-question::after {
    content: '−';
}

.publish-faq-answer {
    padding: 0 1.25rem 1rem 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.publish-faq-answer p {
    margin: 0;
}

/* CTA Box */
.publish-cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.publish-cta-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publish-cta-subtitle {
    color: var(--text-secondary, #666);
    margin-bottom: 1.5rem;
}

.publish-cta-actions {
    margin-bottom: 1rem;
}

.publish-cta-login {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.publish-cta-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.publish-cta-login a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .publish-cta-box {
        padding: 1.5rem;
    }
}

[data-theme="dark"] .publish-faq-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .publish-cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================================================
   PAGE: ANNONCES-AIDE
   Migré depuis inline <style>
   ============================================================================ */

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
}

.faq-toggle {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 3.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Communauté card */
.communaute-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color, #007bff) 70%, purple) 100%);
    border-radius: var(--radius-xl, 16px);
    padding: 2.5rem;
    color: white;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.communaute-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.communaute-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.communaute-content p {
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Conseils */
.conseils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.conseil-card {
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
}

.conseil-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.conseil-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.conseil-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conseil-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.conseil-card li:last-child {
    border-bottom: none;
}

.conseil-tip {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.tip-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.conseil-tip p {
    margin: 0;
    color: var(--text-primary);
}

/* Liens utiles */
.liens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.lien-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.lien-card:hover {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-primary));
}

.lien-icon {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .communaute-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .communaute-icon {
        font-size: 3rem;
    }
    
    .faq-answer {
        padding-left: 1.25rem;
    }
}

[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .conseil-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .lien-card {
    background: var(--bg-secondary);
}

/* ============================================================================
   PAGE: ANNONCES-PROFESSIONNELS
   Migré depuis inline <style>
   ============================================================================ */

/* Features Grid */
.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pro-feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.pro-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pro-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pro-feature-icon .icon {
    width: 28px;
    height: 28px;
    color: white;
}

.pro-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pro-feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Sectors Grid */
.pro-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pro-sector-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.pro-sector-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-sector-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

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

.pro-sector-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.pro-sector-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Upgrade Box */
.pro-upgrade-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: white;
}

.pro-upgrade-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pro-upgrade-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pro-upgrade-text {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.pro-upgrade-price {
    margin-bottom: 1.5rem;
}

.pro-upgrade-amount {
    font-size: 3rem;
    font-weight: 700;
}

.pro-upgrade-currency {
    font-size: 1.25rem;
    opacity: 0.9;
}

.pro-upgrade-box .btn {
    background: #fff;
    border: 2px solid #fff;
    color: #10b981;
    font-weight: 600;
}

.pro-upgrade-box .btn:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

[data-theme="dark"] .pro-feature-card,
[data-theme="dark"] .pro-sector-card {
    background: var(--bg-secondary);
}

/* ============================================================================
   PAGE: ANNONCES-PARTENAIRES
   Migré depuis inline <style>
   ============================================================================ */

/* Benefits Grid */
.partners-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partners-benefit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.partners-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partners-benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.partners-benefit-icon .icon {
    width: 28px;
    height: 28px;
}

.partners-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.partners-benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Types Grid */
.partners-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partners-type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partners-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partners-type-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.partners-type-icon .icon {
    width: 24px;
    height: 24px;
}

.partners-type-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.partners-type-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.partners-type-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partners-type-card ul li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.partners-type-card ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Empty State */
.partners-empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.partners-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.partners-empty-icon .icon {
    width: 40px;
    height: 40px;
}

.partners-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.partners-empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

[data-theme="dark"] .partners-benefit-card,
[data-theme="dark"] .partners-type-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .partners-empty-state {
    background: var(--bg-tertiary);
}

/* ============================================================================
   PAGE: CLASSIFIEDS-CONTACT
   Migré depuis inline <style>
   ============================================================================ */

/* Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card-primary {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
}

.contact-card-primary::before {
    content: "Recommand\E9";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--primary-color-dark, #0056b3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-card-icon .icon {
    width: 28px;
    height: 28px;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.contact-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.contact-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-card-features li .icon {
    width: 16px;
    height: 16px;
    color: var(--success-color, #22c55e);
}

/* FAQ Contact */
.contact-faq {
    max-width: 800px;
    margin: 0 auto;
}

.contact-faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.contact-faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

.contact-faq-question::-webkit-details-marker {
    display: none;
}

.contact-faq-question .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.contact-faq-item[open] .contact-faq-question .icon {
    transform: rotate(180deg);
}

.contact-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-faq-answer p {
    margin: 0;
}

.contact-faq-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-faq-more p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Trust Grid */
.contact-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-trust-item {
    padding: 1.5rem;
}

.contact-trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-trust-number .icon {
    width: 48px;
    height: 48px;
}

.contact-trust-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer Address */
.contact-footer-details {
    margin: 0;
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-trust-number {
        font-size: 2rem;
    }
}

[data-theme="dark"] .contact-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .contact-faq-item {
    background: var(--bg-secondary);
}

/* ============================================================================
   PAGE: CLASSIFIEDS-COMPARATIF
   Migré depuis inline <style>
   ============================================================================ */

.comparatif-page {
    background: var(--bg-secondary);
}

/* Introduction */
.comparatif-intro {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.comparatif-intro p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.comparatif-intro p:last-child {
    margin-bottom: 0;
}

/* Tableau */
.comparatif-table-wrapper {
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.comparatif-table {
    width: 100%;
    border-collapse: collapse;
}

.comparatif-table th,
.comparatif-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparatif-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.comparatif-table tr.highlight {
    background: rgba(59, 130, 246, 0.08);
}

.comparatif-table tr.unavailable {
    opacity: 0.6;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

/* Cards détail */
.comparatif-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.comparatif-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.comparatif-card.highlight {
    border: 2px solid var(--primary-color);
}

.comparatif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.comparatif-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.comparatif-card-body {
    padding: 1.5rem;
}

.comparatif-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.comparatif-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comparatif-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comparatif-pros strong,
.comparatif-cons strong {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.comparatif-pros strong { color: #16a34a; }
.comparatif-cons strong { color: #d97706; }

.comparatif-pros ul,
.comparatif-cons ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.875rem;
}

.comparatif-pros li,
.comparatif-cons li {
    margin-bottom: 0.25rem;
}

/* Info box Leboncoin */
.comparatif-info-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.comparatif-info-box p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.comparatif-info-box p:last-child {
    margin-bottom: 0;
}

/* Critères */
.comparatif-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.comparatif-criterion {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.comparatif-criterion-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.comparatif-criterion h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.comparatif-criterion p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .comparatif-cards {
        grid-template-columns: 1fr;
    }
    
    .comparatif-pros-cons {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .comparatif-intro,
[data-theme="dark"] .comparatif-card,
[data-theme="dark"] .comparatif-criterion,
[data-theme="dark"] .comparatif-table-wrapper {
    background: var(--bg-secondary);
}

[data-theme="dark"] .comparatif-info-box {
    background: rgba(59, 130, 246, 0.15);
}

/* ============================================================================
   PAGE: CLASSIFIEDS-LEBONCOIN-SUISSE
   Migré depuis inline <style>
   ============================================================================ */

.leboncoin-suisse-page {
    --lbs-accent: #f59e0b;
}

/* Hero custom (gradient spécifique) */
.lbs-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.lbs-hero-title {
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.lbs-hero-title .highlight {
    color: var(--lbs-accent);
}

/* Stats bar */
.lbs-stats {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Categories Grid */
.lbs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.lbs-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.lbs-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.lbs-category-icon {
    color: var(--primary-color);
}

.lbs-category-name {
    font-weight: 500;
    text-align: center;
}

.lbs-section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Cities List */
.lbs-cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.lbs-city-link {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.lbs-city-link:hover {
    background: var(--primary-color);
    color: white;
}

.lbs-city-count {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.lbs-city-link:hover .lbs-city-count {
    opacity: 1;
}

/* Features Grid */
.lbs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.lbs-feature {
    text-align: center;
    padding: 1.5rem;
}

.lbs-feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lbs-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lbs-feature p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* FAQ LBS */
.lbs-faq {
    max-width: 800px;
    margin: 0 auto;
}

.lbs-faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.lbs-faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lbs-faq-item summary::-webkit-details-marker {
    display: none;
}

.lbs-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}

.lbs-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.lbs-faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.lbs-faq-item a {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .lbs-hero {
        padding: 3rem 0;
    }
    
    .lbs-hero-title {
        font-size: 1.75rem;
    }
    
    .lbs-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lbs-features-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .lbs-stats {
    background: var(--bg-secondary);
}

[data-theme="dark"] .lbs-category-card,
[data-theme="dark"] .lbs-faq-item {
    background: var(--bg-secondary);
}

/* ============================================================================
   PAGE: CLASSIFIEDS-ABOUT
   Badge Swiss Made Software
   ============================================================================ */

.about-sms-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 640px;
    margin: 2.5rem auto 0;
}

.about-sms-badge img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.about-sms-badge-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-sms-badge-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.about-sms-badge-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8125rem;
}

.about-sms-badge-text a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .about-sms-badge {
    background: var(--bg-secondary);
}

[data-theme="dark"] .about-sms-badge img {
    filter: brightness(0.92);
}

@media (max-width: 480px) {
    .about-sms-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ============================================================================
   PAGE: CLASSIFIEDS-ABOUT
   Section vie privée spécifique
   ============================================================================ */

.about-privacy-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-privacy-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.about-privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.about-privacy-content p:last-of-type {
    margin-bottom: 1.5rem;
}

.about-privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.about-privacy-list li:last-child {
    border-bottom: none;
}

.about-privacy-list li svg {
    color: var(--success-color, #22c55e);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.about-privacy-list li strong {
    color: var(--text-primary);
}

/* Section intro centrée */
.landing-section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Dark mode */
[data-theme="dark"] .about-privacy-content {
    background: var(--bg-secondary);
}

/* ========================
   PAGE SÉCURITÉ
   ======================== */

/* Grille signaux d'alerte */
.security-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-alert-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.security-alert-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.security-alert-buyer h3 {
    color: var(--warning-color, #f59e0b);
}

.security-alert-seller h3 {
    color: var(--danger-color, #ef4444);
}

.security-alert-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.security-alert-card li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.security-alert-card li strong {
    color: var(--text-primary);
}

/* Grille bonnes pratiques */
.security-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.security-practice-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.security-practice-number {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.security-practice-card h3 {
    margin: 0.5rem 0 1rem;
    font-size: 1.1rem;
}

.security-practice-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.security-practice-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Grille paiements */
.security-payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.security-payment-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.security-payment-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.security-payment-safe {
    border-left: 4px solid var(--success-color, #22c55e);
}

.security-payment-safe h3 {
    color: var(--success-color, #22c55e);
}

.security-payment-danger {
    border-left: 4px solid var(--danger-color, #ef4444);
}

.security-payment-danger h3 {
    color: var(--danger-color, #ef4444);
}

.security-payment-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.security-payment-card li {
    margin-bottom: 0.5rem;
}

/* Grille arnaques */
.security-scams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.security-scam-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border-left: 4px solid var(--warning-color, #f59e0b);
    box-shadow: var(--shadow-sm);
}

.security-scam-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--warning-color, #f59e0b);
}

.security-scam-card p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-scam-reality {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem !important;
}

/* Grille victime */
.security-victim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.security-victim-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.security-victim-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.security-victim-card ol {
    margin: 0;
    padding-left: 1.5rem;
}

.security-victim-card li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Dark mode security */
[data-theme="dark"] .security-alert-card,
[data-theme="dark"] .security-practice-card,
[data-theme="dark"] .security-payment-card,
[data-theme="dark"] .security-scam-card,
[data-theme="dark"] .security-victim-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .security-scam-reality {
    background: var(--bg-tertiary);
}

/* ============================================================================
   NOTIFICATIONS SETTINGS PAGE
   ============================================================================ */

.notifications-container {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.notifications-header {
    margin-bottom: 2rem;
}

.notifications-header h1 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-header p {
    color: var(--text-secondary);
    margin: 0;
}

.notifications-section {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.notifications-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.notifications-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: background 0.2s ease;
}

.notification-option:last-child {
    margin-bottom: 0;
}

.notification-option:hover {
    background: var(--bg-tertiary);
}

.notification-option input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.notification-option-content {
    flex: 1;
}

.notification-option-title {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-option-description {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9rem;
}

.notifications-submit {
    margin-top: 1.5rem;
}

.notifications-submit .btn {
    width: 100%;
}

.notifications-back {
    text-align: center;
    margin-top: 2rem;
}

.notifications-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.notifications-back a:hover {
    text-decoration: underline;
}

/* Dark mode notifications */
@media (prefers-color-scheme: dark) {
    .notifications-card {
        background: var(--bg-primary);
    }
}

[data-theme="dark"] .notifications-card {
    background: var(--bg-primary);
}

/* ============================================================================
   CANCEL LINK - Lien discret pour annuler le flow publication
   ============================================================================ */

.cancel-link {
    color: var(--text-tertiary, #94a3b8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.cancel-link:hover {
    color: var(--text-secondary, #64748b);
    text-decoration: underline;
}

/* ============================================================================
   STEPPER - Masquer étape 1 sur mobile (non cliquable de toute façon)
   ============================================================================ */

@media (max-width: 480px) {
    .publish-stepper .publish-stepper__step--hide-mobile,
    .publish-stepper .publish-stepper__line--hide-mobile {
        display: none !important;
    }
}

/* ============================================================================
   PUBLISH STEP HEADER - En-tête unifié pour les 4 étapes de publication
   Utilisé par: insert, edit, pictures, upgrade
   ============================================================================ */

.publish-step-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.publish-step-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.publish-step-header h1 svg {
    color: var(--primary-color, #3b82f6);
    flex-shrink: 0;
}

.publish-step-subtitle {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.publish-step-subtitle strong {
    color: var(--text-primary, #1e293b);
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .publish-step-header h1 {
        font-size: 1.25rem;
    }
    
    .publish-step-header h1 svg {
        width: 20px;
        height: 20px;
    }
    
    .publish-step-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================================================
   FAQ — Listing catégories + Home (signal GEO/AEO visible)
   Cohérence avec FAQPage JSON-LD pour Google + LLMs
   ============================================================================ */

.classifieds-listing-faq,
.classifieds-home-faq {
    padding: 2.5rem 0;
    background: var(--bg-secondary, #f8fafc);
    margin-top: 2rem;
}

.classifieds-listing-faq-title,
.classifieds-home-faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0 0 1.5rem;
    text-align: center;
}

.classifieds-listing-faq-list,
.classifieds-home-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.classifieds-listing-faq-item,
.classifieds-home-faq-item {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.classifieds-listing-faq-item[open],
.classifieds-home-faq-item[open] {
    border-color: var(--primary-color, #3b82f6);
}

.classifieds-listing-faq-question,
.classifieds-home-faq-question {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    font-size: 1rem;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    user-select: none;
}

.classifieds-listing-faq-question::-webkit-details-marker,
.classifieds-home-faq-question::-webkit-details-marker {
    display: none;
}

.classifieds-listing-faq-question::after,
.classifieds-home-faq-question::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary, #64748b);
    border-bottom: 2px solid var(--text-secondary, #64748b);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.classifieds-listing-faq-item[open] .classifieds-listing-faq-question::after,
.classifieds-home-faq-item[open] .classifieds-home-faq-question::after {
    transform: translateY(-25%) rotate(-135deg);
}

.classifieds-listing-faq-answer,
.classifieds-home-faq-answer {
    padding: 0 1.25rem 1.125rem;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    font-size: 0.9375rem;
}

@media (max-width: 575px) {
    .classifieds-listing-faq,
    .classifieds-home-faq {
        padding: 1.75rem 0;
    }
    .classifieds-listing-faq-title,
    .classifieds-home-faq-title {
        font-size: 1.25rem;
    }
    .classifieds-listing-faq-question,
    .classifieds-home-faq-question {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
        padding-right: 2.25rem;
    }
}

