@import url('https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:400,600');

* {
  outline: none;
}

strong {
  font-weight: 600;
}

div#logo {

background-image: url(../allbts/optimoilogo318x70.png);
background-repeat: no-repeat;
width: 318px;
height: 70px;
padding: 0;
position: relative;
top: 0px;
}

.page {
  width: 100%;
  height: 100vh;
  background: #fdfdfd;
  font-family: 'Encode Sans Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  color: #212121;
  background-color: #000000; /* couleur du fond pages ffffff origine */
}

header {
  display: flex;
  position: fixed;
  z-index:1;
  width: 100%;
  height: 70px;
  background: #000000;
  color: #000000;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  background-color: #000000;
}

main {
  padding: 70px 20px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

main > div {
  margin: auto;
  max-width: 600px;
}

main h2 span {
  color: #E9B64D;
}

main p {
  line-height: 1.5;
  font-weight: 200;
  margin: 20px 0;
}

main small {
  font-weight: 300;
  color: #888;
}

#nav-container {
  position: fixed;
  z-index:1;
  height: 100vh;
  width: 100%;
  pointer-events: none;
}

#nav-container .bg {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  visibility: hidden;
  opacity: 0;
  transition: .3s;
  background: #FFF;
}

#nav-container:focus-within .bg {
  visibility: visible;
  opacity: 0; /* a 0 vire le carré gris moche quand menu ouvert */
}

#nav-container * {
  visibility: visible;
}

.button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  border-radius: 0;
  height: 70px;
  width: 30px;
  cursor: pointer;
  pointer-events: auto;
  margin-left: 25px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.icon-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #aaa;
  transition: .3s;
}

.icon-bar + .icon-bar {
  margin-top: 5px;
}

#nav-container:focus-within .button {
  pointer-events: none;
}

#nav-container:focus-within .icon-bar:nth-of-type(1) {
  transform: translate3d(0,8px,0) rotate(45deg);
}

#nav-container:focus-within .icon-bar:nth-of-type(2) {
  opacity: 0;
}

#nav-container:focus-within .icon-bar:nth-of-type(3) {
  transform: translate3d(0,-8px,0) rotate(-45deg);
}

#nav-content {
  margin-top: 70px;
  padding: 20px;
  width: 65%;
  max-width: 225px; /* largeur exterieur du menu */
  position: absolute;
  top: 0;
  left: 0;
  height: calc(100% - 70px);
  background: #000000; /* couleur du fond ececec origine */
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  transform: translateX(-100%);
  transition: transform .3s;
  will-change: transform;
  contain: paint;
  overflow-y: scroll; /* scollbar dans le menu */
}

#btnavo0a {
position:relative;
height:47px;
width:180px;
background:url("../allbts/btabout.png") 0 0 no-repeat;
display: block;
margin: 0 auto;

}

#btnavo0b {
position:relative;
height:47px;
width:180px;
background:url("../allbts/btcontact.png") 0 0 no-repeat;
display: block;
margin: 0 auto;

}

#btnavo01 {
position:relative;
height:456px;
width:178px;
background:url("../allbts/1-45.png") 0 0 no-repeat;

}

#btnavo02 {
position:relative;
height:456px;
width:178px;
background:url("../allbts/46-90.png") 0 0 no-repeat;

}

#nav-content ul {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nav-content li a {
  padding: 10px 5px;
  display: block;
  text-transform: uppercase;
  transition: color .1s;
}

#nav-content li a:hover {
  color: #E9B64D;
}

#nav-content li:not(.small) + .small {
  margin-top: auto;
}

.small {
  display: flex;
  align-self: center;
}

.small a {
  font-size: 12px;
  font-weight: 400;
  color: #888;
}

.small a + a {
  margin-left: 15px;
}

#nav-container:focus-within #nav-content {
  transform: none;
}

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

html, body {
  height: 100%;
}

a,
a:visited,
a:focus,
a:active,
a:link {
  text-decoration: none;
  outline: 0;
}

a {
  color: currentColor;
  transition: .2s ease-in-out;
}

h1, h2, h3, h4 {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.img {
  vertical-align: middle;
  height: auto;
  width: 100%;
}

.polar {
    width: 618px;
}

@media (max-width: 620px) {
    .polar {
        width: 100%;
}
}

.diapodiapo {
width: 380px;
}

@media (max-width: 382px) {
.diapodiapo {
width: 100%;
}
}

.bio {
color: #E9B64D;
font-size: clamp(1rem, 2vw, 1rem);
}

.bio2 {
color: #E9B64D;
font-size: clamp(1rem, 2vw, 1rem);
}

.imgbio1 {
    width: 267px;
    height: 334px;
}

.imgbio2 {
    width: 267px;
    height: 334px;
}

.maj {
position: relative;
width: 29px;
height: 32px;
margin-right: 23px;
}

.maj2 {
margin-right: 23px;
}

.matos {
    width: 779px;
}

@media (max-width: 780px) {
    .matos {
        width: 100%;
}
}

#menu-accordeon {
  padding:0;
  margin:0;
  list-style:none;
  text-align: center;
  width: 180px; /* largeur interieur du menu */
}
#menu-accordeon ul {
  padding:0;
  margin:0;
  list-style:none;
  text-align: center;
}
#menu-accordeon li {
   background-color:#444; /* couleur je ne sais pas a quoi ça sert */
   background-image:-webkit-linear-gradient(top, #444 0%, #444 100%); /* couleur et forme bouton du menu */
   background-image: linear-gradient(to bottom, #444 0%, #444 100%); /* couleur et forme bouton du menu */
   border-radius: 6px;
   margin-bottom:2px; /* espace entre les bouton du menu */
   box-shadow: 3px 3px 3px #999; /* couleur ombre droite autour du menu */
   border:solid 1px #999; /* couleur ombre gauche autour du menu */
}
#menu-accordeon li li {
   max-height:0;
   overflow: hidden;
   transition: all .5s;
   border-radius:0;
   background: #444; /* couleur over interieur liens titre du menu */
   box-shadow: none;
   border:none;
   margin:0
}
#menu-accordeon a {
  display:block;
  text-decoration: none;
  color: #E9B64D; /* couleur txt du menu */
  padding: 8px 0;
  font-family: verdana; /* ttf txt du menu */
  font-size:14px; /* taille ttf du menu */
}
#menu-accordeon ul li a, #menu-accordeon li:hover li a {
  font-size:1em
}
#menu-accordeon li:hover {
   background: #4E4E4E; /* couleur over exterieur du menu */
}
#menu-accordeon li li:hover {
   background: #444; /* couleur over interieur du menu */
}
#menu-accordeon ul li:last-child {
   border-radius: 0 0 6px 6px;
   border:none;
}
#menu-accordeon li:hover li {
  max-height: 41em; /* hauteur interieur du menu */
}

nav-content {
scrollbar-color: #aaa transparent;
scrollbar-width: thin;
}
div::-webkit-scrollbar {
width: 8px;
}
div::-webkit-scrollbar-thumb {
background: #aaa;
border-radius: 8px;
}
