@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto+Slab:wght@100..900&display=swap');


/*The MIT License (MIT)
Copyright (c) 2025 Erik Terwan (https://codepen.io/erikterwan/pen/EVzeRP)*/

:root {
--fond-sombre:#000;
--fond-clair: #fff;
--fond-footer-haut:#000;
--fond-footer-bas:#5B5B66;
--police-page-claire:#fff; 
--police-page-sombre:#553d00; 
}

*, *:after, *:before {
  box-sizing: border-box;
}
body {
  min-width: 350px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--fond-clair);
  font-family: "Avenir Next", "Avenir", sans-serif;
  --fond : #000;
}
.logo-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 75vw;
  top: 0; 
  right: 0;
  height: 100%;
  pointer-events: none;
}
.logo-menu img {
  max-height: 10vw;
}
.menuToggle {
  display: block;
  position: relative;
  top: 50px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}
.menuToggle a {
  text-decoration: none;
  color: #232323;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.menuToggle a:hover {
  color: tomato;
}
.menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  cursor: pointer;
  opacity: 0;
  /* hide this */
  z-index: 2;
  /* and place it over the hamburger */
  -webkit-touch-callout: none;
}
.menuToggle span {
  position: relative;
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: var(--police-page-sombre);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}
.menuToggle span:first-child {
  transform-origin: 0% 0%;
}
.menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

.menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}
.menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}
.menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}
.menuToggle input:checked ~ .menuItem {
  transform: none;
  opacity: .98;
}
.menuItem {
  position: absolute;
  width: 100vw;
  padding: 50px;
  padding-top: 125px;
  background: var(--fond-clair);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}
.menuItem li {
  padding: 10px 0;
  font-size: 22px;
}

.menu--right .menuToggle {
  position: fixed;
  right: 0;
}
.menu--right .menuToggle input {
  right: 50px;
}
.menu--right .menuToggle span {
  right: 50px;
}
.menu--right .menuItem {
  right: 0;
  margin: -100px 0 0 0;
  transform: translate(100%, 0);
}
.menu--right .menuItem li a:hover {
  padding-left: 5px;
}


@media (max-width:780px) {
 .logo-menu img {
  max-height: 50px;
   transform: rotate(90deg);
   position: relative;
   right: -60px;
   top: 20px;
   
}
}