/* ====================================
   SECTION ENTREPRISES - ANNUAIRE
==================================== */

/* Section principale */
.entCat-section {
    /* background-color: #f8f9fa; */
    min-height: 100vh;
}

/* Card principale de l'entreprise */
.entCat-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.entCat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.entCat-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.entCat-card .card-body {
    padding: 2rem;
}

/* Container du logo */
.entCat-logo-container {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.entCat-logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #9c27b0, #f44336, #ff9800);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entCat-card:hover .entCat-logo-container::before {
    opacity: 1;
}

/* Logo de l'entreprise */
.entCat-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.entCat-card:hover .entCat-logo {
    transform: scale(1.05);
}

/* Nom de l'entreprise */
.entCat-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.entCat-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #9c27b0);
    transition: width 0.3s ease;
}

.entCat-card:hover .entCat-name::after {
    width: 50px;
}

/* Métadonnées (package et catégorie) */
.entCat-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.entCat-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.entCat-meta .text-muted {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d !important;
    text-transform: capitalize;
}

/* Description de l'entreprise */
.entCat-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 0.8rem;
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
}

.entCat-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
    z-index: 0;
}

.entCat-description p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    line-height: 1.4;
    color: #495057;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Adresse */
.entCat-address {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border-radius: 10px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.entCat-address:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #f8bbd9 100%);
    transform: translateX(5px);
}

.entCat-address i {
    font-size: 1rem;
    color: #ff9800 !important;
}

.entCat-address span {
    color: #5d4037;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Section contact */
.entCat-contact {
    background: linear-gradient(135deg, #e8f5e8 0%, #f3e5f5 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Éléments de contact */
.entCat-contact-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    word-break: break-word;
    min-height: 45px;
}

.entCat-contact-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entCat-contact-item:nth-child(1) {
    border-left-color: #28a745;
}

.entCat-contact-item:nth-child(1):hover {
    border-left-color: #1e7e34;
}

.entCat-contact-item:nth-child(2) {
    border-left-color: #dc3545;
}

.entCat-contact-item:nth-child(2):hover {
    border-left-color: #bd2130;
}

.entCat-contact-item:nth-child(3) {
    border-left-color: #17a2b8;
}

.entCat-contact-item:nth-child(3):hover {
    border-left-color: #117a8b;
}

.entCat-contact-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.entCat-contact-item a {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
}

.entCat-contact-item:hover a {
    color: #007bff;
}

/* Animations et transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entCat-card {
    animation: fadeInUp 0.6s ease-out;
}

.entCat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.entCat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.entCat-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entCat-card .card-body {
        padding: 1.5rem;
    }

    .entCat-logo-container {
        padding: 0.8rem;
    }

    .entCat-logo {
        width: 80px;
        height: 80px;
    }

    .entCat-name {
        font-size: 1.3rem;
    }

    .entCat-description {
        padding: 0.6rem;
    }

    .entCat-contact {
        padding: 1.2rem;
        margin-top: 1rem;
    }

    .entCat-contact-item {
        padding: 0.6rem;
        align-items: flex-start;
    }

    .entCat-contact-item a {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .entCat-section {
        padding: 2rem 0;
    }

    .entCat-card .card-body {
        padding: 1rem;
    }

    .entCat-logo {
        width: 70px;
        height: 70px;
    }

    .entCat-name {
        font-size: 1.2rem;
    }

    .entCat-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .entCat-contact-item {
        padding: 0.5rem;
        align-items: flex-start;
    }

    .entCat-contact-item a {
        font-size: 0.8rem;
    }

    .entCat-description {
        padding: 0.5rem;
    }
}
