/* @override 
	http://kimp-fr.com/3DMODEL/styles3d.css */

@font-face {
    font-family: 'Roboto-Thin';
    src: url('fonts/Roboto-Thin.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto.ttf') format('truetype');
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

div#bandeau.bandeau div.sousMenu select {
  width: 100%;
  font: bold 14px Roboto-Thin;
}

.fleche {
  top: 80px;
    left: 72px;
    position: absolute;
    animation: zoomRetour 0.5s ease infinite alternate;
    width: 58px;
    filter: drop-shadow(5px 5px 5px #666666);
}

@keyframes zoomRetour{
  from {transform: scale(0.90);}
  to   {transform: scale(1);}
}

.titre {
  text-align: center;
  font-variant: small-caps;
  font-size: 2em;
  display: block;
  width: 100%;
}

.titre2 {
  text-align: center;
  font-variant: small-caps;
  font-size: 1.2em;
  display: block;
    width: 100%;
}

body {
  width: 100vw;
  height: 100vh;
  font: bold 10px Roboto-Thin;
  --largeur: 200px;
  --hauteur: 550px;
  --couleurcotes: grey;
  /* ecran 18,5 */
  --largeurEcran18: 79px;
  --hauteurEcran18: 140px;
  /* ecran astro 18,5 */
  --largeurEcranAstro18: 75px;
  --hauteurEcranAstro18: 132px;
  /* Ecran 24 */
  --largeurEcran24: 95px;
  --hauteurEcran24: 165px;
  /* Ecran 24 Canto*/
  --largeurEcranCanto24: 98px;
  --hauteurEcranCanto24: 168px;
  /* Astro 24 */
  --leftecranastro24: 25px;
  --topecranastro24: 45px;
  /* Astro 18 */
  --leftecranastro18: 38px;
  --topecranastro18: 68px;
  /* Kikko */
  --leftecranKikko: 25px;
  --topecranKikko: 30px;
  /* Kikko Max */
  --leftecranKikkoMax: 22px;
  --topecranKikkoMax: 75px;
  /* Spazio */
  --leftecranSpazio: 30px;
  --topecranSpazio: 100px;
  /* Venezia */
  --leftecranVenezia15: 17px;
  --topecranVenezia15: 149px;
  --largeurEcranVenezia15: 106px;
  --hauteurEcranVenezia15: 76px;
  /* Canto */
  --leftecranCanto24: 20px;
  --topecranCanto24: 78px;
  /* Opera */
  --leftecranOpera15: 15px;
  --topecranOpera15: 120px;
  --largeurEcranOpera15: 106px;
  --hauteurEcranOpera15: 77px;
    /* Opera slim 12 */
    --leftecranOperaSlim12: 31px;
    --topecranOperaSlim12: 180px;
    --largeurEcranOperaSlim12: 77px;
    --hauteurEcranOperaSlim12: 106px;
}

.advanced {
  display: none;
}

#advanced {
  display: none;
}

/* dstyle pour le label de la checkbox avec id=advanced */
label[for="advanced"] {
  font: bold 1.5em Roboto-Thin;
  color: #ffffff;
  cursor: pointer;
  display: block;
  text-align: center;
  background-color: #e6bb66;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}

select {
  font: bold 1.5em Roboto-Thin;
  width: 100%;
  margin-block: 5px;
}

input[type="file"] {
  font: bold 20px Roboto-Thin;
  width: 90%;
  margin-block: 5px;
}

input[type="checkbox"] {
  font: bold 20px Roboto-Thin;
  margin-inline: 10px;
  vertical-align: middle;
}

.main {
  display:grid;
  grid-template-columns: auto 9fr;
  grid-template-areas: "menu preview";
  height: 100vh;
}

.boutonFermer {
  border-radius: 5px;
  background-color: rgb(165, 42, 42);
  width: 100px;
  padding: 8px;
  height: ;
  color: white;
  text-align: center;
  position: absolute;
}

.boutonFermer:hover {
  background-color: rgb(255, 0, 0);
  cursor: pointer;
}

.preview {
  grid-area: preview;
  background-position-x: 0%;
  background-repeat: no-repeat;
  font-size: 12px;
  background-image: url(images/fondpiedestal.jpg);
}

.menu {
  font-size: 10px;
  grid-area: menu;
  width: 0px;
  overflow-x: hidden;
  overflow-y: scroll;
  transition: all 0.5s;
  /* border-right: 2px solid #444444; */
  /* background-image: url('images/fondmenu.png'); */
  background-color: #dde7e9;
  background-size: auto 200%;
  box-shadow: 0px 0px 20px #454545;
  z-index: 10;
}

.open .menu {
  width: 310px;
}

h3 {
  font: bold 1.3em Roboto-Thin;
}

.zoom-point {
  position: absolute;
  width:5px;
  height:5px;
  background-color: red;
  border-radius: 50%;
}

.zoom-target {
  position: absolute;
  width:5px;
  height:5px;
  background-color: lime;
  border-radius: 50%;
}

.coords {
  position: absolute;
  width:5px;
  height:5px;
  background-color: turquoise;
  border-radius: 50%;
}

.logo {
  z-index: 0;
  background-image: url('images/logokimp.png');
  position: absolute;
  display: block;
  top: 0px;
  width: 280px;
  height: 200px;
  background-size: cover;
  right: 0px;
  /* Ajout d'une ombre sur le background image  */
  filter: drop-shadow(2px 2px 2pX RGBA(0, 0, 0, 0.2));
}

.bandeau {
  z-index: 100;
  left: 100px;
  width: 100%;
  height: 220px;
  padding-left: 100px;
  position: absolute;
  top: 0;
}

.bandeauaide {
  display: none;
  z-index: 100;
  right: 10px;
  position: absolute;
  width: 50%;
}


.container {
  width: var(--largeur);
  height: var(--hauteur);
  perspective: 2000px;
  perspective-origin: 500px 500px;
  /* margin: 100px auto 0; */
}

.nav-covering {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
}
.nav-covering input[type="button"] {
  background-color: #6d7f95;
  font-size: 1.5em;
  border-radius: 20%;
  border: 1px solid #33333300;
  color: #ffffff;
  cursor: pointer;
}

div#lignehauteur {
  display: none;
  width: 100%;
  top:350px;
  height:20px;
  color: red;
  font-size: 1em;
  position: absolute;
  z-index: 0;
  padding-left: 20px;
}

.lightSource {
  width: 120px;
  height: 120px;
  background-color: aquamarine;
}

.cube {
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  position: relative;
  animation: spin 0s infinite linear;
  animation-direction: reverse;
  transform: rotateY(-25deg);
  left: 0px;
  top: 120px;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgb(189, 189, 189);
}

.front {
  transform: translateZ(calc(var(--largeur) / 2));
}

.right {
  transform: rotateY(90deg) translateZ(calc(var(--largeur) / 2));
  opacity: 1;
  box-shadow: inset calc(-0.5 * var(--largeur)) calc(-0.5 * var(--largeur)) var(--largeur) rgba(0, 0, 0, 0.45);
}

.back {
  transform: rotateX(180deg) translateZ(calc(var(--largeur) / 2));
  box-shadow: inset 100px 100px 100px 100px rgba(0, 0, 0, 0.45);
}

.left {
  transform: rotateY(270deg) translateZ(calc(var(--largeur) / 2));
  box-shadow: inset calc(0.5 * var(--largeur)) calc(-0.5 * var(--largeur)) var(--largeur) rgba(0, 0, 0, 0.45);
}

.top {
  width: var(--largeur);
  height: var(--largeur);
  box-shadow: inset 0px calc(-0.5 * var(--largeur)) var(--largeur) rgba(0, 0, 0, 0.45);
  transform: rotateX(270deg) translateZ(calc(var(--largeur) * -0.5));
}

.bottom {
  width: var(--largeur);
  height: var(--largeur);
  transform: rotateX(-90deg) translateZ(calc(var(--hauteur) - var(--largeur) / 2));
  background-color: black;
  //box-shadow: 20px 15px 100px 12px rgba(0, 0, 0, 0.7);
}

.charnieredroite {
  width: 30px;
  height: 100%;
  border-style: solid;
  border-color: #5a5959;
  border-top-style: none;
  border-left-style: none;
}

.charnierehaute {
  width: 100%;
  height: 30px;
  border-style: solid;
  border-color: #5a5959;
  border-right-style: none;
  border-left-style: none;
  border-top-style: none;
}

.boutonaide {
  /* make the button blink */
  animation: fadeInOut 1.5s infinite;
  }

  @keyframes fadeInOut {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.3;
    }
}

.charnieregauche {
  float: right;
  width: 30px;
  height: 100%;
  border-style: solid;
  border-color: #5a5959;
  border-top-style: none;
  border-right-style: none;
}

.pied {
  z-index: 200;
  position: absolute;
  bottom: 0px;
  background-color: rgb(31, 31, 31);
  width: 100%;
  height: 35px;
}

.visuel {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  width: var(--largeur);
  height: calc(var(--hauteur));
  background-size: auto var(--hauteur);
  background-position: center;
  background-repeat: no-repeat;
}

.modele {
  position: absolute;
  z-index: 100;
  /* hauteur = var hauteur - 35px */
  height: calc(calc(var(--hauteur)) - 35px);
  width: var(--largeur);
  background-size: cover;
}

.boutonMenu {
  position: absolute;
  /* display: none; */
  padding: 10px;
  top: 0px;
  width: 45px;
  height: 45px;
  background-size: cover;
  background-color: #17365c;
  background-image: url('images/hamburger.png');
  padding: 10px;
  float: left;
  background-size: 30px 30px;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 0px 0px 5px;
  z-index: 100;
}

.masquer {
  height: 45px;
  width: 100%;
  text-align: right;
  font-size: 2em;
  cursor: pointer;
  background-color: #17365c;
  color: white;
  padding-block: 5px;
  padding-inline: 10px;
}
.masquer:hover {
  /* background-color: rgba(255, 243, 223, 0.172); */
}

.ecran {
  background-size: cover;
  left: var(--leftecranastro24);
  top: var(--topecranastro24);
  display: block;
  position: relative;
  width: var(--largeurEcran24);
  height: var(--hauteurEcran24);
  background-image: url('images/fonds/fondunivers3.png');
  z-index: 30;
}
.floor {
  width: 2500px;
  height: 2000px;
  background-image: url('images/wood_oak_color.jpg');
  background-color: white;
  position: absolute;
  transform: translate(-1000px, -440px) rotateX(-90deg);
  opacity: 1;
  box-shadow: inset 0 -500px 2500px #000000;
  display: none;
}

.flechegauche {
  position: absolute;
  display: block;
  z-index: 100;
  width: 100px;
  height: 100px;
  background-image: url('images/flechegauche.png');
  background-size: cover;
  margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%);
}
.flechedroite {
  position: absolute;
  z-index: 200;
  right: 0px;
  display: block;
  width: 100px;
  height: 100px;
  background-image: url('images/flechedroite.png');
  background-size: cover;
  margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%);
}

input#fileupload {
  font: bold 1.3em Roboto-Thin;
}

.fullWidth {
  width: 100%;
}

input[type="color"] {
  width: 80px;
  height: 40px;
}


.sousMenu {
  font: bold 18px Roboto-Thin;
  width: 250px;
  height: 230px;
  margin: 5px;
  background-color: #e9e8e882;
  border-radius: 5px;
  padding: 5px;
  float: left;
  z-index: 100;
  text-align: center;
}

.sousMenuVertical {
  width: 100%;
  /* height: 230px; */
  
  border-bottom: 1px solid #6c656582;
  padding: 5px;
  float: left;
  z-index: 100;
  text-align: center;
}

.sousMenu2 {
  font: 1.5em Roboto;
  color: rgb(0, 0, 0);
  margin: 5px;
  background-color: #d9ece1e8;
  border-radius: 5px;
  padding: 5px;
  float: right;
  z-index: 100;
}

.bloc40 {
  width: 40%;
  font-size: 0.8em;
  float: left;
  padding: 10px;
}

.bloc20 {
  display: flex;
  align-items: center;
  justify-content: center;
    width: 20%;
  font-size: 0.8em;
  float: left;
  text-align: center;
  padding: 10px;
}

button {
  font: bold 1em Roboto-Thin;
  background-color: #b1cdda;
  border-radius: 5px;
  width: 44%;
  height: 2em;
  border-style: none;
  margin: 5px;
}
@keyframes spin {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(0deg) rotateY(180deg);
  }
}

/* si affichage sur mobile */
@media screen and (max-width: 600px) {
  .mobile {
    visibility: visible;
  }
  .desktop {
    display: none;
  }
  .menu {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    width: 100%;
    transition: all 0.5s;
  }
  .open .menu {
    top: 0;
    width: 100%;
  }
  .main {
    grid-template-columns: 1fr;
    grid-template-areas: "preview";
  }
}
