html, body{
  scroll-behavior: smooth;
}
body.js-stop-transition * { transition:none !important; }

#blason{
    position: absolute;
    left: 50vw;
    transform: translate( calc(-7px + -50%) );
    top: 80px;
    transition-property: width, height, top;
    transition-duration: 0.5s;
    transition-timing-function: linear;
}
#container1 .text{
  max-width: 983px;
  width: 90%;
  margin-top: 5vh;
  margin-bottom: 5vh;
  margin-left: 30px;
  margin-right: 30px;
  min-height: 200px;
  text-align: justify;
  display:flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
#container1 .text div{
  width: 50%;
}

#container1 .text p{
  font-size: 20px;
  font-weight: bold;
  margin: 20px;
  color: #111;
  text-shadow: none;
  text-indent: 1em;
  -webkit-text-size-adjust: none;
}
#oripeaux{
  width: 100%;
  background-color: #111;
  color: white;
  z-index: -1000;
  scroll-behavior: smooth;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
#oripeaux div:not(.text){
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: flex-end;
}
#oripeaux .text{
  display: flex;
  flex-direction: column;
  width : 42%;
  margin-right: 4%;
  padding: 2%;
  text-align: justify;
  height: min-content;
  background-color: rgba(17,17,17, 0.5);
  box-shadow: 1px 0px 10px rgba(17,17,17, 0.5);
  border-radius: 25px;
  font-weight: bold;
  z-index: 500;
}
.text h3{
  text-align: center;
  color: white;
  font-weight: bold;
}
.text p{
  text-indent: 0;
  color: white;
}
canvas{
  position: relative;
  top: -80px;
  float: none;
  z-index: -500;
  left: 25%;
}
h2{
  position: relative;
  left:0;
  top: 0;
  width: 100%;
  margin-top: 75px;
  margin-bottom: 0;
  text-align: center;
  z-index: 1000;
}
#container1{
  box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.25);
}
#symboles{
  padding-bottom: 50px;
  min-height: calc(100vh);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("../images/blasonWhite.png");
  background-repeat: no-repeat;
  background-position: 50% 60%;
  background-color: white;
  z-index: 100;
}
#symboles h2{
  margin-bottom: 25px;
}
#symboles p{
  margin-top: 50px;
  margin: 10px;
  font-family:'Cardo', serif;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  max-width: 100%;
}
#symboles p.smartphone {
  display: none;
}
#blasonMobileImage{
  margin: 25px 0;
  display: none;
}
#symboles .infosUp, #symboles .infosBottom{
  display: flex;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 983px;
  width: 100%;
  justify-content: space-between;
  margin-top: 15px;
  min-height: 270px;
}

#symboles .infosUp h3, #symboles .infosBottom h3{
  width: 100%;
  text-align: center;
}
#symboles .infosUp div, #symboles .infosBottom div{
  width : 35%;
  height: 45vh;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#symboles .infosUp p{
  margin-bottom: 15px;
}
#symboles .infosUp div p, #symboles .infosBottom div p{
  min-height: 75px;
}
#praesidium{
  padding-bottom: 50px;
  min-height: 800px;
  width: 100%;
  background-color: #010101;
  color: white;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#ChevalierInfos{
  position: relative;
  margin: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  height: 250px;
  width: 50%;
  min-width: 800px;
}
#ChevalierInfos div{
  width: 100%;
  position: absolute;
  opacity : 0;
  transition: opacity 1s;
}
#ChevalierInfos h3{
  text-align: center;
}
#ChevalierInfos p{
  text-align: justify;
}
#piedsTable{
  position: relative;
  margin: auto;
  top: 600px;
  width: 80%;
  min-width: 890px;;
  display: flex;
  justify-content: space-between;
}
#piedsTable div{
  height: 30px;
  width: 200px;
  background: url(../images/wood.jpg);
  transform: rotate(-90deg);
  border-radius: 10px 0 0 10px;
  box-shadow: inset 0 -5px 10px black;
}
#piedsTable div:first-child{
  box-shadow: inset 0 5px 10px black;
}
.cuboid {
  left: 50%;
  transform: translateX(-50%);
  perspective: 400px;
  position: absolute;
  min-width: 800px;
  height: 200px;
  margin-bottom: 162px;
  margin-top: 100px;
  transform-style: preserve-3d;
}

#table.cuboid::after{
  background: url(../images/wood.jpg) center;
  height: 30px;
  width: 115%;
  content: "";
  position: absolute;
  top: 331px;
  left: -7.5%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: none;
}
.cuboid__face {
  width : 100%;
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.35);
  height: 100px;
  transform: translateY(251px) rotateX(-90deg);
  -webkit-filter: brightness(80%);
  filter: brightness(80%);
}
#table{
  width : 75%;
}
#table .cuboid__face{
  background: url(../images/wood.jpg) center;
}
#nappeRouge .cuboid__face{
  background-color : red;
}
#nappeRouge{
  width : 65%;
  min-width: calc(800px*0.85);
}
#nappeBleue .cuboid__face{
  background-color : #19237E;
}
#nappeBleue{
  width : calc(65% - 50px);
  min-width: calc(calc(800px*0.85) - 50px);
}
#fanions{
  width : 73%;
  min-width: calc(800px*0.95);
  display: flex;
  justify-content: space-between;
}
#HG, #treso, #Substitut, #GM, #Censeur, #Chancelier, #TM{
  width : 100px;
  transform-style: preserve-3d;
}
#fanions .cuboid__face{
  background: linear-gradient(to right, red 0%, red 8% , #251580 8%, #251580 92% , red 92%, red 100%);
}
.trapeze {
  position: absolute;
  height: 1px;
  transform: translateZ(-50px) translateY(359px) translateX(-11%);
 }
 #trapezeRouge{
   width : calc(128.5% - 300px);
   border-top: 200px solid red;
   border-left: 150px solid transparent;
   border-right: 150px solid transparent;
   -webkit-filter: drop-shadow(0 5px 5px black);
   filter: drop-shadow(0 5px 5px black);
 }
 #trapezeBleue{
   width : calc(128.5% - 260px);
   border-top: 175px solid #19237E;
   border-left: 130px solid transparent;
   border-right: 130px solid transparent;
 }
 #fanions .trapeze{
   width : 102px;
   transform: translateZ(50px) translateY(302px);
   height: 200px;
   background-size: cover;
   background-position: bottom;
   -webkit-filter: drop-shadow(0 5px 5px black);
   filter: drop-shadow(0 5px 5px black);
 }
 #HG .trapeze{
   background-image: url(../images/fanions-HG.png);
 }
 #treso .trapeze{
   background-image: url(../images/fanions-Treso.png);
 }
 #Substitut .trapeze{
   background-image: url(../images/fanions-Substi.png);
 }
 #GM .trapeze{
   background-image: url(../images/fanions-GM.png);
 }
 #Censeur .trapeze{
   background-image: url(../images/fanions-Censor.png);
 }
 #Chancelier .trapeze{
   background-image: url(../images/fanions-Cancelor.png);
 }
 #TM .trapeze{
   background-image: url(../images/fanions-TM.png);
 }
 #praesidium .smartphone {
   display: none;
   flex-direction: column;
   justify-content: flex-start;
   gap: 30px;
   width: calc(100vw - 100px);
   position: relative;
   margin: auto;
   margin-top: 50px;
 }
 #praesidium .smartphone div{
   display: flex;
   flex-direction: row;
   min-height: 550px;
 }
 #praesidium .smartphone div img{
   object-fit: contain;
   object-position: center 50px;
   max-width: 100px;
   width : 25%;
 }
 #praesidium .smartphone div div{
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: justify;
 }
 #praesidium .bigScreen {
   display: block;
   max-width: 1850px;
  margin: auto;
 }
footer{
  z-index: 2000;
}
@media (min-width: 1400px) {
  #container1 h2{
    margin-top: 200px;
  }
  #oripeaux h2{
    position: relative;
    left:0;
    top: 0;
    width: 77.5%;
    margin-right: 22.5%;
    margin-top: 75px;
    margin-bottom: 0;
    text-align: right;
  }
  #symboles H2{
    margin-top: 175px;
  }
  #praesidium{
    min-height: 917px;
  }
  #praesidium H2{
    margin-top: 100px;
  }
}
@media (min-width: 1201px) {
    #symboles{
        background-image: none;
    }
}
@media (max-width: 1000px) {
  #container1 .text{
    flex-direction: column;
  }
  #container1 .text p, #container1 .text div{
    width: auto;
  }
  canvas{
    left: 50%;
  }
  #oripeaux .text{
    display: flex;
    flex-direction: column;
    width : 86%;
    margin-right: 5%;
    margin-right: 5%;
    padding: 2%;
    text-align: justify;
    height: min-content;
    background-color: rgba(17,17,17, 0.5);
    box-shadow: 1px 0px 10px rgba(17,17,17, 0.5);
    border-radius: 25px;
    font-weight: bold;
    z-index: 500;
  }
}
@media (max-width: 900px) {
  #praesidium .smartphone {
    display: flex;
  }
  #praesidium .bigScreen {
    display: none;
  }
  #symboles{
    background-image: none;
  }
}
@media (max-width: 725px) {
  
  #symboles{
    background-image: none;
  }#symboles{
    background-image: none;
  }
  #blasonMobileImage{
    margin: 30px 0;
    display: flex;
  }
  #symboles p {
    width: 75%;
  }
  #symboles p.smartphone {
    display: block;
  }
  #symboles p.bigScreen {
    display: none;
  }
  #symboles .infosUp div, #symboles .infosBottom div{
    min-width: 100%;
    height: auto;
    display:flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
  }
  #symboles .infosBottom div{
    flex-direction: column-reverse;
  }

  #symboles .infosUp div p, #symboles .infosBottom div p{
    margin-bottom: 25px;
    min-height: 0;
  }
}
