@font-face {
  font-family: 'Hublot';
  src: url('fonts/Hublot-Regular.woff2') format('woff2'),
       url('fonts/Hublot-Regular.woff') format('woff'),
       url('fonts/Hublot-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*
@font-face {
  font-family: 'Hublot';
  src: url('fonts/Hublot-Medium.woff2') format('woff2'),
       url('fonts/Hublot-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hublot';
  src: url('fonts/Hublot-Bold.woff2') format('woff2'),
       url('fonts/Hublot-Bold.woff') format('woff'),
       url('fonts/Hublot-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
  */


@font-face {
  font-family: 'Hublot Display';
  src: url('fonts/Hublot-Display.woff2') format('woff2'),
       url('fonts/Hublot-Display.woff') format('woff'),
       url('fonts/Hublot-Display.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;

  font-family: 'Hublot', sans-serif;
}

canvas {
  display: block;
}

main {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

#canvas {
  width: 40%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ececec;
  padding:20px;
  box-sizing: border-box;
  position: relative;
}

#canvas canvas {
  height: 80vh !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

#interface {
  width: 60%;
    display: flex;
    justify-content: center;
}

h1 {margin-bottom: 50px; font-family: 'Hublot Display', sans-serif;}

h2 {
  font-family: 'Hublot Display', sans-serif;
  color: #333;
  margin: 0;
  font-weight: normal;
}

button {
  font-family: 'Hublot', sans-serif;
  font-weight: bold;
}

.groupeImage {
  padding-top: 10px;
  width: 75%;
  margin-bottom: 10px;
}
.groupeImage img {
  width: calc(25% - 15px);
}

.groupeCouleur {
  flex-wrap: wrap;
  width: 25%;
  align-items: center;
  gap: 5px;
  display: flex;
  align-content: center;
}

.groupeCouleur div {
  margin: 0;
  flex: 0 0 auto;
}

.choixImageEtCouleur {
  display: flex;
  border-top: 1px solid #000;
}

.choixImageEtCouleur:last-child {
  margin-bottom: 0;
}

.active {
  border: 2px solid #000 !important;
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.textePhase {
  font-size: 16px;
  margin-bottom: 15px;
  padding-right:30px;
}

button {
  padding: 10px 20px;
    background-color: transparent;
    color: black;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid black;
    font-family: 'Hublot Display', sans-serif;
    font-size:16px;
}

button:hover {
    background-color: black;
    color: white;
}

.texteMobile {
  display: none;
}

@media (max-width: 800px) {
  #canvas {
    width: 100%;
  }
  #main {flex-wrap:wrap;}
  #interface {width: 100%;}
  #canvas {width: 100%; height:80vh;}
  #canvas canvas {height: 80% !important;}
  
  .texteDesktop {
    display: none;
  }
  .texteMobile {
    display: block;
  }

  #main {flex-wrap:wrap;}
}

@media (max-width: 650px) {
  main {flex-wrap:wrap;}
  #interface {width: 100% !important;}
  #canvas {width: 100% !important; height:auto !important;}
  #canvas canvas {
    height: 60vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    }
  #interface > div {margin-left: 0 !important;}
  #interface h1 {font-size: 35px !important;}
  #interface .textePhase {font-size: 14px !important;}
  #interface h1 {display: none;}
}