@media (max-width: 768px) {
  content {
    max-width: calc(100% - 280px);
  }
}

body {
  height: 100vh
}

main {
  height: calc(100vh - 4.1rem);
}

sidebar {
  width: 280px;
  outline-offset: -4px;
}

content {
  max-width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100vh;
    width: 100vw;
}

:root {
    --size-logo: 60px;
    --client-font: Quicksand, sans-serif;
    --z-page-foreground: 2;
    --z-arborescence-legacy: 800;
    --z-lod-message: 810;
    --z-scan-overlay: 820;
    --z-hover-zone: 830;
    --z-model-fullscreen: 850;
    --z-note-layer: 880; /* layer de la note */
    --z-note-toolbar: 890; /* toolbar de la note, au dessus de la note elle même */
    --z-zone-title: 895;
    --z-edit-overlay: 897; /* overlay de la zone en cours de modification */
    --z-action-controls: 900; /* bouton home/back en bas à gauche de la root */
    --z-root-dropdown: 1000; /* dropdown de la root */
    --z-wheel-dropdown: 1000;    
    /* dropdown-menu bootstrap : 1000 */    
}

:root {
   /* --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #0dcaf0;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--client-font)
}

#logo-header {
    height: var(--size-logo);
}

#root {
    height: calc(100vh - calc(var(--size-logo)));
}

.max-size{
    max-height: calc(100vh - calc(var(--size-logo)));
    max-width: 100vw;
}

.lod-message {
    position: absolute;
    margin: auto;
    animation: 1s messageSlide 10s;
    height: 50px;
    margin-top: 60px;
    width: 50vw;
    z-index: var(--z-lod-message);
}
@keyframes messageSlide {
    0% {}

    100% {
        top: -24px;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.text-oneline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bob {    
    max-width: 15%; 
    max-height: 15%;   
    width: auto;
    height: auto;

    opacity: 0;
    animation: fadeIn 0.5s ease forwards;

    transition: transform 0.25s ease, opacity 0.25s ease;
}


.card {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), 
              box-shadow 0.25s ease;
}

.card:hover {
  /*transform: scale(1.02);*/
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1rem 3px;
}

.transp {
    background: url("../img/invisible.png");
    box-shadow: 3px 3px 0 var(--success) inset, -3px -3px 0 var(--success) inset !important;
}

.form-group {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.form-group input {
    /*border-bottom: 2px var(--secondary) solid;*/
}

/*********************** INPUTS *************************/

.form-control{ 

}

a {
    color: var(--bs-gray-dark);
}

a:hover {
    color: var(--bs-gray);
}

.root_selected {
    /*outline: 3px solid var(--bs-success);*/
    outline-offset: -4px;
    /*box-shadow: 2px 2px 0 var(--bs-success) inset, -2px -2px 0 var(--bs-success) inset !important;*/
    /* height: auto !important; */
    outline: 0px solid var(--bs-success);
    box-shadow: 2px 2px 0 var(--bs-success) inset, -2px -2px 0 var(--bs-success) inset !important;
  }
  
.root_selected::after {
    content: "";
    outline: 0px solid var(--bs-success);
    outline-offset: -4px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*box-shadow: 2px 2px 0 var(--bs-success) inset, -2px -2px 0 var(--bs-success) inset !important;*/
    pointer-events:none;
}

.inactive{
    background-color: transparent;
    border:transparent;
    border-bottom: 0px !important;
    pointer-events: none;
}

.btnDelete{
    color: red;
    text-decoration: none;
}

.absoluteCenter{
    position:absolute;
    left:50%; 
    top:50%; 
    transform:translate(-50%, -50%);
}

.zoneTitle {
    position:absolute;
    z-index: var(--z-zone-title);
    background-color: var(--bs-dark);
    color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.25rem;
    height: 2rem;
    font-size: 1rem;
    padding-left: 5px;
    padding-right: 5px;
}


/* Styles navbar-brand (padding/taille homogène des liens breadcrumb) */
.navbar-light,
.navbar-brand {
    font-size: 1em;
    padding: 0 5px 0 5px !important;
}

lod-hierarchy a.navbar-brand {
    position: relative;
    display: inline-block;
    overflow: hidden;
    z-index: 1;

    transition: color 0.25s ease;
}

lod-hierarchy a.navbar-brand::before {
    content: "";
    position: absolute;
    inset: 0;

    background-color: var(--bs-primary);
    border-radius: 3px;

    transform: scaleY(0);
    transform-origin: bottom;

    transition: transform 0.25s ease;

    z-index: -1;
}

lod-hierarchy a.navbar-brand:hover {
    color: black !important;
}

lod-hierarchy a.navbar-brand:hover::before {
    transform: scaleY(1);
}

/* Bouton rond : aspect 1:1, hover scale + ombre */
.btn_round {
    border-radius: 50%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none !important;
    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.25s ease;
}

.btn_round:hover {
    transform: scale(1.08) translateY(0px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Bouton avec animation scale/ombre au hover (sans forcer le ratio 1:1) */
.btn_scale {
    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.25s ease;
}

.btn_scale:hover {
    transform: scale(1.08) translateY(0px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Barre de boutons de navigation (en overlay sur la root, coin inférieur gauche) */
.buttons_nav {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 10px;
}

/**************************** TEMPORAIRE POUR DEMO MULTIBASE ************************/

body {
    font-family: Quicksand, sans-serif!important;
}

.btn-primary:hover {
    drop-shadow: 0 5px 10px rgba(0,0,0,0.2)!important;
}

.card-footer{
    align-items: right;
    text-align: right;
}

.card-footer a {
    text-align: right;    
    text-decoration: none;
    font-size: 0.9em!important;
}

.add_card {
    display: flex;
    opacity: 0.5!important;
    background-color: #F8F9FA;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.add_card:hover {
    opacity: 1!important;
}
.btn-outline-secondary,
.btn-outline-primary {
    color:#1a1a1a !important;
}
.btn-outline-secondary:hover {
}

.btn-outline-secondary:disabled, 
.btn-outline-primary:disabled {
    opacity:0.3!important;
}

.card-header {
    background-color: #CDDDD5!important;
    overflow: hidden !important;
}

.titre {
    font-family: Quicksand, sans-serif!important;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bs-gray-dark);
}

#entity_actions_header {
    padding-right: 0.5rem!important;
}

.list-group-item {
    padding:8px 8px 8px 8px!important;
    font-size: 0.9rem;
    font-weight: 400;  
}

.lod-tools-panel .btn,
.lod-toolbar-panel .btn {
    min-width: 40px!important;
    height: 40px!important;
    font-size: 1em!important;
    align-items: center!important;
    justify-content: center!important;
    color: #1a1a1a!important;
}

.list-group-item.active {
    color:#1a1a1a!important;
}

.badge {
    color: #555!important;
}

.navbar {
    padding: 10px 0 10px 0 !important;    
}

.card-title {
    margin-left: 0.8em;
}

.card-body{
    border-top: 1px solid #CDDDD5!important;
    background-color: #F8F9FA!important;
}

.card-img-top {

}

.projets {
 background-color: #F8F9FA!important;
}

.sidebar{
    padding: 1em 0 1em 1em!important;
}

a::before {
    margin-right: 0.5em;
}
/**************************** draw tool *******************/

.file-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #fce200;
  color: var(--bs-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.file-btn:hover {
  background: #0b5ed7;
}


#color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 4px solid white;
    outline: 1px solid lightgray;
    outline-offset: 0;
    padding: 0;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
}

#color:hover {
    transform: scale(1);
}

.tool_group{
    display: flex;
    gap: 3px;
}

.draw-tools {
    display: flex;
    gap: 10px;
}

.buttons_tools {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
        
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.draw-tools .btn {
    box-shadow: none;
}

.draw-tools .btn:not(#delete).disabled,
.draw-tools .btn:not(#delete):disabled {
    opacity: 1;    
    pointer-events: none;
}

.tool_group .btn:not(#delete).disabled,
.tool_group .btn:not(#delete):disabled {
    background-color: var(--bs-secondary);
    /*outline: 2px solid var(--bs-secondary);*/
    outline-offset: 2px;
}

.draw-tools .btn:not(#delete):not(.disabled):not(:disabled) {     
    opacity: 0.8;
    background-color: transparent;
}   

.tool_group .btn:not(#delete):not(.disabled):not(:disabled) { 
    background-color: transparent;
    color: var(--bs-secondary);
    opacity: 0.8;
}

.draw-tools .btn:not(#delete):hover {
    opacity: 1 !important;
}

/* Pictos SVG pour les boutons home/back de la barre de navigation */
.buttons_nav #home,
.buttons_nav #back {
    width: 50px;
    height: 50px;
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.buttons_nav #home {
    background-image: url('/static/imgs/picto/btn_home.svg');
}

.buttons_nav #back {
    background-image: url('/static/imgs/picto/btn_back.svg');
}

/* Conteneur flex pour grouper des boutons avec un gap */
.button_container {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.lod-wheel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-wheel-dropdown);
    background: rgba(0, 0, 0, 0.5);
}

.lod-wheel-center {
    position: absolute;
    z-index: calc(var(--z-wheel-dropdown) + 1);
}

.lod-wheel-hub-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 0px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--bs-danger);
    z-index: calc(var(--z-wheel-dropdown) + 2);
    transform: translate(-50%, -50%);
    transition: transform 0.15s, box-shadow 0.15s;
}


.lod-wheel-hub-close:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    background: var(--bs-danger);
}

.lod-wheel-item {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, scale(1);
    animation: lod-wheel-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    z-index: calc(var(--z-wheel-dropdown) + 1);
    color: var(--bs-gray-dark);
    overflow: visible;
}


.lod-wheel-item-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

@keyframes lod-wheel-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.lod-wheel-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--bs-primary);
    transform: translate(-50%, -50%) scale(1.15);
    z-index: calc(var(--z-wheel-dropdown) + 3);
}

.lod-wheel-label {
    position: absolute;
    bottom: -28px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 6px;
    border-radius: 4px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 600;
}

.lod-wheel-folder {    
    /*background: rgba(255, 248, 225, 0.95);*/
}

.lod-wheel-folder:hover {
    border-color: var(--bs-warning);
}

.lod-wheel-folder-popup {
    position: fixed;
    z-index: calc(var(--z-wheel-dropdown) + 5);
    background: rgba(255, 255, 255, 0.97);
    border-radius: 5px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    min-width: 250px;
    max-width: 400px;
    overflow: hidden;
    transform: translateX(-50%);
    animation: lod-wheel-pop 0.2s ease;
}

.lod-wheel-folder-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.85rem;
}

.lod-wheel-folder-header span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lod-wheel-folder-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bs-gray);
    font-size: 0.9rem;
}

.lod-wheel-folder-close:hover {
    color: var(--bs-gray-dark);
}

.lod-wheel-folder-body {
    padding: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
}

.lod-wheel-folder-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--bs-gray-dark);
    transition: background 0.15s;
    text-decoration: none;
}

.lod-wheel-folder-item:hover {
    background: var(--bs-light);
}

.lod-wheel-folder-item span {
    width: 100%;
    /*overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/
}

.dropdown-item:active{
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
}

.upload-zone {                                                                                                                                                                                                                                                               
    border: 1px dashed var(--bs-secondary);                                                                                                                                                                                                                                        
    border-radius: 8px;                                                                                                                                                                                                                                                      
    padding: 0.75rem;                                                                                                                                                                                                                                                        
    text-align: center;
    cursor: pointer;                                                                                                                                                                                                                                                         
    transition: border-color 0.2s;                                                                                                                                                                                                                                         
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);                                                                                                                                                                                                                                            
    background: rgba(13, 110, 253, 0.05);
}


/*************************** Search bar (TomSelect) ***********************/

lod-search-bar {
    margin-right: -40px;
    font-size: 0.8em;
    font-style: italic;
    min-width: 300px;
    display: block;
    width: 100%;
    position: relative;
}

#search-ts-control {
    font-size: 1em;
    font-style: italic;    
}

/* input natif caché (TomSelect le remplace) */
lod-search-bar input[type="search"] {
    display: none !important;
}

lod-search-bar .ts-dropdown .option {
    padding: 0;
}


lod-search-bar .ts-wrapper {
    width: 100%;
    height: 100%;
}

lod-search-bar .ts-control {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 50px !important;
    background: white;
    font-style: italic;
    font-size: 1em;
    box-shadow: none !important;
    box-sizing: border-box;
}

lod-search-bar .ts-control input {
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1em;
    font-style: italic;
    height: 100%;
}

lod-search-bar .ts-wrapper.focus .ts-control {
    border-color: var(--bs-primary) !important;
    outline: var(--bs-primary) solid 2px !important;
}

lod-search-bar .ts-dropdown {
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1.1em;
    font-style: normal;
    background: white;
    z-index: 1000;
    height: auto;
    width: auto;
    line-height: 21px;
}

lod-search-bar .ts-dropdown.single {
    width: calc(18rem * 2 + 20px) !important;
    max-height: 80vh;
    height: auto;
    overflow-y: auto;
    left: auto !important;
    right: 0 !important;
}

lod-search-bar .ts-dropdown.single:has(.no-results) {
    width: fit-content !important;
}

lod-search-bar .ts-dropdown.single:has(.option:last-child:nth-child(1)) {
    width: fit-content !important;    
}

lod-search-bar .ts-dropdown .ts-dropdown-content {
    overflow-y: auto;
    width: auto;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-wrap: wrap;
}

.no-results{
    padding: 20px 0px 0px 0px!important;
}

.no-results p {
    text-align: center;
    padding: 25px 25px 20   px 25px!important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    font-family:var(--client-font);
    font-weight: bold;    
}

.bob_result {
    max-width: 100%;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

.btn_search {
    transform: scale(0.8);
}

input:focus-visible {
    outline: #fce200 solid 2px!important;    
   
}

input:focus {
    outline: #fce200 solid 2px!important;    
}


.nav-link {
    padding: 0.5em 1em 0.5em 1em!important;
    display: block;  
    background-color:var(--bs-secondary);
    border-radius: 5px;
    color:white;
    margin-left: 0.25rem; 

    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/***********************************
Profil image + preview image 
***********************************/

.profile_pic 
{
    border: 4px solid white;
    outline: 1px solid lightgray;  
    outline-offset: 4;
    width: 40px;
    height: 40px;
}

#avatar_preview{
    border-radius:50%!important;
    border: 10px solid white;
    outline: 1px solid lightgray;  
    outline-offset: 4;
}

form[name="formProfile"] lod-image-input #preview_img {
    border-radius:50%!important;
    border: 8px solid white;
    outline: 1px solid lightgray;  
    outline-offset: 4;
}


/***********************************
Gestion des groupes 
***********************************/
 

.tuile_access {
    display: flex;
    flex-direction: row!important;
    justify-content: space-between;    
    align-items: center;
    flex-wrap: nowrap;
    height: 50px;
    width: 600px;
    min-width: 600px;
    border: solid 1px #bbb;    
    border-radius: 5px;
    object-fit:cover;
}


.tuile_access img {
    /*width: calc(120px - 0.4em); height: calc(120px - 0.4em); margin-left: 5px; object-fit: contain;*/
    width: 50px;
    height: 40px;
    object-fit: contain;
}

span.truncate {
  display: inline-block;     /* ou block */  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-container {
  position: relative;
}

.hover-image {
  position: absolute;
  
  left: 0;
  width: 300px!important;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;

  opacity: 0;
  transition: opacity 0.2s ease;

  pointer-events: none;
  background-color: white;
}

.hover-container:hover .hover-image {
  opacity: 1;
}

#arrow {
    display: inline-block;
    color: var(--primary);
    font-size: 1.5em;
    color: #fce200;
}

/**************************************
Modals
****************************************/

.modal {
    background-color: #00000080;
    height: 100%;
    justify-content: center;
    align-items: center;   
}

.modal-dialog {
    display: flex;
    height: 100%;
    justify-content: center;
    align-content: center;
}

.modal-header{
    width: 100%;
}

.modal-header .btn-close{
    margin:-40px -23px 0 0;
}

.modal.show {
    animation: modalBackdropAppear 0.3s ease forwards;
}

@keyframes modalBackdropAppear {
    from {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    to {
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}
.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: auto;
    padding:10px;
}

.modal.show .modal-content {
    animation: modalAppear 0.35s cubic-bezier(.16,1,.3,1);
}

@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.custom-table {
    table-layout: fixed;
    width: 100%;
}

.custom-table td form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}


#upload-result {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    align-items: center;

    padding: 4px;
}
#upload-result > div {
    flex: 0 0 auto;
}

lod-slideshow {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* ROOT */
lod-slideshow .slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* MEDIA CENTER */
lod-slideshow .slideshow-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;

    overflow: hidden;
}

/* MEDIA CONTENT */
lod-slideshow .slide-media {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================
   NAV STRIP (ancien PoiExplorer)
========================= */

lod-slideshow .slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;
    border-radius: 20px;

    backdrop-filter: blur(6px);

    max-width: 85vw;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

lod-slideshow .slideshow-dots::-webkit-scrollbar {
    height: 6px;
}

lod-slideshow .slideshow-dots::-webkit-scrollbar-track {
    background: transparent;
}

lod-slideshow .slideshow-dots::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}

lod-slideshow .slideshow-dots::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
}

/* ITEM (comme poi-strip-item) */
lod-slideshow .slide-dot {
    position: relative;

    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);

    transition: all 0.2s ease;

    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* IMAGE THUMB */
lod-slideshow .slide-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LABEL (comme poi-strip-label) */
lod-slideshow .slide-dot::after {
    content: attr(title);
    position: absolute;

    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 0.55rem;
    white-space: nowrap;

    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.6);

    padding: 1px 5px;
    border-radius: 3px;

    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;

    pointer-events: none;
}

/* HOVER */
lod-slideshow .slide-dot:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* ACTIVE (IMPORTANT comme ancien system) */
lod-slideshow .slide-dot.active {
    width: 56px;
    height: 56px;
    min-width: 56px;

    border-color: var(--bs-primary);

    color: #000;

    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ICON fallback */
lod-slideshow .slide-dot-icon {
    font-size: 18px;
    opacity: 0.8;
}

/* =========================
   ANIMATION (ancien feel)
========================= */
lod-slideshow .slide-media-wrap {
    animation: slideFade 0.25s ease;

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* HEADER OVERLAY */
lod-slideshow .slide-media-wrap > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: rgba(255,255,255,0.92);
    font-size: 1em;
    z-index: 5;
    pointer-events: none;
    background-color: rgba(0,0,0,0.35);
}

/* TOUT LE CONTENU MEDIA PREND 100% */
lod-slideshow .slide-media-wrap > *:not(:first-child) {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
}

/* MEDIA */
lod-slideshow .slide-media,
lod-slideshow video,
lod-slideshow iframe,
lod-slideshow img,
lod-slideshow lod-image360,
lod-slideshow lod-video360,
lod-slideshow lod-video,
lod-slideshow lod-model,
lod-slideshow lod-url,
lod-slideshow lod-docx {
    width: 100%;
    height: 100%;
    display: block;
}
/* =========================
   VIDEO FIX (important UX)
========================= */

/* NAVIGATION PREV / NEXT */

lod-slideshow .slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 54px;
    height: 54px;
    line-height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,0.9);
    font-size: 2rem;

    cursor: pointer;

    z-index: 20;

    transition:
        background 0.25s ease,
        transform 0.2s ease,
        opacity 0.2s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

    user-select: none;
}

/* LEFT */
lod-slideshow .slide-nav-prev {
    left: 18px;
}

/* RIGHT */
lod-slideshow .slide-nav-next {
    right: 18px;
}

/* HOVER */
lod-slideshow .slide-nav:hover {
    background: rgba(0,0,0,0.35); /* reste sombre */
    border-color: rgba(255,255,255,0.35);

    transform: translateY(-50%) scale(1.06);

    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* ACTIVE */
lod-slideshow .slide-nav:active {
    transform: translateY(-50%) scale(0.96);
}

lod-slideshow video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

/* Conservé depuis l'ancien specific.css de pointcloud-standard : classes encore utilisées
   (catch/404, catch/500, project/all, group/group_all, forms/user/login, forms/user/register)
   et absentes du fichier de référence base_connexion_2026. */
.color-hover{
  color:#8A8787
}
.color-hover:hover {
  color:#545050
}

.zoom-hover {
  transition: transform .5s ease;
  transform: scale(1.0);
}
.zoom-hover:hover {
  transform: scale(1.2);
}


lod-viewer-entity {
    position: absolute;
    /* sous <lod-viewer-header>, meme hauteur de bandeau que ViewerDetail.js/ViewerTools.js */
    top: 48px;
    left: 0;
    z-index: 20;
    display: block;
    width: 300px;
    height: calc(100vh - 48px);
    background: transparent;
    pointer-events: none;
}
lod-viewer-entity .lod-drawer-backdrop {
    display: none;
}
@media (max-width: 768px) {
    lod-viewer-entity {
        width: 85vw;
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    lod-viewer-entity.lod-drawer-open {
        transform: translateX(0);
    }
    lod-viewer-entity .lod-entity-panel {
        height: 100%;
        border-radius: 0;
        pointer-events: auto;
    }
    lod-viewer-entity.lod-drawer-open .lod-drawer-backdrop {
        display: block;
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        pointer-events: auto;
    }
}
lod-viewer-entity .lod-entity-panel {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
lod-viewer-entity .lod-entity-list {
    overflow-y: auto;
}
lod-viewer-entity .list-group-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    font-size: 0.8rem;
}
lod-viewer-entity .lod-row-btn {
    flex: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    color: #6c757d;
    border-radius: 3px;
}
lod-viewer-entity .lod-row-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}
lod-viewer-entity .lod-entity-empty {
    padding: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}
lod-viewer-entity .lod-entity-unsaved {
    background: color-mix(in srgb, var(--bs-warning, #ffc107) 20%, transparent);
}
lod-viewer-entity .lod-node-row {
    cursor: default;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 8px;
    font-size: 0.75rem;
    color: #495057;
}
lod-viewer-entity .lod-node-toggle {
    flex: none;
    width: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
/* chargement cote client (fetch/parse d'une entite deja convertie, sans
    pourcentage connu) : bande diagonale animee, distincte du degrade plein
    utilise pour une conversion en cours (qui a un vrai pourcentage). */
@keyframes lod-entity-loading-stripes {
    from { background-position: 0 0; }
    to { background-position: 28px 0; }
}
lod-viewer-entity .lod-entity-loading {
    background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--bs-primary) 35%, transparent) 0, color-mix(in srgb, var(--bs-primary) 35%, transparent) 7px, transparent 7px, transparent 14px);
    animation: lod-entity-loading-stripes 1s linear infinite;
}

lod-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: block;
}
lod-viewer-header .lod-header-panel {
    border-radius: 0;
    border-width: 0 0 1px 0;
}
lod-viewer-header .lod-header-name {
    max-width: 40vw;
}
lod-viewer-header .dropdown-menu.show {
    display: block;
}
lod-viewer-header #user_avatar_btn img {
    object-fit: cover;
}


lod-viewer-detail {
    position: absolute;
    /* sous <lod-viewer-header>, meme hauteur de bandeau que ViewerEntity.js/ViewerTools.js */
    top: 48px;
    height: calc(100vh - 48px);
    overflow:hidden;
    right: 0px;
    z-index: 20;
    display: block;
    width: 310px;
    /* le tag lui-meme couvre toute la hauteur (100vh) pour positionner la
        carte, mais son propre fond est transparent - sans ca, cette zone
        invisible intercepte les clics destines au canvas 3D derriere elle. */
    pointer-events: none;
}
lod-viewer-detail .lod-detail-panel {
    pointer-events: auto;
}
@media (max-width: 768px) {
    lod-viewer-detail {
        display: none;
    }
}
lod-viewer-detail .lod-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.85rem;
}
lod-viewer-detail .lod-detail-row .label {
    color: #1a1a1a;
}
lod-viewer-detail .lod-detail-row .value {
    text-align: right;
}
lod-viewer-detail .lod-detail-row-name {
    justify-content: flex-start;
}
lod-viewer-detail .lod-detail-row-name .value {
    flex: 1;
    min-width: 0;
}
lod-viewer-detail .lod-vector-group {
    padding: 4px 0;
}
lod-viewer-detail .lod-vector-title {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}
lod-viewer-detail .lod-vector-inputs {
    display: flex;
    gap: 6px;
}
lod-viewer-detail .lod-axis-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}
lod-viewer-detail .lod-axis-label {
    font-weight: 700;
    font-size: 0.75rem;
    flex: none;
}
lod-viewer-detail .lod-axis-input input {
    width: 100%;
    min-width: 0;
    font-size: 0.78rem;
    padding: 2px 4px;
}
lod-viewer-detail .lod-row-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}
lod-viewer-detail .lod-row-btn:hover {
    color: inherit;
}

/* CSS portee telle quelle de ../base_documentaire_2024 (static/styles/specific.css, classes
   .lod-wheel-*) et de sa propre reprise de ../viewer_video_dashboard (PoiExplorer, classes
   .slide-*/.slideshow-*) - memes noms de classes, memes valeurs, pour un rendu identique aux
   autres projets HELODEE. */
lod-pin-files-viewer {
    display: contents;
}
lod-pin-files-viewer .pin-files-wheel-overlay,
lod-pin-files-viewer .pin-files-carousel-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
}
lod-pin-files-viewer .pin-files-wheel-overlay { background: rgba(0, 0, 0, 0.5); }
lod-pin-files-viewer .pin-files-carousel-overlay { background: rgba(0, 0, 0, 0.85); }

lod-pin-files-viewer .lod-wheel-center {
    position: absolute;
    z-index: 121;
}
lod-pin-files-viewer .lod-wheel-hub-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 0px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--bs-danger);
    z-index: 122;
    transform: translate(-50%, -50%);
    transition: transform 0.15s, box-shadow 0.15s;
}
lod-pin-files-viewer .lod-wheel-hub-close:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    background: var(--bs-danger);
}
lod-pin-files-viewer .lod-wheel-item {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    animation: lod-wheel-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    z-index: 121;
    color: var(--bs-gray-dark);
    overflow: visible;
}
@keyframes lod-wheel-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
lod-pin-files-viewer .lod-wheel-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--bs-primary);
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 123;
}
lod-pin-files-viewer .lod-wheel-label {
    position: absolute;
    bottom: -28px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 6px;
    border-radius: 4px;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 600;
}

lod-pin-files-viewer .slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
lod-pin-files-viewer .slideshow-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
lod-pin-files-viewer .slide-media {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
lod-pin-files-viewer .pin-files-carousel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 122;
    display: flex;
    align-items: center;
    justify-content: center;
}
lod-pin-files-viewer .pin-files-carousel-close:hover { background: rgba(255, 255, 255, 0.3); }

lod-pin-files-viewer .slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    line-height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    cursor: pointer;
    z-index: 121;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}
lod-pin-files-viewer .slide-nav-prev { left: 18px; }
lod-pin-files-viewer .slide-nav-next { right: 18px; }
lod-pin-files-viewer .slide-nav:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
lod-pin-files-viewer .slide-nav:active { transform: translateY(-50%) scale(0.96); }

lod-pin-files-viewer .slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    max-width: 85vw;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    z-index: 121;
}
lod-pin-files-viewer .slide-dot {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}
lod-pin-files-viewer .slide-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
lod-pin-files-viewer .slide-dot-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 5px;
    border-radius: 3px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
lod-pin-files-viewer .slide-dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}
lod-pin-files-viewer .slide-dot.active {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-color: var(--bs-primary);
    color: #000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}


lod-project-settings {
    display: block;
}
lod-project-settings .lod-settings-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
lod-project-settings .lod-settings-modal {
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
lod-project-settings .lod-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 0.85rem;
}
lod-project-settings .lod-detail-row .label {
    color: #6c757d;
}
lod-project-settings .lod-detail-row .value {
    text-align: right;
}
lod-project-settings #settings_thumbnail {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    background: #e9e9e9;
}