
/* Reset et base */
* { box-sizing: border-box; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Hero moderne avec nos couleurs */
.hero {
    background: #000;
    color: white;
    padding: 60px 0 80px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0 0 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Section recherche moderne intégrée dans le hero */
.search-section {
    padding: 0;
    background: transparent;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-form-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    max-width: 1000px;
    position: relative;
}

/* Grille de recherche moderne sur 2 lignes */
.search-grid {
    display: block;
    margin-bottom: 30px;
}

.search-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 20px 0;
    margin-bottom: 20px;
}

.search-row:last-child {
    margin-bottom: 0;
}

.form-field-row {
    display: table-cell;
    width: 33.333%;
    vertical-align: top;
}

.form-field-single {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.form-field label,
.form-field-row label,
.form-field-single label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field-row input,
.form-field-row select,
.form-field-single input,
.form-field-single select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #fafafa;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field-row input:focus,
.form-field-row select:focus,
.form-field-single input:focus,
.form-field-single select:focus {
    outline: none;
    border-color: #000;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-actions-modern {
    text-align: center;
    margin-top: 30px;
}

.btn-search {
    background: #000;
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-search:hover::before {
    left: 100%;
}

.btn-search:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-reset {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
    transform: translateY(-2px);
}

/* Résultats avec header moderne */
.search-results {
    padding: 60px 0;
    background: #fafbfc;
}

.results-header {
    display: table;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 20px;
}

.results-title {
    display: table-cell;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    vertical-align: middle;
}

.results-count {
    display: table-cell;
    text-align: right;
    color: #6b7280;
    font-size: 1rem;
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    vertical-align: middle;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.no-results {
    text-align: center;
    padding: 50px 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* GRILLE CARTES UNIVERSELLE - CORRIGÉE */
.syndic-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 20px;
    margin-top: 20px;
}

.syndic-grid-row {
    display: table-row;
}

.syndic-card {
    display: table-cell;
    width: 33.333%;
    min-height: 320px;
    vertical-align: top;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.syndic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Fond dégradé */
.syndic-card-header {
    height: 120px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 30%, #5a6c7d 70%, #7f8c8d 100%);
    position: relative;
    border-radius: 15px 15px 0 0;
}

.syndic-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
    background-size: 50px 50px, 40px 40px;
}

/* Styles premium et business */
.syndic-card.business {
    border: 4px solid #2563eb;
}

.syndic-card.business .syndic-card-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 70%, #60a5fa 100%);
    margin: -2px;
    border-radius: 17px 17px 0 0;
}

.syndic-card.business:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 0 20px rgba(37, 99, 235, 0.3);
}

.syndic-card.premium {
    border: 4px solid #f59e0b;
}

.syndic-card.premium .syndic-card-header {
    background: linear-gradient(135deg, #d4860a 0%, #f59e0b 30%, #fbbf24 70%, #fcd34d 100%);
    margin: -2px;
    border-radius: 17px 17px 0 0;
}

.syndic-card.premium:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Logo */
.syndic-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 54px;
}

.syndic-logo img {
    max-height: 45px;
    max-width: 45px;
    vertical-align: middle;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background: #000;
    color: white;
    line-height: 45px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 6px auto 0 auto;
}

/* Badge premium */
.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 15;
}

.premium-badge i {
    font-size: 10px;
    margin-right: 4px;
}

/* Contenu carte - SANS HAUTEUR FIXE */
.syndic-card-content {
    padding: 15px;
    margin-top: 70px;
    background: white;
    border-radius: 0 0 15px 15px;
    min-height: 180px;
    box-sizing: border-box;
}

.syndic-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.syndic-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 600;
}

.syndic-rating {
    display: table;
    width: 100%;
}

.syndic-rating .stars {
    display: table-cell;
    color: #fbbf24;
    vertical-align: middle;
    width: auto;
}

.syndic-rating span {
    display: table-cell;
    vertical-align: middle;
    padding-left: 10px;
}

.syndic-details {
    margin-bottom: 12px;
    line-height: 1.3;
}

.syndic-details div {
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.syndic-details i {
    width: 20px;
    color: #000;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
}

.view-profile {
    display: block;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.syndic-card:hover .view-profile {
    background: #333;
    color: #fff;
}

.syndic-card.business .view-profile {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.syndic-card.business:hover .view-profile {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.syndic-card.premium .view-profile {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.syndic-card.premium:hover .view-profile {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    clear: both;
    overflow: hidden;
}

.page-numbers {
    display: inline-block;
    margin: 0 10px;
}

.page-number, .current-page, .page-link {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    text-align: center;
    transition: all 0.2s;
    vertical-align: middle;
    float: none;
}

.page-number {
    background: #f5f5f5;
    color: #333;
}

.page-number:hover {
    background: #e0e0e0;
}

.current-page {
    background: #000;
    color: white;
    font-weight: 600;
}

.page-link {
    background: #f5f5f5;
    color: #333;
    padding: 0 15px;
}

.page-link:hover {
    background: #e0e0e0;
}

.page-ellipsis {
    display: inline-block;
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

/* Styles spéciaux pour arrondissements */
.arrondissement-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: white;
}

.arrondissement-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.arrondissement-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    height: 100%;
    display: table;
    width: 100%;
}

.arrondissement-hero .arrondissement-number {
    display: table-cell;
    width: 200px;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 8px solid white;
    height: 200px;
    border-radius: 50%;
    text-align: center;
    vertical-align: middle;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.arrondissement-info {
    display: table-cell;
    padding-left: 40px;
    vertical-align: middle;
}

.arrondissement-info h1 {
    font-size: 48px;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.arrondissement-info .landmark {
    font-size: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.arrondissement-info .landmark i {
    margin-right: 8px;
    color: #ffd700;
}

.arrondissement-info .syndic-count {
    font-size: 18px;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.arrondissement-info .syndic-count strong {
    color: #ffd700;
    font-weight: 700;
}

.mini-search-container {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mini-search {
    display: table;
    width: 100%;
}

.mini-search-form {
    display: table-cell;
    vertical-align: middle;
}

.mini-search-form select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 250px;
    margin-right: 10px;
}

.mini-search-form button {
    background: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.advanced-search-link {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.advanced-search-link:hover {
    color: #000;
}

.advanced-search-link i {
    margin-left: 5px;
}

/* RESPONSIVE MODERNE */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .search-form-modern {
        margin: -20px 20px 0 20px;
        padding: 30px 20px;
    }
    
    .search-row {
        display: block;
        border-spacing: 0;
    }
    
    .form-field-row,
    .form-field-single {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .btn-search, .btn-reset {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .results-header {
        display: block;
        padding: 0;
    }
    
    .results-title {
        display: block;
        margin-bottom: 15px;
        font-size: 1.8rem;
    }
    
    .results-count {
        display: inline-block;
        text-align: center;
        width: auto;
        margin-bottom: 20px;
    }
    
    .syndic-grid {
        display: block;
        border-spacing: 0;
    }
    
    .syndic-grid-row {
        display: block;
    }
    
    .syndic-card {
        display: block;
        width: 100%;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .syndic-card-content {
        min-height: auto;
    }
}
    
    .arrondissement-hero {
        height: auto;
    }
    
    .arrondissement-hero-content {
        display: block;
        padding: 50px 0;
        text-align: center;
    }
    
    .arrondissement-hero .arrondissement-number {
        display: block;
        font-size: 80px;
        width: 150px;
        height: 150px;
        margin: 0 auto 20px auto;
        border: 6px solid white;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        line-height: 138px;
    }
    
    .arrondissement-info {
        display: block;
        padding-left: 0;
    }
    
    .arrondissement-info h1 {
        font-size: 32px;
    }
    
    .mini-search {
        display: block;
        text-align: center;
    }
    
    .mini-search-form {
        display: block;
        margin-bottom: 15px;
    }
    
    .mini-search-form select {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .mini-search-form button {
        width: 100%;
    }
    
    .advanced-search-link {
        display: block;
        text-align: center;
    }
