



* {
  box-sizing: border-box;
}

html {
  height: -webkit-fill-available;
}
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
   background-color:#333333;
}

.header {
  position:fixed;
  top:0px; 
  width:100vw;
  height:10vh;  
  background-color: #222222;
  color: #ffffff;
  padding: 15px;   
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

.row{
   position:relative;
   top:10vh;   
   display: flex;   
   height:87vh;
   width:100vw;
   max-height:100vh;
}

.footer {
  background-color: #222222;
  color: #ffffff;
  text-align: center;
  font-size: 1vh;
  padding: 5px;
  
  position:fixed;
  bottom:0;
  width:100vw;
  height:3vh; 
}

.footerBtn {
  height:2vh;
}

/* Create two equal columns that sits next to each other */
.column {
  position:relative;	
  top:0px;	
  flex: 50%;
  padding: 10px; 
  overflow:auto;
  height:100%;
}

.column img{  
  max-width:100vw;
  max-height:80%;
  margin:auto;
  display: block; 
  box-shadow: 10px 10px 25px black;
}

.playerBanner{
	position:relative;	
    max_height:5vh;		
}



[class*="col-"] {
  float: left; 
}

html {
  font-family: "Lucida Sans", sans-serif;
}

h1 {
  color: white;
  /*text-shadow: 2px 2px 4px #000000;*/
   text-shadow: 0 0 0.02em #f00, 0 0 0.9em #ff7f00, 0 0 0.3em #ff7f00;
}

h2 {
  color: white;
 /* text-shadow: 2px 2px 4px #000000;*/
  text-shadow: 0 0 0.02em #f00, 0 0 0.9em #ff7f00, 0 0 0.3em #ff7f00;
}

h3 {
  font-family: 'Mr Dafoe';
  margin: 0;
  font-size: 2.5em;
  margin-top: -0.6em;
  color: white;
  text-shadow: 0 0 0.02em #f00, 0 0 0.9em #ff7f00, 0 0 0.3em #ff7f00;
  /*transform: rotate(-5deg);*/
}

h6 {
  font-family: 'Mr Dafoe';
  margin: 0;
  font-size: 0.8em;
  margin-top: -0.4em;
  color: white;
  text-shadow: 0 0 0.02em #f00, 0 0 0.9em #ff7f00, 0 0 0.3em #ff7f00;
  /*transform: rotate(-5deg);*/
}

h5 {
  /*font-family: 'Mr Dafoe';*/
  margin: 0;
  font-size: 1.0em;
  margin-top: -0.4em;
  color: white;
  text-shadow: 0 0 0.02em #f00, 0 0 0.9em #ff7f00, 0 0 0.3em #ff7f00;
  /*transform: rotate(-5deg);*/
}


@media only screen and (max-width: 600px) {
  .header{
    top:0;
    width:100%;
    position:fixed;
  }
}




.hmenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #222222;
  font-size:3vh;
}

.hmenu li {
  float: left;
}

.hmenu li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  height:6vh;
}

.hmenu li a:hover:not(.active) {
  background-color: #111;
}

.active {
  background-color: #ff7f00;
}

.vmenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
   font-size:2vh;
}
 
.vmenu li {
  padding: 8px; ;
  margin-bottom: 7px;
  background-color: #222222;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.vmenu li:hover {
  background-color: #ff7f00;
}

 .selectbox { 
  width:100%; 
  padding: 8px; ;
  margin-bottom: 7px;
  border: 1px solid #999;
  font-size:2vh;
  color: #1c87c9;
  background-color: #222222;
  border-radius: 5px;
       /* box-shadow: 4px 4px #ccc;*/
 }
 
form.searchForm  input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 80%;
  background: #333333;
  color: white;
}

form.searchForm button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #ff7f00;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

form.searchForm button:hover {
  background: #0b7dda;
}

form.searchForm::after {
  content: "";
  clear: both;
  display: table;
}
  
.lightitem{
   background-color: #ff7f00;
  }
  
/* For mobile phones: */
[class*="col-"] {
  width: 100%;
}

@media only screen and (min-width: 600px) {
  /* For tablets: */
  .co-sl-0{width:0%;box-sizing: border-box;}
  .col-s-0{width:0%;box-sizing: border-box;} 
  .col-s-25 {width: 15%;box-sizing: border-box;}  
  .col-s-50 {width: 50%;box-sizing: border-box;} 
  .col-s-75 {width: 85%;box-sizing: border-box;}  
  .col-s-100 {width: 100%;box-sizing: border-box;}
  
 
}
@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-0{width:0%;box-sizing: border-box;} 
  .col-15 {width: 15vw;box-sizing: border-box;}  
  .col-50 {width: 50vw;box-sizing: border-box;} 
  .col-35 {width: 35vw;box-sizing: border-box;} 
  .col-85 {width: 85vw;box-sizing: border-box;}  
  .col-100 {width: 100vw;box-sizing: border-box;} 
}

/* If the screen size is 601px or more, set the font-size of <div> to 80px */
@media only screen and (min-width: 601px) {
  div.header {
    font-size:30px;
  }
}

/* If the screen size is 600px or less, set the font-size of <div> to 30px */
@media only screen and (max-width: 600px) {
  div.header {
    font-size: 13px;
  }
 
}



.bigfont{
  font-size:3vh;
}

.justifiedText{
  text-align:left;
  text-justify: inter-word;
}

.connectbutton{  
  display:block; 
  margin:auto;  
  height:10vh;  
}

.connectmenubutton{  
  position:relative;
  top:0px;  
  padding: 8px;
  margin-bottom: 7px; 
  height:7vh;
}

.playButton{
 display:block; 
  margin:auto;  
  height:10vh; 
}

.hideMenuIconLeft
{
  position:relative;
  top:0px;
  float: left;
  height:3vh;
}

.hideMenuIconRight
{
  position:relative;
  top:0px;
  float: right;
  height:3vh;
}



@media (max-width: 640px) {
	* {
		box-sizing: border-box;
	}
	
	/* passer body (et tous les éléments de largeur fixe) en largeur automatique */

	body {
		width: auto;
		margin: 0;
		padding: 0;
	}
	
	/* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

	img,
	table,
	td,
	blockquote,
	code,
	pre,
	textarea,
	input,
	iframe,
	object,
	embed,
	video {
		max-width: 100%;
	}
	
	/* conserver le ratio des images */

	img {
		height: auto;
	}
	
	/* gestion des mots longs */

	textarea,
	table,
	td,
	th,
	code,
	pre,
	samp {
		-webkit-hyphens: auto; /* césure propre */
		-moz-hyphens: auto;
		hyphens: auto;
		word-wrap: break-word; /* passage à la ligne forcé */
	}
	
	code,
	pre,
	samp {
		white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
	}
	
	/* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

	.element1,
	.element2 {
		float: none;
		width: auto;
	}
	
	/* masquer les éléments superflus */

	.hide_mobile {
		display: none !important;
	}
	
	/* Un message personnalisé */

	body:before {
		content: "Version mobile du site";
		display: block;
		text-align: center;
		font-style: italic;
		color: #777;
	}
}


@media (max-device-width:768px) and (orientation: landscape) {
  html {
   -webkit-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
  }
}

/* Login */

.middletop {
  top:0px;  
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex; 
  text-align:center;
}

.loginButton{
  position:relative;
  margin-left: auto;
  margin-right: auto;
  border:none;
  background-color:transparent;
}

.loginImage{
  display: block;       
}

.categoriesMenu{
   position:relative; 	
   top:2vh;	
   max-height:95%;
   overflow:auto;
}

.categoriesSelector{
  /* position:fixed;*/
}

.categoriesList{
  /*
  position:relative;
  maxheight:60%;
   overflow:auto;*/
}

.selectionContainer{
  position:relative;	
  top:1vh;
  height:86vh;   
  overflow:auto;  
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;  
  padding:10vh; 
}

.break {
  flex-basis: 100%;
  height: 10vh;
}

.aside {
  background-color: #222222;
  padding: 15px;
  color: #33b5e5;  
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  max-height:80vh;
  width:100%;
  overflow:auto;
}


@media only screen and (max-width: 600px) {
  .thumbnail{
    width:50vw;
  }
}
@media only screen and (min-width: 768px) {
  .thumbnail{
    width:20vw;
  }
}

.thumbnail{
  width:10vw;
  position:relative;
  /*width:20%;*/
  padding:10px;
  /*max-height:80%;*/
  max-height:35vh;
  background-color: #222222;  
  color:#FFF;
  text-align:center;  
  text-decoration:none;
  font-size:1.2vh;
  /*margin:3px;*/ 
}

.thumbnail img{
  /*position: absolute;*/  
  /*display:block; */ 
  max-width:95%;*/  
  margin-left: auto;
  margin-right: auto; 
  /*max-width:15vh;*/
  /*max-height:60vh;*/ 
  max-height:80%;
  box-shadow: 10px 10px 8px black;
}

.thumbnail:hover { 
  /*position: relative;*/   
  z-index:1;
  box-shadow: 9px -6px 20px 15px #FF0808,
                       -9px 6px  20px 15px #FF0808;                        
  transform: scale(1.7);/* translate(30%,30%);*/
  transition: transform 1000ms ease-in-out; 
}

.moduletitle {
  position: absolute;  
  left: 5%;
  /*transform: translate(50%,0%);*/
}

.righttitle {
  position: absolute; 
  left:5%;
  right: 5%;
  /*transform: translate(50%,0%);*/
}

.menuLink{
 color: #FFF;
}

.item{
  /*width:50vw;*/
  /*display: flex; */
  height:74vh;
  background-color: #222222;  
  color:#FFF;
  text-align:center;
  text-decoration:none;
  font-size:1.5vh;
}

.item img{
  position: absolute;
  margin:auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  max-width:50%;
  max-height:60%; 
}

.title{
  position:relative;	
  top:3vh; 
  font-size:2vh;
  height:2vh;
  color:#FFF;
  text-align: center;
}

.videoContainer{
  position:relative; 
  width:100%;
  display: flex;
  /*flex-direction: row;
  flex-wrap: wrap;*/
  justify-content: center;
  align-items: center;
	
}

.videoPlayer{	
    max-width:90%;
    max-height:90%;	
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 15px 10px;

  /* Position the tooltip */
  position: absolute;
  top:1vw;
  left:-4vw;
  z-index: 1;
  
  font-size:xx-small;
  text-shadow:none;
  text-align: justify;
  text-justify: inter-word;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}


/* Ajustements d'intégration : même palette et structure Nasdesk, sans JavaScript inline. */
.page-nasdesk{font-family:"Lucida Sans",Arial,sans-serif;color:#fff}.page-nasdesk a{color:#fff}.header{height:100px;z-index:5;padding:10px 18px}.brand{display:flex;align-items:center;gap:18px;margin-bottom:8px;font-size:1.4rem}.brand>a{text-decoration:none;font-weight:bold}.integration-label{font-size:.8rem;color:#ffd098;font-family:Arial,sans-serif}.hmenu{display:flex;gap:5px;align-items:center;font-size:1rem;flex-wrap:wrap}.hmenu>a{padding:8px 12px;text-decoration:none;border-radius:3px}.header-actions{margin-left:auto;display:flex;gap:12px;align-items:center}.header-actions form{margin:0}.page-nasdesk button{cursor:pointer}.header-actions button,.sort-form button{border:1px solid #777;background:#222;color:#fff;padding:7px 10px;border-radius:3px}.row{position:fixed;top:100px;bottom:35px;width:100%;height:auto;display:grid;grid-template-columns:240px minmax(0,1fr)}#leftArea{width:auto;overflow:auto;padding:14px;background:#292929}.categoriesMenu{top:0;max-height:none;overflow:visible}.sort-form label{display:block;margin-bottom:8px}.sort-form button{margin-bottom:12px}.categories-list{padding-top:20px!important}.categories-list a{text-decoration:none;display:block}.categories-list li{font-size:.95rem}.searchForm{margin-bottom:15px}#centerArea{width:auto;overflow:auto;padding:20px;min-width:0}.title h3{font-family:"Lucida Sans",Arial,sans-serif;font-size:1.6rem;margin:0 0 25px;color:#fff}.selectionContainer{top:0;height:auto;overflow:visible;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:18px;align-items:start}.thumbnail{width:auto;max-height:none;min-width:0;padding:12px;font-size:1rem;border-radius:5px}.thumbnail a{text-decoration:none}.thumbnail img.poster,.thumbnail video.poster{width:100%;height:190px;object-fit:contain;box-shadow:none;background:#191919}.thumbnail h5{font-size:.95rem;margin:10px 0 0;font-weight:normal;overflow-wrap:anywhere}.thumbnail h6{font-size:.75rem;margin:8px 0 0;font-family:inherit;color:#bbb}.folder-icon{height:85px;max-width:100%}.footer{height:35px;font-size:.8rem;display:flex;align-items:center;justify-content:space-between;padding:3px 15px;z-index:5}.footer button{background:none;color:#fff;border:0;font-size:1.3rem}.hide-sidebar .row{grid-template-columns:1fr}.hide-sidebar #leftArea{display:none}.detail-nav{display:flex;gap:25px;margin-bottom:25px;flex-wrap:wrap}.item-detail{display:grid;grid-template-columns:minmax(180px,35%) 1fr;gap:30px}.detail-cover{max-width:100%;max-height:60vh;display:block;margin:auto;object-fit:contain}.play-link img{height:65px;display:block;margin:20px auto}.metadata{display:grid;grid-template-columns:max-content 1fr;gap:10px 16px}.metadata dt{color:#bbb}.metadata dd{margin:0;overflow-wrap:anywhere}.description{line-height:1.6;overflow-wrap:anywhere}.videoContainer{display:flex;justify-content:center;max-height:70vh}.videoPlayer{max-width:100%;max-height:70vh;background:#111}.videoContainer audio{width:min(100%,700px)}.pagination{display:flex;justify-content:center;gap:25px;padding:25px}.missing-poster{display:flex;min-height:120px;align-items:center;justify-content:center;color:#bbb}.notice{padding:12px;background:#632e25}.login-panel{max-width:650px;margin:7vh auto;padding:25px;text-align:center}.login-form{display:flex;flex-direction:column;gap:25px;align-items:stretch;margin-top:30px}.login-form label{display:flex;flex-direction:column;gap:10px}.login-form input{padding:12px;border-radius:5px;border:1px solid #777;background:#87856f;color:#111}.loginImage{width:100px;margin:auto}.loginButton{padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:700px){.header{height:145px}.row{top:145px;grid-template-columns:170px minmax(0,1fr)}.header-actions{margin-left:0}.selectionContainer{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.thumbnail img.poster{height:150px}.item-detail{grid-template-columns:1fr}.footer span{font-size:.65rem}.metadata{grid-template-columns:1fr}.metadata dd{margin-bottom:8px}.page-nasdesk:before{display:none}.brand{font-size:1.1rem}}

/* Catalogue C1-R2 : sections et navigation de dossiers hors galerie. */
.catalogue-group-title{font:600 1.2rem Arial,sans-serif;margin:28px 0 15px;padding-bottom:8px;border-bottom:1px solid #666;color:#ffd098}
.catalogue-folders{margin-top:24px}.catalogue-folders summary{cursor:pointer;padding:8px 0;color:#ffd098}
.catalogue-folders .categories-list{padding-top:8px!important}
.catalogue-subfolders{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 20px}

/* C1-R3 : catégorie et classement indépendants. */
.sidebar-heading{font:600 1rem Arial,sans-serif;margin:22px 0 0;color:#ffd098}
.categories-list a[aria-current="page"]{color:#ffd098;font-weight:bold}
.catalogue-scope{margin:0 0 20px;color:#ddd}
.catalogue-collections{margin:18px 0 25px;padding:12px;border:1px solid #666;border-radius:4px}
.catalogue-collections h4{margin:0 0 12px;font-size:1rem}
.catalogue-collections>a{display:inline-block;margin:4px 16px 4px 0}
