:root {
    --texte_base: #6A2F00;
}

@font-face {
	font-family: 'New_Burns';
	src: url('../import/fonts/New_Burns_Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Times';
	src: url('../import/fonts/times.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Times_Italic';
	src: url('../import/fonts/timesi.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'Times_Bold';
	src: url('../import/fonts/timesbd.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

#mobile-blocker {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999; /* équivalent de top: 0; right: 0; bottom: 0; left: 0 */
    background: rgb(245,245,245);
    text-align: center;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    color: var(--texte_base);
    overflow: hidden;
  }
  
  /* Affiche le bloc uniquement en dessous d'un certain seuil (ex: 768px) */
  @media (max-width: 768px) {
    #mobile-blocker {
      display: flex;
    }
  
    body {
      overflow: hidden; /* évite le scroll du site en arrière-plan */
    }
  }






#content {
    height: 100vh;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    padding: 18px;
    transition: padding 1s ease;

    color: var(--texte_base);
    background-color: rgb(245,245,245);
}

#content.vrac-active {
    padding: 0;
}
  
#content.vrac-active > header {
    padding: 10px;
}
  
#content.vrac-active #main_selecteur {
    padding-inline: 10px;
}





header {
    height: auto;

    display: flex;
    justify-content: space-between;

    transition: padding 1s ease;
}

#header_name {
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -3px;

    opacity: 0;
}

#header_name > *:last-child {
    padding-left: 48%;
}

#header_desc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-align: end;
    line-height: 1.2;
    letter-spacing: -0.3px;

    opacity: 0;
}

#header_desc > *:first-child {
    text-transform: uppercase;
}

#header_desc a {
    color: var(--texte_base);
}

#header_desc a:hover {
    font-family: 'Times_Italic';
    cursor: pointer;
}

#header_desc a:visited {
    color: var(--texte_base);
}

#header_logo {
    height: 72px;
    color: var(--texte_base);
}

h1 {
    font-family: 'New_Burns';
    font-size: 3.8rem;
}

h2 {
    font-family: 'Times';
    font-size: 1.25rem;
}

h3 {
    font-family: 'Times';
    font-size: 0.85rem;
}








main {
    margin-top: auto;
    overflow: hidden;
}


    /*SELECTEUR*/

#main_selecteur {
    display: flex;
    justify-content: space-between;

    transition: padding-inline 1s ease;
}

#main_affichage h3 span:hover {
    text-decoration: underline;
    cursor: pointer;
}

#main_categories h3 span:hover {
    text-decoration: line-through;
    cursor: pointer;
}

.affichage-tab {
    cursor: pointer;
    padding: 0 4px;
}
  
.affichage-tab.active {
    text-decoration: underline;
}

#main_categories span.selected {
    text-decoration: line-through;
  }


    /*DISPLAY*/


#main_showreel {
    height: 63vh;
    max-height: 63vh;
    flex-direction: column;
}

#main_list {
    height: 63vh;
    max-height: 63vh;
    display: none;
    flex-direction: column;
}


#main_vrac {
    height: calc(63vh + 18px);
    display: none;
    flex-direction: column;

    transition: height 0.1s ease-out;

    overflow: hidden;
    min-height: 0;
}


    /*SHOWREEL*/

#preview_container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 6px;
    position: relative;
}
      
#preview_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s ease;
    pointer-events: none;
}
      
#preview_container:hover #preview_video {
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

#preview_container:hover {
    cursor: zoom-in;
}

#lightbox_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.4s ease, backdrop-filter 0.6s ease;
    pointer-events: none;
}

#lightbox_overlay.visible {
    opacity: 1;
    backdrop-filter: blur(5px);
    cursor: zoom-out;
    pointer-events: auto;
}

#lightbox_content {
    display: flex;
    justify-content: center;
    align-items: center;
}
  
#lightbox_content iframe {
    height: 88vh;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}


    /*LISTE*/

#main_list {
    height: 63vh;
    max-height: 63vh;
    display: none;
    flex-direction: column;

}    

hr {
    border-color: var(--texte_base);
    opacity: 0.4;
    margin: 0;
}

#main_list_project {
    flex: 1;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
    width: 100%;
}

#main_list_project.narrow {
    width: 40%;
}

#main_list_project::-webkit-scrollbar {
    display: none;
}

#main_list_project > *:first-child {
    margin-top: 6px;
}

#main_list_project > *:last-child {
    margin-bottom: 0px;
}

.main_list_project_text {
    cursor: crosshair;

    display: flex;
    flex-direction: column;
    height: auto;

    padding-block: 7px;

    transition: padding-block 0.5s ease;
}

.main_list_project_text:hover,
.main_list_project_text.active {
    padding-block: 10px;
    transition: padding-block 0.5s ease 0.08s;
}

.main_list_project_text.active .main_list_project_details {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
    padding-top: 5px;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, padding-top 0.5s ease;
}

.main_list_project_text.active {
    background-color: blue;
    color: rgb(245,245,245);
    padding-inline: 8px;
}

.main_list_project_text.active a {
    color: rgb(245,245,245);
  }

.main_list_project_header {
    display: grid;
    grid-template-columns: 60% 35% 1fr;
    text-transform: uppercase;
}

.main_list_project_header > *:last-child {
    justify-self: right;
}

.main_list_project_details {
    width: 85%;

    opacity: 0;
    max-height: 0;
    padding-top: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, padding-top 0.5s ease;
    pointer-events: none;
}

.main_list_project_details h3 {
    text-transform: uppercase;
}

.main_list_project_details h3 a {
    color: var(--texte_base);
}

.main_list_project_details h3 a:hover {
    font-family: 'Times_Italic';
    cursor: pointer;
}

#main_list_images {
    position: fixed;
    top: 0;
    right: 0;
    opacity: 0;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    height: 100%;
    width: 50%;

    background: rgb(245,245,245);
    z-index: 999;

    transform: none;
    pointer-events: none;

}

#main_list_images::-webkit-scrollbar {
    display: none;
}

#main_list_images.visible {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}

.project-gallery {
    display: none;

    padding: 2rem;
}
  
.project-gallery.active {
    display: inline-block;
}

.project-gallery img {
    width: 100%;
    margin-bottom: 10px;

    border-radius: 4px;
}

.project-gallery iframe {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 10px;

    border-radius: 4px;
}

.img_spe {
    width: 100%;
    display: flex;
    justify-content: space-between;


}

.img_spe_2 {
    width: 80%;
    margin: auto;

}

.img_spe_2 video {
    width: 100%;
    margin: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}


.img_spe img {
    width: 49.1%;
    display: flex;
}


    /*VRAC*/

#vrac_wrapper {
    flex: 1;
    overflow: hidden;

    background-color: #050505;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;

    margin-top: 6px;
    
    display: flex;
    flex-direction: column;
}

#vrac_background {
    flex: 1;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 70px;
    padding: 60px 60px 12px 60px;

    background-color: #050505;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0) transparent;
    transition: scrollbar-color 0.5s ease;
}

#vrac_background.scrolling {
    scrollbar-color: rgba(255, 255, 255, 0.85) transparent;
}

#vrac_background::-webkit-scrollbar {
    width: 5px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.1s ease;
}
  
#vrac_background::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0);
    border-radius: 0;
    transition: background-color 0.1s ease;
}
  
#vrac_background.scrolling::-webkit-scrollbar {
    opacity: 1;
}
  
#vrac_background.scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.85);
}

.vrac {
    width: 100%;
    max-height: 65vh;

    display: flex;
    flex-direction: column;
}

.vrac_item {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
}

#floating_caption {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
  
    opacity: 0;
  
    font-size: 0.55rem;
    color: rgba(255,255,255,0.8);
    mix-blend-mode: difference;
    text-transform: uppercase;
    white-space: nowrap;
}


.vrac:hover {
    cursor: crosshair;
}

#credits {
    grid-column: 1 / -1;
    text-align: center;

    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

#credits h3 {
    font-size: 0.55rem;
}