html {
  /* scroll-behavior: smooth; */
}

body {
  margin: 0;
  padding: 0;
  background-position: center;
  background-color: #aaa;
  font-family: "PT Sans", sans-serif;
  font-size: small;
  font-weight: normal;
  line-height: 1.1rem;
  color: white;
  overflow-x: hidden;
}

section#main {
  min-width: 350px;
  min-height: 100vh;
  margin: 0px auto;
  background: linear-gradient(90deg, #fed400 20px, #333 20px, #555 70px);
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 500px) {
  section#main {
    background: #555;
    overflow-x: clip;
  }
}


section#header-home {
  margin: 0px 0px 0px 0px;
  padding: 10px 0px 0px 0px;
  background: linear-gradient(180deg, #222, transparent);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section#header-home a {
  margin-left: 20px;
  animation: header-home-animate;
  animation-duration: 1.0s;
  animation-timing-function: ease-out;
  transition-duration: 300ms;
}
@media screen and (max-width: 500px) {
  section#header-home a {
    margin-left: 0px;
  }
}
@keyframes header-home-animate {
  0%   {transform: perspective(1000px) translate3d(0px, -75px, 0px) rotateX(75deg) scaleX(0.5);}
  100% {transform: perspective(1000px) translate3d(0px,   0px, 0px) rotateX( 0deg) scaleX(1.0);}
}

section#header-home a:hover {
  transform: scale(1.05);
}

section#header-home img {
  width: 100%;
}


section#header {
  margin: 0px 0px 0px 0px;
  padding: 10px 0px 0px 0px;
  background: linear-gradient(180deg, #222, transparent);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section#header a {
  transition-duration: 300ms;
  margin-left: 20px;
}
@media screen and (max-width: 500px) {
  section#header a {
    margin-left: 0px;
  }
}
section#header a:hover {
  transform: scale(1.05);
}

section#header img {
  width: 100%;
}


section#picto-animate-home {
  margin-top: -50px;
  width: 100px;
  z-index: 10;
  animation-name: picto-animate-home;
  animation-duration: 1s;
  transform-origin: 50% 80%;
  pointer-events: none;
}
@media screen and (max-width: 700px) {
  section#picto-animate-home {
    margin-top: -20px;
    width: 70px;
  }
}
@keyframes picto-animate-home {
  0%   {transform: scale(0.0) rotate(  0deg); }
  55%  {transform: scale(1.0) rotate(  0deg); }
  70%  {transform: scale(1.0) rotate(-15deg); }
  85%  {transform: scale(1.0) rotate( 15deg); }
  100% {transform: scale(1.0) rotate(  0deg); }
}


section#picto-animate-other {
  margin-top: -50px;
  width: 100px;
  z-index: 10;
  animation-name: picto-animate-other;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  transform-origin: 50% 80%;
  pointer-events: none;
}
@media screen and (max-width: 700px) {
  section#picto-animate-other {
    margin-top: -20px;
    width: 70px;
  }
}
@keyframes picto-animate-other {
  0%   {transform: rotate(  0deg); }
  27%  {transform: rotate(  0deg); }
  35%  {transform: rotate(-15deg); }
  42%  {transform: rotate( 15deg); }
  50%  {transform: rotate(  0deg); }
  100% {transform: rotate(  0deg); }
}

/********************************************/

nav#menu {
  min-height: 32px;
  align-self: center;
  margin: -10px 0px 0px 20px;
  padding: 0px 10px 0px 10px;
  background-color: #666;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  box-shadow: 0px 15px 20px 5px #0008;
}
@media screen and (max-width: 900px) {
  nav#menu {
    border-radius: 0px;
    box-shadow: 0px 10px 10px 0px #0008;
  }
}
@media screen and (max-width: 500px) {
  nav#menu {
    margin: -10px 0px 0px 0px;
    padding: 5px 0px 0px 0px;
    background: linear-gradient(180deg, #fed400 0px 5px, #666 5px);
    border-radius: 0px;
    box-shadow: 0px 10px 10px 0px #0008;
  }
}

nav#menu ul {
  position: relative;
  margin: 0px;
  padding: 0px 60px;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
}
@media screen and (max-width: 500px) {
  nav#menu ul {
    padding: 0px 50px;
  }
}

nav#menu li {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 300ms;
}

nav#menu li a img#eyes {
  margin: -11px -6px -9px -6px;
  width: 30px;
  height: 30px;
}

nav#menu li#bricks {
  position: absolute;
  top: 0px;
  left: 0px;
}

nav#menu li#floatbutton {
  position: absolute;
  top: 0px;
  right: 0px;
}

nav#menu li#bricks:hover {
  background-color: #999;
}

nav#menu li#floatbutton:hover {
  background-color: #999;
}

nav#menu li#sel {
  background-color: #222;
}

nav#menu li#sel-eyes {
  background-color: #ffd500;
}

nav#menu li#sel:hover {
  background-color: #444;
}

nav#menu li:hover {
  background-color: #444;
}

nav#menu a {
  padding: 11px 14px 9px 14px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
}

nav#menu img {
  height: 16px;
}

nav#menu li#bricks a img {
  margin: -3px 0px;
  height: 24px;
}

nav#menu li#floatbutton a img {
  margin: -3px 0px;
  height: 24px;
}

/********************************************/

section#submenu-right-band {
  position: fixed;
  top: 0px;
  bottom: 0px;
  right: 0px;
  z-index: 9;
  display: flex;
  pointer-events: none;
}

nav#submenu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  background: linear-gradient(270deg, #aa8800 10%, #ffd500);
  border-color: #000;
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-right-width: 0px;
  float: left;
  border-radius: 5px 0px 0px 5px;
  box-shadow: 5px 0px 20px 10px #000c;
  pointer-events: all;
  animation: submenu-animate;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}
@media screen and (max-width: 500px) {
  nav#submenu {
    margin: 0px -1px 10px -1px;
  }
}
@keyframes submenu-animate {
  0%   {transform: translateX(40px);}
  100% {transform: translateX( 0px);}
}

nav#submenu ul {
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

nav#submenu li {
  float: left;
  list-style-type: none;
  display: flex;
}

nav#submenu li#up {
  display: flex;
  padding: 0px;
}

nav#submenu li {
  width: 39px;
  height: 12px;
  padding: 4px 0px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition-duration: 300ms;
}

nav#submenu li:hover {
  background-color: #ddd;
}
@media (hover: none) {
  nav#submenu li:hover{
    background-color: transparent;
  }
}
@media (pointer: coarse) {
  nav#submenu li:hover{
    background-color: transparent;
  }
}

nav#submenu li section#submenu-bullet {
  width: 12px;
  height: 12px;
  align-self: center;
  border-radius: 12px;
  border: solid 1px #000;
}

nav#submenu li#buttonEyes {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 5px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

nav#submenu li#buttonHome {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 0px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform-origin: top;
  transform: scaleY(0);
  transition-duration: 300ms;
}

nav#submenu li#buttonSize {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 0px 0px 0px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition-duration: 300ms;
}

nav#submenu li#buttonPrev {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 5px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform-origin: bottom;
  transform: scaleY(0);
  transition-duration: 300ms;
}

nav#submenu li#buttonNext {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 0px 0px 0px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: top;
  transform: scaleY(0);
  cursor: pointer;
  transition-duration: 300ms;
}

nav#submenu img {
  width: calc(100% - 10px);
}

/********************************************/


p {
  margin: 0px;
}


section#subtitle {
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #ffd500;
}

section#subtitle-left {
  margin-left: 10px;
  padding-left: 40px;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #ffd500;
}

section#subtitle-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 20px 0px;
  padding: 0px;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #ffd500;
}

section#links-image {
  max-Width: 686px;
  display: flex;
  flex-direction: row;
  margin: 20px 0px 20px 20px;
  align-self: center;
}
@media screen and (max-width: 500px) {
  section#links-image {
    margin: 20px 0px 20px 0px;
  }
}

section#page {
  transform-origin: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 0px 10px 0px 30px;
}
@media screen and (max-width: 500px) {
  section#page {
    margin: 0px 10px 0px 10px;
  }
}


section#contact-image {
  margin: 10px 0px;
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #eee;
}

section#contact-image img {
  width: 100%;
  max-width: 400px;
}


section#bilingual-title {
  max-width: 840px;
  width: calc(100% - 20px);
  margin: 30px 0px 0px 20px;
  display: flex;
  flex-grow: 1;
  align-self: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
}
@media screen and (max-width: 500px) {
  section#bilingual-title {
    margin: 30px 0px 0px 0px;
  }
}

section#bilingual-title p:nth-child(odd) {
  margin-left: 10px;
  flex-grow: 1;
  flex-basis: 0;
}

section#bilingual-title p:nth-child(even) {
  margin-right: 10px;
  flex-grow: 1;
  flex-basis: 0;
  font-style: italic;
  text-align: right;
}

section#bilingual-title a {
  color: #ffd500;
  text-decoration: none;
  transition-duration: 300ms;
}

section#bilingual-title a:hover {
  text-decoration: underline;
}


section#samples-line {
  max-width: calc(100% - 10px);
  margin: 15px 0px;
  display: flex;
  flex-direction: row;
  align-self: center;
  border-radius: 4px;
  background-color: #666;
  box-shadow: 0px 0px 20px #333;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#samples-line:hover {
  box-shadow: 0px 20px 20px #222;
  background-color: #ffd500;
  transform: perspective(1000px) translate3d(0px, 0px, 0px) rotateX(10deg) rotateY(0deg) scale(1.03) ;
}

section#samples-line a {
  height: 180px;
  padding: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 50px 0px;
  justify-content: center;
  overflow: hidden;
}
@media screen and (max-width: 500px) {
  section#samples-line a {
    height: 152px;
  }
}

section#samples-line img {
  width: 120px;
  height: 170px;
  margin: 5px;
  text-align: center;
  padding: 0px;
  box-shadow: 0px 5px 15px #444;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}
@media screen and (max-width: 500px) {
  section#samples-line img {
    width: 100px;
    height: 142px;
  }
}


section#samples {
  margin-left: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 500px) {
  section#samples {
    margin-left: 0px;
  }
}

section#samples a {
  display: flex;
  justify-content: center;
}

section#samples img {
  max-width: 800px;
  width: calc(100% - 20px);
  margin: 10px 0px;
  text-align: center;
  padding: 4px;
  box-shadow: 0px 10px 15px #333;
  background: linear-gradient(180deg, transparent, #333 20%);
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#samples a img:hover {
  background: #ffd500;
  transform: scale(1.05);
}


section#samples-big {
  position: relative;
  width: calc(100% - 40px);
  margin: 10px 10px 10px 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 500px) {
  section#samples-big {
    width: calc(100% - 20px);
    margin: 10px 10px 10px 10px;
  }
}

section#samples-big img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  flex-basis: 0;
  object-fit: contain;
  box-shadow: 0px 20px 30px #333;
}


button#arrow-left {
  position: absolute;
  left: 0px;
  width: 10vw;
  height: 10vw;
  max-width: 100px;
  max-height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
  border: none;
  border-radius: 50px;
  background-color: #222;
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: 0px 0px 0px 2px #aaa;
  cursor: pointer;
  transition-property: transform;
  transition-duration: 300ms;
}

button#arrow-right {
  position: absolute;
  right: 0px;
  width: 10vw;
  height: 10vw;
  max-width: 100px;
  max-height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
  border: none;
  border-radius: 50px;
  background-color: #222;
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: 0px 0px 0px 2px #aaa;
  cursor: pointer;
  transition-property: transform;
  transition-duration: 300ms;
}

button#arrow-left:hover {
  transform: scale(1.1);
}

button#arrow-right:hover {
  transform: scale(1.1);
}

div#left-triangle {
  position: absolute;
  top: calc(50% - 50px);
  width: 0px;
  height: 0px;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 24px solid transparent;
  border-right: 24px solid #eee;
}

div#right-triangle {
  position: absolute;
  top: calc(50% - 50px);
  width: 0px;
  height: 0px;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-right: 24px solid transparent;
  border-left: 24px solid #eee;
}

/********************************************/

section#samples-mix {
  position: relative;
  width: calc(100% - 40px);
  margin: 30px 10px 10px 30px;
}
@media screen and (max-width: 500px) {
  section#samples-mix {
    width: 100%;
    margin: 20px 0px 10px 0px;
  }
}

section#samples-mix section { /* sample-id */
  position: absolute;
  display: flex;
  justify-content: center;
}

section#samples-mix section section { /* anchor-id */
  position: absolute;
}

section#samples-mix section img {
  display: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0px 0px 30px 0px #000;
}

@keyframes keys-animate {
  0%   {opacity: 0; transform: scale(0.95);}
  20%  {opacity: 1; transform: scale(1.0);}
  90%  {opacity: 1; transform: scale(1.0);}
  100% {opacity: 0; transform: scale(0.95);}
}

section#samples-mix section#key-english {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  justify-content: flex-start;
  text-align: left;
  color: #222;
}

section#samples-mix section#key-french {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  justify-content: flex-end;
  text-align: right;
  color: #222;
  font-style: italic;
}

/********************************************/

section#body {
  width: 100%;
  max-width: 820px;
  margin: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-self: center;
}

section#body-center {
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

section#body-center a {
  text-decoration: none;
}

section#body-shift {
  margin-top: 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

section#body p {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

section#body p:nth-child(even) {
  font-style: italic;
  text-align: right;
}

section#body li {
  list-style-type: none;
}

section#body a {
  color: #ffd500;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: 300ms;
}

section#body a:hover {
  background-color: #222;
  border-radius: 5px;
  padding: 2px 5px;
  margin: -2px -5px;
}

/********************************************/

section#tiles {
  width: calc(100% - 40px);
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
  margin: 30px 0px 30px 20px;
  justify-content: center;
}
@media screen and (max-width: 500px) {
  section#tiles {
    margin: 30px 0px 30px 0px;
  }
}

section#tiles a {
  color: #bbb;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  transition-property: color;
  transition-duration: 300ms;
}

section#tiles a:hover {
  color: #ffd500;
}

section#tile {
  padding: 15px;
  background-color: #2a2a2a;
  border-color: transparent;
  border-style: solid;
  border-width: 5px;
  border-radius: 5px;
  box-sizing: border-box;
  position: relative;
  width: 402px;
  align-content: center;
  transition-property: background-color, border-color;
  transition-duration: 300ms;
}

section#tile:hover {
  background-color: #222;
  border-color: #ffd500;
}

section#more {
  position: absolute;
  right: 0px;
  bottom: -6px;
}

section#more a {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  background-color: #333;
  border-radius: 2px;
  position: relative;
}

section#more a:hover {
  background-color: #ffd500;
  transition-property: background-color;
  transition-duration: 300ms;
}

/********************************************/

section#blupi-pointer{
  position: sticky;
  bottom: 0px;
  left: 0px;
  transform-origin: bottom;
  animation-name: blupi-pointer-animate;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@media screen and (max-width: 800px) {
  section#blupi-pointer {
    animation-name: blupi-pointer-narrow-animate;
  }
}
@keyframes blupi-pointer-animate {
  0%   {transform: translate(-40px, 8px);}
  50%  {transform: translate(-40px, 8px);}
  70%  {transform: translate(-10px, 8px);}
  73%  {transform: translate(-10px, 0px);}
  75%  {transform: translate(-10px, 8px);}
  100% {transform: translate(-40px, 8px);}
}
@keyframes blupi-pointer-narrow-animate {
  0%   {transform: translate(-50px, 8px);}
  50%  {transform: translate(-50px, 8px);}
  70%  {transform: translate(-30px, 8px);}
  73%  {transform: translate(-30px, 0px);}
  75%  {transform: translate(-30px, 8px);}
  100% {transform: translate(-50px, 8px);}
}

/********************************************/

footer {
  height: 70px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px 30px 0px 50px;
  background-color: #222222;
}

@media screen and (max-width: 800px) {
  footer {
    padding: 0px 10px 0px 20px;
  }
}

footer p {
  flex-grow: 1;
  flex-basis: 0;
  color: #888;
}

footer ul {
  margin: 0px;
  padding: 0px;
}

footer li {
  height: 14px;
  float: left;
  list-style-type: none;
  margin: 0px;
  padding: 10px 15px 10px 15px;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  transition-property: background-color;
  transition-duration: 300ms;
}
@media screen and (max-width: 500px) {
  footer li {
    padding: 10px 8px 10px 8px;
  }
}

footer li#sel {
  background-color: #666;
}

footer li#sel:hover {
  background-color: #444;
}

footer li:hover {
  background-color: #444;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}