/* ==========================================
   LinkedIn Carousel Plugin - Styles
   ========================================== */

.linkedin-carousel-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px;
}

.linkedin-carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.linkedin-carousel-title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.linkedin-carousel-icon {
    width: 32px;
    height: 32px;
    fill: #0A66C2;
}

.linkedin-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.linkedin-carousel-subtitle {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.linkedin-carousel-viewport-wrapper {
    position: relative;
    padding: 0 60px;
    max-width: 1400px; /* Limite la largeur totale */
    margin: 0 auto; /* Centre le carrousel */
}

.linkedin-carousel-viewport {
    overflow: hidden;
    border-radius: 8px;
}

.linkedin-carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
    gap: 0; /* Supprime l'espace entre les slides */
    justify-content: flex-start; /* Aligne à gauche */
}

.linkedin-carousel-slide {
    flex-shrink: 0;
    padding: 0 12px;
    box-sizing: border-box;
    max-width: 380px; /* Limite la largeur des cartes */
}

.linkedin-carousel-card {
    background: white;
    border-radius: 8px; /* Bordures moins arrondies comme LinkedIn */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08); /* Ombre plus subtile type LinkedIn */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none; /* Pas de bordure, juste l'ombre */
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.linkedin-carousel-card:hover {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.12); /* Ombre plus prononcée au hover */
    transform: translateY(-2px); /* Moins de mouvement pour rester sobre */
}

.linkedin-carousel-image-wrapper {
    position: relative;
    padding-top: 100%; /* Ratio 1:1 (carré) pour ressembler à LinkedIn */
    background: #f3f4f6;
    overflow: hidden;
}

.linkedin-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.linkedin-carousel-card:hover .linkedin-carousel-image {
    transform: scale(1.05);
}

.linkedin-carousel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0A66C2;
    color: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.linkedin-carousel-badge svg {
    width: 16px;
    height: 16px;
    fill: white;
    display: block;
}

.linkedin-carousel-content {
    padding: 16px; /* Padding plus compact comme LinkedIn */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.linkedin-carousel-card-title {
    font-size: 1rem; /* Taille plus modeste comme LinkedIn */
    font-weight: 600; /* Moins bold */
    color: rgba(0,0,0,0.9);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Permet 3 lignes au lieu de 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.linkedin-carousel-card:hover .linkedin-carousel-card-title {
    color: #0A66C2;
}

.linkedin-carousel-excerpt {
    color: rgba(0,0,0,0.6); /* Gris plus doux type LinkedIn */
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Plus de lignes visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.linkedin-carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08); /* Bordure plus subtile */
    margin-bottom: 12px;
}

.linkedin-carousel-stats {
    display: flex;
    gap: 12px; /* Gap plus serré */
    font-size: 0.75rem; /* Plus petit */
    color: rgba(0,0,0,0.6);
}

.linkedin-carousel-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.linkedin-carousel-stat svg {
    width: 14px; /* Icons plus petits */
    height: 14px;
}

.linkedin-carousel-date {
    font-size: 0.75rem;
    color: #999;
}

.linkedin-carousel-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0A66C2;
    font-weight: 600;
    font-size: 0.875rem; /* Taille réduite */
    transition: gap 0.2s ease;
    margin: 0;
}

.linkedin-carousel-card:hover .linkedin-carousel-cta {
    gap: 8px;
}

.linkedin-carousel-cta svg {
    width: 14px;
    height: 14px;
}

.linkedin-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.linkedin-carousel-nav-btn:hover:not(:disabled) {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.linkedin-carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.linkedin-carousel-nav-btn:focus {
    outline: 2px solid #0A66C2;
    outline-offset: 2px;
}

.linkedin-carousel-nav-btn.prev {
    left: 0;
}

.linkedin-carousel-nav-btn.next {
    right: 0;
}

.linkedin-carousel-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.linkedin-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.linkedin-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.linkedin-carousel-dot:hover {
    background: #9ca3af;
}

.linkedin-carousel-dot.active {
    width: 32px;
    border-radius: 4px;
    background: #0A66C2;
}

.linkedin-carousel-dot:focus {
    outline: 2px solid #0A66C2;
    outline-offset: 2px;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .linkedin-carousel-viewport-wrapper {
        padding: 0 50px;
    }
    
    .linkedin-carousel-slide {
        max-width: 340px; /* Cartes un peu plus petites sur tablette */
    }
}

@media (max-width: 640px) {
    .linkedin-carousel-viewport-wrapper {
        padding: 0 40px;
    }
    
    .linkedin-carousel-title {
        font-size: 1.5rem;
    }
    
    .linkedin-carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .linkedin-carousel-slide {
        padding: 0 8px;
        max-width: 100%; /* Pleine largeur sur mobile */
    }
    
    .linkedin-carousel-content {
        padding: 16px;
    }
}