/* ============================================================
   ENTREPRISE CARDS — entreprise-card.css
   Préfixe : ec-
   Approche : Mobile First
   Charte : #0072ce (bleu), #f7941e (orange), #f8f9fa (gris clair)
   ============================================================ */

/* ── Conteneur de la liste ── */
.ec-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ec-list {
        gap: 1.5rem;
    }
}

/* ── Carte principale ── */
.ec-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.ec-card:hover {
    box-shadow: 0 6px 24px rgba(0, 114, 206, 0.12);
    transform: translateY(-2px);
}

/* ── Bande colorée en haut de carte selon le package ── */
.ec-card-accent {
    height: 4px;
    background: #0072ce;
}

.ec-card-accent.expo {
    background: #4a90e2;
}
.ec-card-accent.akwaba {
    background: #5ca668;
}
.ec-card-accent.signature {
    background: #ffd700;
}
.ec-card-accent.prestige {
    background: #ff8400;
}
.ec-card-accent.premium {
    background: linear-gradient(90deg, #a4ec46ff, #ffd700);
}

/* ── Corps de la carte ── */
.ec-card-body {
    padding: 1rem;
}

@media (min-width: 768px) {
    .ec-card-body {
        padding: 1.5rem;
    }
}

/* ── Layout interne : logo + contenu ── */
.ec-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .ec-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

/* ── Logo ── */
.ec-logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

@media (min-width: 576px) {
    .ec-logo-wrap {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 768px) {
    .ec-logo-wrap {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }
}

.ec-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* ── Contenu principal ── */
.ec-content {
    flex: 1;
    min-width: 0; /* évite le débordement flex */
}

/* ── En-tête : nom + badges ── */
.ec-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ec-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (min-width: 576px) {
    .ec-name {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .ec-name {
        font-size: 1.2rem;
    }
}

/* ── Badge package ── */
.ec-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
}
/* 
.ec-badge.expo {
    background: #e9ecef;
    color: #495057;
}
.ec-badge.akwaba {
    background: #d1fae5;
    color: #065f46;
}
.ec-badge.signature {
    background: #dbeafe;
    color: #1e40af;
}
.ec-badge.prestige {
    background: #ffedd5;
    color: #c2410c;
}
.ec-badge.premium {
    background: linear-gradient(135deg, #ffd700, #f7941e);
    color: #1a1a2e;
} */

/* ── Sous-catégorie ── */
.ec-subcategory {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ec-subcategory i {
    color: #f7941e;
    font-size: 0.7rem;
}

/* ── Grille infos : adresse, description, contacts ── */
.ec-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .ec-info-grid {
        flex-direction: row;
        gap: 1.5rem;
    }
}

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

/* ── Items d'info (adresse, téléphone, email, site) ── */
.ec-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #495057;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.ec-info-item i {
    color: #0072ce;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ec-info-item a {
    color: #0072ce;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.ec-info-item a:hover {
    color: #f7941e;
    text-decoration: underline;
}

.ec-info-label {
    font-weight: 600;
    color: #343a40;
}

/* ── Description ── */
.ec-description {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.6;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ec-description {
        -webkit-line-clamp: 4;
    }
}

/* ── Pied de carte : réseaux sociaux + bouton ── */
.ec-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e9ecef;
}

/* ── Réseaux sociaux ── */
.ec-socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ec-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    flex-shrink: 0;
}

.ec-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.ec-social-btn.facebook {
    background: #1877f2;
}
.ec-social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ec-social-btn.whatsapp {
    background: #25d366;
}
.ec-social-btn.linkedin {
    background: #0077b5;
}
.ec-social-btn.youtube {
    background: #ff0000;
}

/* ── Bouton "Voir la page" ── */
.ec-btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: #0072ce;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    white-space: nowrap;
}

.ec-btn-profile:hover {
    background: #f7941e;
    color: #ffffff;
    transform: translateY(-1px);
}

.ec-btn-profile i {
    font-size: 0.75rem;
}

@media (min-width: 576px) {
    .ec-btn-profile {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}
