@media (prefers-color-scheme: dark) {
  html {
    background-color: #fff !important;
    color-scheme: only light;
  }

  body, body * {
    background: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
  }
}
  html,
  body {
    min-height: 100vh;
    font-family: "Sora";
    background: var(--bg-base);
    color: var(--text-color);
    scroll-behavior: smooth;
    scrollbar-color: #f1a541 transparent;
    scrollbar-width: thin;
  }

/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
*{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  body{
    background: url('../img/404.jpeg') center center fixed no-repeat;
    padding: 0;
    margin: 0;
  }
  #pagenotfound{
    position: relative;
    height: 100vh;
  }
  #pagenotfound .pagenotfound{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
  }
  /* Ajout de l'effet quadrillage */
  .JUG-exposition::before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 254, 254, 0.030) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 251, 251, 0.030) 1px, transparent 1px);
    background-size: 20px 20px; /* Taille des carrés */
    opacity: 0.7; /* Effet subtil */
    z-index: 1;
  }

  .pagenotfound{
    max-width: 410px;
    width: 100%;
    text-align: center;
  }
  .pagenotfound .notfound404{
    height: 280px;
    position: relative;
    z-index: -1;
  }
  .pagenotfound .notfound404 h1{
    font-size: 230px;
    margin: 0px;
    font-weight: 900;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background: url('../img/404_2.jpeg') no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color:transparent;
    background-size: cover;
    background-position: center;
    font-family: 'Poppins', sans-serif;
  }
  .pagenotfound h2{
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
  }
  .pagenotfound p{
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: 15px;
    padding: 30px 0;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 0px;
  }
  .pagenotfound a{
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #d19a75;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
  }
  
  .pagenotfound a:hover{
    background-color: #fff;
    color: #d19a75;
    border: 1px solid #d19a75;
  }
  
  @media only screen and (max-width:768px){
    .pagenotfound .notfound404 {
        height: 200px;
    }
    .pagenotfound .notfound404 h1{
        font-size: 150px;
    }
    .pagenotfound p{
        font-size: 14px;
    }
  }
  @media only screen and (max-width:900px){
  
    .pagenotfound .notfound404 {
        height: 150px;
    }
    .pagenotfound .notfound404 h1{
        font-size: 95px;
    }
    .pagenotfound p{
        font-size: 18px;
    }
  }