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: 25%; 
    max-height: 25%;   
    width: auto;
    height: auto;

    opacity: 0;
    animation: fadeIn 1s 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);
}

lod-root.card > .card-body {
    overflow: hidden;
}

lod-root.card .card-img-top {
    transition: transform 0.25s ease;
    transform-origin: center;
}

lod-root.card:hover .card-img-top {
    transform: scale(1.05);
}

.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-primary);
    box-shadow: 2px 2px 0 var(--bs-primary) inset, -2px -2px 0 var(--bs-primary) 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;
}

.btn-outline-secondary:hover {    
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    border: 1px solid var(--bs-primary) !important;
}



/**************************** 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/img/picto/btn_home.svg');
}

.buttons_nav #back {
    background-image: url('/static/img/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: 230px;
    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: 60%;
    margin: auto;
    display:flex;
}


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

.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;
}

.modal-body {
    width: 100%;
}

@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;
    max-width: 90vw;
}

.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;
}

.card-img-top-tooltip {
    display: block;
    width: 100%;
    height: calc(200px * 9/16);
    object-fit:contain;
    background-color: var(--bs-light);
    object-position: center center;
    padding:5px;
}

.header-tooltip .tooltip-inner {        
    border-radius: 2px;
    width: 250px;    
    padding: 1px;
    margin: 0px;    
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-tooltip .tooltip-inner {
    background-color: #DDD;
}

.header-tooltip .tooltip-arrow::before {
    border-bottom-color: #ddd !important;
}

.header-tooltip {
    display:flex;
    align-items:center;
    justify-content:center;
}

.legal-page, .a-propos{
    max-width: 600px;    
    margin: auto;    
    margin-top: 60px;
    padding-bottom: 100px;
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: var(--primary);
    font-family: var(--client-font);
}

.a-propos{ 
    text-align: center;
}

.lien_lod {
    font-weight: bold;
    font-size: 1.1rem;    
}

.legal-page h1, .a-propos h1 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.legal-page h2, .a-propos h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

.a-propos video {
    display: flex;
    max-width: 500px;
    max-height: 400px;
    margin: auto;    
}

.btn-legal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wave-separator {
    width: 100%;
    height: 5px;
    margin: 2rem 0;
    background-image: url("/static/img/wave_separator.svg");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 20px 8px;
}

.dropdown-wave-separator,
.dropdown-divider {
    border: none;
    width: 100%;
    height: 4px;
    margin: 0.5em 0;
    background-image: url("/static/img/wave_separator.svg");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 10px 4px;
}

