/* Styles pour les brèves - Version 3.3 */

.breves-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.breves-line-wrapper {
    display: flex;
    gap: 20px;
    padding-left: 20px;
    position: relative;
    align-items: stretch;
}

.breves-continuous-line {
    width: 2px;
    background-color: #007bff;
    opacity: 0.3;
    flex-shrink: 0;
    /* La hauteur s'adapte automatiquement grâce à align-items: stretch */
    align-self: stretch;
}

.breves-items-wrapper {
    flex: 1;
    min-width: 0;
}

/* Conteneur avec scroll - hauteur fixe avec min-height */
.breves-scroll-container {
    position: relative;
    overflow-y: scroll !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breves-scroll-container::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

/* Conteneur sans scroll - avec min-height uniquement */
.breves-no-scroll {
    overflow: visible;
}

.breves-inner-container {
    padding: 2px 0;
}

.breve-item {
    padding: 15px;
    margin-bottom: 20px;
    border-top: 4px solid #007bff;
    border-left: none;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    position: relative;
}

.breve-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.breve-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.breve-title a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.breve-title a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.breve-rich-summary {
    font-weight: bold;
    font-size: 0.95em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #007bff;
    line-height: 1.6;
}

.breve-featured-image {
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.breve-uniform-image {
    width: 100%;
    height: 150px !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.breve-gallery {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.breve-gallery-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #e0e7ef;
    border-radius: 0 !important;
}

.breve-excerpt {
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.breve-editor-info {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 500;
}

.breve-share-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.share-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
    color: white;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.linkedin {
    background: #0a66c2;
}

.share-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Styles pour la page single */
.breves-single-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.breves-single-rich-summary {
    font-weight: bold;
    font-size: 1.2em;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.breves-single-rich-summary span {
    font-size: 0.8em;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.breves-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 0.9em;
    color: #555;
}

.breves-single-editor {
    font-weight: 500;
}

.breves-single-date {
    margin-left: auto;
    color: #888;
}

.breves-single-share {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breves-single-share span {
    font-weight: 500;
    font-size: 0.9em;
    color: #666;
    margin-right: 10px;
}

.breves-single-share .share-button {
    width: 36px;
    height: 36px;
    margin: 0 5px;
}

.breves-single-share .share-button svg {
    width: 16px;
    height: 16px;
}

/* ======================================== */
/* RESPONSIVE - MOBILE */
/* ======================================== */
@media (max-width: 768px) {
    .breve-item {
        padding: 12px;
    }
    
    .breve-uniform-image {
        height: 120px !important;
    }
    
    .breve-gallery-image {
        width: 50px;
        height: 50px;
    }
    
    .share-button {
        width: 32px;
        height: 32px;
    }
    
    .share-button svg {
        width: 14px;
        height: 14px;
    }
    
    .breves-line-wrapper {
        padding-left: 10px;
        gap: 10px;
    }
    
    .breves-single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breves-single-date {
        margin-left: 0;
    }
    
    .breves-single-share {
        justify-content: center;
    }
    
    /* Suppression de la hauteur sur mobile */
    .breves-scroll-container.breves-desktop-height,
    .breves-no-scroll.breves-desktop-height {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    .breves-scroll-container.breves-desktop-height {
        overflow-y: visible !important;
        scrollbar-width: auto !important;
        -ms-overflow-style: auto !important;
    }
    
    .breves-scroll-container.breves-desktop-height::-webkit-scrollbar {
        display: block !important;
        width: auto !important;
        background: auto !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breve-item {
    animation: fadeInUp 0.4s ease forwards;
}

.breve-item:nth-child(2) {
    animation-delay: 0.1s;
}

.breve-item:nth-child(3) {
    animation-delay: 0.2s;
}

.breve-item:nth-child(4) {
    animation-delay: 0.3s;
}

.breve-item:nth-child(5) {
    animation-delay: 0.4s;
}