/* Animations pour les éléments au défilement */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Amélioration des cartes d'établissement */
.establishment-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.establishment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Style pour les badges de secteur */
.sector-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
}

.sector-badge:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.sector-badge i {
    margin-right: 5px;
    color: #007bff;
}

.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #333;
    font-weight: 600;
}

.text-primary {
    color: #0d6efd !important;
}

.alert-info {
    background-color: #e7f5ff;
    border: none;
    border-radius: 10px;
    color: #0c63e4;
}

.fas {
    transition: transform 0.3s ease;
}

.card:hover .fas {
    transform: scale(1.1);
}

.btn-outline-primary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
}

/* Styles pour la section carte et établissements */
.establishments-section {
    margin-bottom: 3rem;
}

.establishments-list .row {
    margin-right: -15px;
    margin-left: -15px;
}

.establishments-list .col-md-6 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.establishment-card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    height: auto !important;
    max-height: none !important;
}

.establishment-card .card-body {
    padding: 1.25rem;
    height: auto !important;
}

.establishment-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.metiers-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
}

.sector-badge i {
    margin-right: 6px;
    color: #0d6efd;
    font-size: 0.9rem;
}

.sector-badge span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .establishments-list .col-md-6 {
        margin-bottom: 20px;
    }
    
    .metiers-icons {
        flex-direction: column;
    }
    
    .sector-badge {
        width: 100%;
    }
}

/* Loader Styles */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    margin-right: 0.5rem;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.load-more-btn {
    min-width: 200px;
    transition: all 0.3s ease;
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Styles pour la grille des domaines */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
}

.domain-card-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
}

.domain-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fff;
    border-color: #0d6efd;
}

.domain-emoji {
    font-size: 1.4rem;
    margin-bottom: 0;
    margin-right: 10px;
    line-height: 1;
}

.domain-content {
    display: block;
    width: auto;
}

.domain-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
}

/* Ancienne classe domain-desc supprimée car plus utilisée */
.domain-desc {
    display: none;
}

/* Styles pour le filtre grille des domaines */
.domain-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.domain-filter-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
    height: 100%;
}

.domain-filter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.domain-filter-card.active {
    border-color: #0d6efd;
    background-color: #e7f5ff;
}

.filter-emoji {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.filter-content {
    flex: 1;
}

.filter-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.filter-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 992px) {
    .domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .domain-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .domain-grid {
        grid-template-columns: 1fr;
    }
    .domain-filter-grid {
        grid-template-columns: 1fr;
    }
}
