/* Business Directory - Styles */

/* Reset des styles pour éviter les conflits avec Divi */
.bd-search-filters * {
    box-sizing: border-box;
}

/* Barre de recherche et filtres */
.bd-search-filters {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 50px;
    border: none;
}

.bd-search-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.bd-search-input-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.bd-search-input {
    width: 100%;
    height: 48px;
    padding: 0 56px 0 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #1f2937;
    line-height: 48px;
    margin: 0;
}

.bd-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bd-search-input::placeholder {
    color: #9ca3af;
    line-height: normal;
}

.bd-search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 0;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.bd-search-button:hover {
    background: #5568d3;
}

.bd-search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.bd-search-button svg {
    display: block;
    width: 20px;
    height: 20px;
}

.bd-filter-wrapper {
    display: contents;
}

.bd-filter-select {
    height: 48px;
    padding: 0 40px 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #1f2937;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    line-height: 48px;
    margin: 0;
}

.bd-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bd-filter-select:hover {
    border-color: #d1d5db;
}

.bd-filter-button {
    height: 48px;
    padding: 0 28px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 48px;
    margin: 0;
}

.bd-filter-button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.bd-filter-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.bd-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 20px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    margin: 0;
    line-height: 48px;
}

.bd-reset-filters:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.bd-reset-filters svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.bd-search-results-info {
    margin-bottom: 30px;
    padding: 18px 24px;
    background: #f0f9ff;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    color: #1e40af;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.bd-search-results-info strong {
    color: #667eea;
    font-weight: 700;
}

.bd-search-results-info em {
    color: #667eea;
    font-style: normal;
    font-weight: 600;
}

.bd-no-results {
    text-align: center;
    padding: 100px 20px;
    color: #9ca3af;
    font-size: 18px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 40px 0;
}

.bd-no-results::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .bd-search-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bd-filter-wrapper {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
    }
    
    .bd-filter-select {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .bd-search-filters {
        margin-bottom: 30px;
    }
    
    .bd-search-form {
        padding: 20px;
        gap: 12px;
    }
    
    .bd-filter-wrapper {
        grid-template-columns: 1fr;
    }
    
    .bd-filter-select,
    .bd-filter-button,
    .bd-reset-filters {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .bd-search-form {
        padding: 16px;
    }
}

/* Grille d'entreprises */
.bd-directory-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.bd-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1200px) {
    .bd-directory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .bd-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bd-directory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Carte entreprise */
.bd-company-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #f3f4f6;
}

.bd-company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.bd-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bd-card-logo {
    width: 100%;
    height: 220px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.bd-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bd-company-card:hover .bd-card-logo img {
    transform: scale(1.05);
}

.bd-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bd-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    font-family: inherit;
}

.bd-card-type {
    display: inline-block;
    padding: 6px 14px;
    background: #ede9fe;
    color: #667eea;
    font-size: 13px;
    border-radius: 20px;
    margin: 0;
    align-self: flex-start;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bd-card-activity {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    font-family: inherit;
}

/* Page de détail */
.bd-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bd-detail-wrapper {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.bd-detail-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 50px;
    background: linear-gradient(135deg, #F78520 0%, #F4A453 50%, #A7CB5D 100%);
    color: #fff;
    overflow: hidden;
}

/* Effets décoratifs en arrière-plan */
.bd-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bd-detail-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bd-detail-logo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.bd-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bd-detail-header-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.bd-detail-title {
    margin: 0 0 15px 0;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

.bd-detail-type {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    border-radius: 25px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bd-detail-activity-short {
    margin: 0;
    font-size: 18px;
    color: #fff;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

.bd-detail-content {
    padding: 40px;
}

.bd-detail-section {
    margin-bottom: 40px;
}

.bd-detail-section:last-child {
    margin-bottom: 0;
}

.bd-detail-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #F78520 0%, #A7CB5D 100%);
    border-image-slice: 1;
    padding-bottom: 10px;
}

.bd-detail-section p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.bd-detail-section p:last-child {
    margin-bottom: 0;
}

.bd-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Bouton site web */
.bd-website-button-wrapper {
    margin-bottom: 20px;
}

.bd-website-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #F78520 0%, #F4A453 50%, #A7CB5D 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 133, 32, 0.3);
}

.bd-website-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 133, 32, 0.4);
    color: #ffffff;
}

.bd-website-button svg {
    flex-shrink: 0;
}

.bd-website-button .bd-external-icon {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.bd-website-button:hover .bd-external-icon {
    transform: translate(2px, -2px);
}

/* Adresse stylisée */
.bd-address-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-left: 4px solid #F78520;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bd-address-display svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #F78520;
}

.bd-address-display span {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* Réseaux sociaux */
.bd-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bd-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.bd-social-link svg {
    flex-shrink: 0;
}

.bd-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bd-social-facebook {
    background: #1877f2;
}

.bd-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bd-social-linkedin {
    background: #0077b5;
}

.bd-social-twitter {
    background: #1da1f2;
}

.bd-social-youtube {
    background: #ff0000;
}

.bd-social-tiktok {
    background: #000;
}

/* Carte et itinéraire */
.bd-address-display {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    border-left: 4px solid #667eea;
}

.bd-address-display svg {
    color: #667eea;
}

.bd-detail-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f5f5f5;
}

.bd-directions-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bd-directions-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.bd-directions-button svg {
    flex-shrink: 0;
}

/* Responsive pour le détail */
@media (max-width: 768px) {
    .bd-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .bd-detail-title {
        font-size: 28px;
    }

    .bd-detail-content {
        padding: 30px 20px;
    }

    .bd-detail-section h2 {
        font-size: 20px;
    }

    .bd-social-links {
        justify-content: center;
    }
}

/* Pagination */
.bd-pagination {
    margin-top: 40px;
    text-align: center;
}

.bd-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.bd-pagination li {
    display: inline-block;
}

.bd-pagination a,
.bd-pagination span {
    display: block;
    padding: 10px 16px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bd-pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.bd-pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.bd-pagination .dots {
    background: transparent;
    border: none;
    color: #999;
    cursor: default;
}

.bd-pagination .prev,
.bd-pagination .next {
    font-weight: 600;
}

@media (max-width: 480px) {
    .bd-pagination a,
    .bd-pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}
