/* ========================================
   SKELETON LOADER
   ======================================== */
.page-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    padding-bottom: 80px;
}

.skeleton-header {
    height: 60px;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-search {
    height: 50px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-company-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skeleton-logo {
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 24px;
    background: #e0e0e0;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    width: 70%;
    position: relative;
    overflow: hidden;
}

.skeleton-badge {
    height: 20px;
    background: #e0e0e0;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    width: 30%;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    height: 16px;
    background: #e0e0e0;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.skeleton-button {
    height: 36px;
    background: #e0e0e0;
    border-radius: 8px;
    width: 120px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Animation Shimmer */
.skeleton-header::after,
.skeleton-search::after,
.skeleton-company-card::after,
.skeleton-logo::after,
.skeleton-title::after,
.skeleton-badge::after,
.skeleton-text::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   PAGE STYLES
   ======================================== */
:root {
    --deep-green: #054A29;
    --red: #A65A53;
    --main-purple: #B491CA;
    --light-purple: #F8EFEF;
    --white: #FFFFFF;
    --dark-blue: #080759;
    --light-blue: #53A2EB;
    --red-light: #F8EFEF;
    --red-dark: #BD3112;
}

.bg-main-purple {
    background-color: var(--main-purple) !important;
}

.bg-light-purple {
    background-color: var(--light-purple) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.btn-main-purple {
    background-color: var(--main-purple);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-main-purple:hover {
    background-color: #9a7bb5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(154, 123, 181, 0.3);
}

.btn-outline-purple {
    border: 1px solid var(--main-purple);
    color: var(--main-purple);
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background-color: var(--main-purple);
    color: white;
}

.btn-search {
    background: transparent;
    border: none;
    right: 10px;
}

.object-fit-contain {
    object-fit: contain;
    object-position: center;
}

.card {
    border-radius: 16px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.empty-state-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.animated-illustration {
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

/* Styles pour l'autocomplétion */
.autocomplete-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 50px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: var(--light-purple);
}

.cursor-pointer {
    cursor: pointer;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .search-bar-wrapper {
        padding: 0 15px;
    }

    #sponsorsGrid .col-6 {
        padding: 0.5rem;
    }

    #sponsorsGrid .card {
        margin-bottom: 1rem;
    }

    .short-description {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-main-purple {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .card-body .row>div:first-child {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .border-2.border-light-purple.rounded-lg {
        height: 80px !important;
        width: 80px !important;
    }

    .text-center.text-md-start>.btn {
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .text-justify {
        margin-bottom: 0.5rem !important;
    }

    .autocomplete-suggestions {
        width: calc(100% - 30px);
        left: 15px;
    }
}

.position-absolute.bottom-0.start-50.translate-middle-x {
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

.short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sponsorsGrid .card img {
    max-height: 120px;
    object-fit: contain;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.02);
}

.badge.bg-main-purple {
    background-color: var(--main-purple) !important;
    color: white !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-gray-500 {
    background-color: #6c757d !important;
    color: white !important;
}

.transition-all {
    transition: all 0.3s ease;
}
