
/* Container styling */
#mozaik_result_images, #mozaik_result_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
    justify-content: center;
}

.mozaik_images_row {
    height: 300px; /* Hauteur fixe */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
    margin-bottom: 20px;
    min-width: 200px;
}

.mozaik_images_row:hover, .mozaik_tableaux:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Image styling */
.mozaik_uneimage {
    height: 100%;
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: transform 0.3s ease;
}

/* Hover overlay styling */
.mosaik_hover_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.50);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mozaik_images_row:hover .mosaik_hover_img {
    opacity: 1;
}

/* Text styling inside hover overlay */
.img-text {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.img-text strong {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

/* Buttons styling */
.div-btn {
    margin-top: auto;
    text-align: center;
}

.img-btn {
    padding: 8px;
    margin: 0 5px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.img-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* Checkbox styling */
.mozaik_selectpicture {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.mozaik_integratemicture {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    font-size: 20px;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .mozaik_images_row {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .mozaik_images_row {
        flex: 0 0 calc(100% - 20px);
        height: 350px; /* Légèrement plus petit sur mobile */
    }
}




#div_detail_img,
#div_detail_data {
    text-align: center;
    margin-top: 50px;
}

.detail_img {
    max-width: 800px;
    max-height: 600px;
}

.divtohide{
    display:none;
}



#mozaik_detail_container {
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#mozaik_detail_image {
    flex: 0 0 60%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mozaik_detail_imageclass {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#mozaik_detail_info_side {
    flex: 0 0 40%;
    padding: 30px;
    overflow-y: auto;
}


.mozaik_detail_infogroup {
    margin-bottom: 20px;
}

.mozaik_info_label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.mozaik_info_text {
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


@media (max-width: 768px) {
    #mozaik_detail_container {
        flex-direction: column;
        max-height: 95vh;
    }

    #mozaik_detail_image {
        flex: 0 0 auto;
        max-height: 50vh;
    }

    #mozaik_detail_info_side {
        flex: 1;
    }
}



/* Style de base pour la section voir plus */
#mozaik_voirplus {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
}

/* Version bouton moderne */
#span_mozaik_voirplus {
    display: inline-block;
    padding: 12px 30px;
    background: black;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

#span_mozaik_voirplus:hover {
    background: #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}





#mozaik_result_images:not(.mozaik_list_view) .mozaik_uneimage {
    height: 100%;
    display: block;
}
#mozaik_result_images:not(.mozaik_list_view) .mozaik_integratemicture {
    color:white;
}


#mozaik_result_images.mozaik_list_view .mozaik_images_row {
    width: 500px;
}

#mozaik_result_images.mozaik_list_view .mosaik_hover_img {
    display: none;
}

#mozaik_result_images.mozaik_list_view .mozaik_uneimage {
    flex: 0 0 60%;
    display: flex;
    padding: 10px;
}

#mozaik_result_images.mozaik_list_view .mozaik_detail_infogroup {
    margin-bottom: 10px;
}

#mozaik_result_images.mozaik_list_view .mozaik_uneimage {
    display: flex;
    flex: 0 0 40%;

    max-width: 200px;
    max-height: 280px;
    object-fit: contain;
}

.mozaik_info_container {
    flex: 0 0 60%;
    overflow-y: auto;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
}



#mozaik_selections {
    width: 100%;
    background-color: gray;
    height: 120px;
    position: fixed;
    bottom: 0px;
    z-index: 10;
    padding: 10px;
    text-align: center;
    display: none;
    cursor: pointer;
}

.mozaik_navbar {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.mozaik_multiselect {
    position: relative;
}

.mozaik_menumultiselect {
    padding: 8px 15px;
    margin-right: 30px;
    margin-bottom: 15px;
    
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    min-width: 120px;
    position: relative;
    color: #333;
    font-weight: 500;
}

.mozaik_menumultiselect:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.mozaik_menumultiselect:after {
    content: '▼';
    font-size: 10px;
    margin-left: 75px;
    color: #6c757d;
}

.mozaik_selectwithcheckbox {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}


.mozaik_selectwithcheckbox label {
    display: block;
    padding: 8px 12px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.mozaik_selectwithcheckbox label:hover {
    background-color: #f8f9fa;
}

.mozaik_selectwithcheckbox input[type="checkbox"] {
    margin-right: 8px;
}

/* Styles pour les filtres actifs */
.mozaik_active_filters {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: none;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.filter-tag.type {
    background-color: #e3f2fd;
    color: #1565c0;
}
.filter-tag.rights {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.filter-tag.categories {
    background-color: #fff3e0;
    color: #ef6c00;
}
.filter-tag.parutions {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.filter-tag.keywords {
    background-color: #fce4ec;
    color: #c2185b;
}

.remove-filter {
    margin-left: 8px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 5px;
    font-size: 16px;
    opacity: 0.7;
    color: inherit;
    transition: opacity 0.2s;
}

.remove-filter:hover {
    opacity: 1;
}
















/* Search Input Styles */
#mozaik_search {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px 8px 40px;
    width: 300px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    margin-left: 5px;
}

#mozaik_search:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Header Container Styles */
.header-container {
    background-color: #ffffff;
    padding: 10px 20px;
}

.

/* Button Styles */
input[type="button"] {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="button"]:hover {
    background-color: #0056b3;
}

/* View Mode Icons */
.choix_affichage {
    color: #6c757d;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

.choix_affichage:hover,
.choix_affichage_selected {
    color: #007bff;
}









.mozaik_tableaux_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.mozaik_tableaux {
    border: 1px solid #ddd;
    width: 250px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mozaik_tableaux_images {
    display: grid;
    gap: 10px;
}

/* 1 image */
.mozaik_tableaux_images.single {
    grid-template-columns: 1fr;
}

/* 2 images en hauteur */
.mozaik_tableaux_images.two-vertical {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    height: 300px;
}
.mozaik_tableaux_images.two-vertical img {
    height: 45%;
    width: 100%;
    object-fit: cover;
}

/* 3 images (1 haute à gauche, 2 carrés à droite) */
.mozaik_tableaux_images.three-mixed {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    height: 300px;
}
.mozaik_tableaux_images.three-mixed img:first-child {
    grid-row: 1 / 3;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.mozaik_tableaux_images.three-mixed img:nth-child(2),
.mozaik_tableaux_images.three-mixed img:nth-child(3) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}