/* ---- Sidebar général ---- */
.sidebar-content {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sidebar-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3rem;
}

/* ---- Galerie Sidebar ---- */
.sidebar-gallery {
    max-width: 100%;
    margin: 0 auto;
}

.sidebar-gallery .glide__slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.sidebar-gallery .glide__slide img:hover {
    transform: scale(1.02);
}

/* Navigation Glide (flèches) */
.sidebar-gallery .glide__arrow {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.sidebar-gallery .glide__arrow:hover {
    background: rgba(0,0,0,0.8);
}

/* Bullets Glide */
.sidebar-gallery .glide__bullet {
    background: #bbb;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    transition: background 0.3s ease;
}

.sidebar-gallery .glide__bullet--active {
    background: #333;
}

/* ---- Social Sidebar ---- */
.sidebar-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px; /* espace entre les icônes */
    margin: 15px 0;
}

.sidebar-social a {
    display: inline-block;
    text-align: center;
}

.sidebar-social a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease-in-out;
}

.sidebar-social a img:hover {
    transform: scale(1.2);
}

/* ---- Translate Sidebar ---- */
.sidebar-translate {
    text-align: center;
    margin: 15px 0;
}

.translate-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.translate-flags img {
    width: 28px;
    height: auto;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.translate-flags img:hover {
    transform: scale(1.15);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sidebar-gallery .glide__slide img {
        max-height: 200px;
    }
    .sidebar-social a {
        flex: 1 1 45%;  /* 2 icônes par ligne sur mobile */
    }
    .translate-flags {
        gap: 6px;
    }
}
.scroll-box {
    border: 1px solid #ccc;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.5;
    font-size: 0.95em;
}

/* Optionnel : personnalisation de la barre de défilement (Chrome / Edge / Safari) */
.scroll-box::-webkit-scrollbar {
    width: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}
