@font-face {
  font-family: Poppins;
  src: url(./fonts/Poppins-Regular.ttf);
}

@font-face {
  font-family: OpenDyslexic;
  src: url(./fonts/OpenDyslexic-Regular.otf);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  outline:none;
}

.dark-mode {
  --color: #e0e0e0;
  --scroll-hover: #d9d9d9;
  --bg-color: #000000;
}
.light-mode {
  --color: #000000;
  --scroll-hover: #3f3f3f;
  --bg-color: #F0F0F0;
}
.mode-red {
  --primary-color: #ea1717;
  --secondary-color: #eaa417;
}
.mode-yellow {
  --primary-color: #eaa417;
  --secondary-color: #ea1717;
}
.mode-blue {
  --primary-color: #002faf;
  --secondary-color: #eaa417;
}
.mode-green {
  --primary-color: #119627;
  --secondary-color: #ea1717;
}
.mode-purple {
  --primary-color: #84099c;
  --secondary-color: #eaa417;
}

ul {
  list-style:none;
}
body{
  display: flex;
  flex-direction: column;
  padding: 0 35px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  width: auto;
}
body.dyslexic-font * {
  font-family: 'OpenDyslexic', sans-serif !important;
  font-size: 1.09em;
 }
.header{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5625rem;
}
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.logo a {
  margin-right: 10px;
}
.productions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5625rem;
}

.boutons {
  display: flex;
  flex-direction: row;
  margin-right: 845px;
}

.theme_red {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: #ea1717;
}

.theme_red:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.theme_yellow {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: #eaa417;
}

.theme_yellow:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.theme_blue {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  transition: 0.3s;
  background-color: #002faf;
}

.theme_blue:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.theme_green {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: #119627;
}

.theme_green:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.theme_purple {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: #84099c;
}

.theme_purple:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.mode_clair_sombre {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: var(--bg-color);
  font-size: 14px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: var(--color);
}

.mode_clair_sombre:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

.dyslexie {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: var(--bg-color);
  font-size: 15px;
  border-radius: 35px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-weight: bold;
  border: 0px solid #ff0000;
  transition: 0.3s;
  background-color: var(--color);
}

.dyslexie:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}

/* Navbar */
.navbar {  
  display:flex;
  align-items:end; 
  justify-content:space-between;
  height: 100%;
  font-size:1.1rem;
  background:var(--bg-color);
  color:var(--color);
  z-index: 1;
}
.navbar__links { 
  display:flex;
}
.navbar__link { 
  font-size: 30px;
  padding:0 20px;
}
.navbar__link > a { 
  color:var(--color);
  text-decoration:none;
}
.menu-deroulant a{
  color:var(--primary-color) !important;
  text-decoration: none;
}
.burger {
  display:none;
}

form {
  padding-top:15px;
}
form button {
  background-color: var(--bg-color);
  border: none;
  color: var(--color);
  padding: 15px 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 10px;
  cursor: pointer;
}
.cookies {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color);
  position:fixed;
  bottom: 0;
  width:100%;
  height:150px;
  z-index: 999;
}
.cookies p {
  text-align: center;
  padding:10px 20px 0 20px;
}

.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.slider input {
  display: none;
}
.myCarousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 5px;
  height: 500px;
  perspective: 1000px;
  max-height: 500px;
  width:1000px;
  overflow: hidden;
  cursor: pointer;
}
.myCarousel .item {
  width: 400px;
  height: 100%;
  border-radius: 5px;
  position: absolute;
  top: 0;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.4s, scale 0.4s, rotate 0.4s, opacity 0.4s;
  box-shadow: 0 0 10px #0000004d;
  user-select: none;
  cursor: pointer;
}

.overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  z-index: 1000;
  transition: .5s ease;
  background-color: var(--bg-color);
  cursor: default;
}

.overlay p {
  color: var(--color);
  font-size: 20px;
  opacity: 1;
  padding:0 30px;
}

.overlay h1 {
  margin-bottom: 15px;
  color: var(--color);
  opacity: 1;
  line-height: 60px;
  padding:0 30px;
  font-size: 50px;
}

.overlay a {
  border-radius: 4px;
  background-color: var(--primary-color);
  border: none;
  text-decoration: none;
  color: var(--bg-color);
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin-top: 3.125rem;
  opacity: 1;
}

.myCarousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  display: none;
  justify-content: center;
  align-items: center;
}
.dots label {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #413B52;
  margin: 7px;
  transition-duration: 0.2s;
}

#t-1:checked ~ .dots label[for="t-1"],
#t-2:checked ~ .dots label[for="t-2"],
#t-3:checked ~ .dots label[for="t-3"],
#t-4:checked ~ .dots label[for="t-4"],
#t-5:checked ~ .dots label[for="t-5"] {
  transform: scale(2);
  background-color: #fff;
}
#t-1:checked ~ .dots label[for="t-5"],
#t-1:checked ~ .dots label[for="t-2"],
#t-2:checked ~ .dots label[for="t-1"],
#t-2:checked ~ .dots label[for="t-3"],
#t-3:checked ~ .dots label[for="t-2"],
#t-3:checked ~ .dots label[for="t-4"],
#t-4:checked ~ .dots label[for="t-3"],
#t-4:checked ~ .dots label[for="t-5"],
#t-5:checked ~ .dots label[for="t-4"],
#t-5:checked ~ .dots label[for="t-1"] {
  transform: scale(1.5);
}

#t-1:checked ~ .myCarousel label[for="t-4"],
#t-2:checked ~ .myCarousel label[for="t-5"],
#t-3:checked ~ .myCarousel label[for="t-1"],
#t-4:checked ~ .myCarousel label[for="t-2"],
#t-5:checked ~ .myCarousel label[for="t-3"] {
  transform: translate3d(900px, -1000px, 0px);
  z-index: 2;
}

#t-1:checked ~ .myCarousel label[for="t-3"],
#t-2:checked ~ .myCarousel label[for="t-4"],
#t-3:checked ~ .myCarousel label[for="t-5"],
#t-4:checked ~ .myCarousel label[for="t-1"],
#t-5:checked ~ .myCarousel label[for="t-2"] {
  transform: translate3d(600px, 0, 0px);
  scale:1.6;
  rotate: 10deg;
  z-index: 2;
}
#t-1:checked ~ .myCarousel label[for="t-2"],
#t-2:checked ~ .myCarousel label[for="t-3"],
#t-3:checked ~ .myCarousel label[for="t-4"],
#t-4:checked ~ .myCarousel label[for="t-5"],
#t-5:checked ~ .myCarousel label[for="t-1"] {
  transform: translate3d(300px, 0, 0px);
  scale:1.2;
  rotate: 5deg;
  z-index: 3;
}
#t-1:checked ~ .myCarousel label[for="t-1"],
#t-2:checked ~ .myCarousel label[for="t-2"],
#t-3:checked ~ .myCarousel label[for="t-3"],
#t-4:checked ~ .myCarousel label[for="t-4"],
#t-5:checked ~ .myCarousel label[for="t-5"]{
  scale: 1;
  z-index: 4;
}
#t-1:checked ~ .myCarousel label[for="t-5"],
#t-2:checked ~ .myCarousel label[for="t-1"],
#t-3:checked ~ .myCarousel label[for="t-2"],
#t-4:checked ~ .myCarousel label[for="t-3"],
#t-5:checked ~ .myCarousel label[for="t-4"] {
  transform: translate3d(-300px, 0, 0px);
  scale:1.2;
  rotate: -5deg;
  z-index: 3;
}

#t-1:checked ~ .myCarousel label[for="t-4"],
#t-2:checked ~ .myCarousel label[for="t-5"],
#t-3:checked ~ .myCarousel label[for="t-1"],
#t-4:checked ~ .myCarousel label[for="t-2"],
#t-5:checked ~ .myCarousel label[for="t-3"] {
  transform: translate3d(-600px, 0, 0px);
  scale:1.6;
  rotate: -10deg;
  z-index: 2;
}

#t-1:checked ~ .myCarousel label[for="t-3"],
#t-2:checked ~ .myCarousel label[for="t-4"],
#t-3:checked ~ .myCarousel label[for="t-5"],
#t-4:checked ~ .myCarousel label[for="t-1"],
#t-5:checked ~ .myCarousel label[for="t-2"] {
  transform: translate3d(-900px, -1000px, 0px);
  z-index: 2;
}

footer {
  width: 100%;
  padding-top: 10px;
  text-align: center;
  color: var(--color);
}

footer div p a {
  text-decoration: none;
  color: var(--secondary-color);
}

/*********************  Small device *********************/
@media screen and (max-width:1015px) {
  /* body{
    margin-bottom: 50px;
  } */
  .navbar__links { 
    overflow:scroll;
    display:flex;
    flex-direction:column;
    width:0;
    height:100%;  
    position:absolute;
    top:0;
    right:0;     
    background:var(--bg-color);     
    transform: translateX(110%);
    transition: all .5s ease-in-out;
    padding-top: 125px;
  }
  .show-nav .navbar__links { 
    width:100vw;
    transform: translateX(0);
  } 
  .navbar__link {    
    transform: translateX(101%);
    transition: all .5s ease-in-out;
  }

  /* Toggle menu */
  .burger {
    display:block;
    position:relative;
    padding:0;
    width:45px;
    height:83px;
    border:none;
    background:transparent;
    cursor:pointer;
  }
  .show-nav .navbar__link  {        
    transform: translateX(0);    
  }   
  .navbar__link > a {
    display:block;
    padding:1rem;
    font-size:1.6rem;
    color:var(--color);  
    transition: all .4s ease-in-out;
  }
  .navbar__link > a:hover {
    padding-left:2rem;
    letter-spacing:5px;
  }
  .bar {
    display:block;
    width:35px;
    height:4px;  
    border-radius:3px;
    background:var(--color); 
    transition: all .5s ease-in-out;   
  }
  .bar::before, .bar::after {
    content:"";
    width:35px;
    height:4px;
    position:absolute; 
    left:0;  
    background:var(--color); 
    border-radius:3px;    
    transition: all .5s ease-in-out;
  }
  .bar::before {
    transform:translateY(-15px)
  }
  .bar::after {
    transform:translateY(15px)
  }
  .show-nav .bar {
    width:0;
    background:transparent;    
  }
  .show-nav .bar::before {
    transform:rotate(45deg);
  }
  .show-nav .bar::after {
    transform:rotate(-45deg);
  }
  
  /* Bonus - Animations */
  .show-nav .navbar__link {      
    transition: all 0.5s ease-out;
  } 
  .cookies {
    height:230px;
  }
  .cookies p {
    padding:10px 35px 0 35px;
  }
  .myCarousel{
    width:600px;
  }
  .container {
    display:flex;
  }
  .container:hover .overlay {
    opacity: 0.9;
  }
  
  /***************** test ******************/
  .sliderr{
    width: 100%;
    position: relative;
    display: grid;
  }
  .sliderr .slides{
    overflow-y: auto;
    max-height: 500px;
    scrollbar-width: none;
    position: absolute;
    bottom: 0px;
    width:400px;
    height: 500px;
  }
  .sliderr .slides::-webkit-scrollbar{
    display: none;
  }
  .sliderr .slides .slide{
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    padding: 10px 40px;
    color: var(--color);
    align-items: center;
    text-align: center;
    font-size: 15px;
    width:400px;
    height: auto;
    opacity: 0.8;
  }
  .slide h1 {
    margin-bottom:10px;
  }
  .sliderr a {
    border-radius: 4px;
    background-color: var(--secondary-color);
    border: none;
    text-decoration: none;
    color: var(--bg-color);
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    padding: 20px;
    width: 200px;
    transition: all 0.5s;
    margin-top: 20px;
    opacity: 1;
  }
  br{
    user-select: none;
  }
  .arrow-up {
    border: solid var(--secondary-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 6px;
    margin-top: 5px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
  }
  .menu-deroulant{
    display: flex;
    flex-direction: row;
  }
  .sous-menu {
    display: flex;
    flex-direction: column;
  }
  .sous-menu li {
    padding: 20px;
    font-size: 20px;
  }
}

/*********************  Medium device *********************/
@media screen and (min-width:1015px) {
  .navbar__link > .lign::after {
    display:block;
    content:"";
    width:0;
    height:1px;
    background: var(--primary-color);
    transition:width .4s;
  }
  .navbar__link:hover > .lign::after {
    width:100%;
  }
  
  .menu-deroulant > a:after{
    content: '❯';
    font-size: 15px;
    margin-left: 7px;
    display: inline-block;
  }
  
  .menu-deroulant:hover > a:after{
    animation: rotationFleche 0.2s linear forwards;
  }
  
  @keyframes rotationFleche {
    0% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(45deg);
    }
    100%{
      transform: rotate(90deg);
    }
  }
  
  .sous-menu {
    width: 9.375rem;
    text-align: left;
    overflow: scroll;
    max-height: 0;
    border-radius: 2px;
    z-index: 1000;
    position: fixed;
    background-color: var(--bg-color);
  }
  
  .menu-deroulant:hover > .sous-menu {
    animation: apparitionSousMenu 1s forwards;
  }
  
  @keyframes apparitionSousMenu {
    0% {
      box-shadow: 0px 3px 3px 1px #00000000;
      border-top: 3px solid #ffffff;
    }
    30% {
      box-shadow: 0px 3px 3px 1px #0000004d;
    }
    100% {
      max-height: 50em;
      border-top: 3px solid var(--secondary-color);
      box-shadow: 0px 3px 3px 1px #0000004d;
    }
  }
  
  .sous-menu > li:hover {
    background-color: var(--color);
  }
  
  .sous-menu > li > a {
    color:var(--secondary-color);
    text-decoration: none;
    align-items: center;
    font-size: 15px;
    display: flex;
    height: 50px;
    padding-left: 20px;
    width: 100%;
  }
  
  .sous-menu > li:hover > a {
    color: var(--color);
  }

  .container:hover .overlay {
    opacity: 0.9;
  }
}

@media screen and (max-width: 625px) {
  .myCarousel{
    width:350px;
  }

  #t-1:checked ~ .myCarousel label[for="t-4"],
  #t-2:checked ~ .myCarousel label[for="t-5"],
  #t-3:checked ~ .myCarousel label[for="t-1"],
  #t-4:checked ~ .myCarousel label[for="t-2"],
  #t-5:checked ~ .myCarousel label[for="t-3"] {
    opacity: 0;
  }

  #t-1:checked ~ .myCarousel label[for="t-3"],
  #t-2:checked ~ .myCarousel label[for="t-4"],
  #t-3:checked ~ .myCarousel label[for="t-5"],
  #t-4:checked ~ .myCarousel label[for="t-1"],
  #t-5:checked ~ .myCarousel label[for="t-2"]{
    opacity: 0;
  }
  #t-1:checked ~ .myCarousel label[for="t-2"],
  #t-2:checked ~ .myCarousel label[for="t-3"],
  #t-3:checked ~ .myCarousel label[for="t-4"],
  #t-4:checked ~ .myCarousel label[for="t-5"],
  #t-5:checked ~ .myCarousel label[for="t-1"] {
    z-index: 4;
    opacity: 0;
  }
  #t-1:checked ~ .myCarousel label[for="t-1"],
  #t-2:checked ~ .myCarousel label[for="t-2"],
  #t-3:checked ~ .myCarousel label[for="t-3"],
  #t-4:checked ~ .myCarousel label[for="t-4"],
  #t-5:checked ~ .myCarousel label[for="t-5"] {
    z-index: 3;
    opacity: 1;
  }
  #t-1:checked ~ .myCarousel label[for="t-5"],
  #t-2:checked ~ .myCarousel label[for="t-1"],
  #t-3:checked ~ .myCarousel label[for="t-2"],
  #t-4:checked ~ .myCarousel label[for="t-3"],
  #t-5:checked ~ .myCarousel label[for="t-4"]{
    z-index: 4;
    opacity: 0;
  }

  #t-1:checked ~ .myCarousel label[for="t-4"],
  #t-2:checked ~ .myCarousel label[for="t-5"],
  #t-3:checked ~ .myCarousel label[for="t-1"],
  #t-4:checked ~ .myCarousel label[for="t-2"],
  #t-5:checked ~ .myCarousel label[for="t-3"] {
    opacity: 0;
  }

  #t-1:checked ~ .myCarousel label[for="t-3"],
  #t-2:checked ~ .myCarousel label[for="t-4"],
  #t-3:checked ~ .myCarousel label[for="t-5"],
  #t-4:checked ~ .myCarousel label[for="t-1"],
  #t-5:checked ~ .myCarousel label[for="t-2"] {
    opacity: 0;
  }
  .dots label {
    margin-top:10px;
  }
}