* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  color: white;
  background-color: #51473d;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Empêche le défilement */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh; /* Limite la hauteur à la hauteur de la fenêtre */
}

a {
  color: #6B5D4C;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #51473d;
}

/* Header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  background-color: #fff;
  width: 100%; /* Assure la pleine largeur */
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.primary-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.primary-menu li {
  margin-left: 1rem;
}

.primary-menu li a {
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.primary-menu li a:hover {
  color: #6B5D4C;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #333;
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger:hover span {
  background-color: #6B5D4C;
}

/* Error 404 */
.error-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem; /* Réduire le padding pour éviter le dépassement */
  text-align: center;
  overflow: hidden; /* Évite tout débordement */
}

.error-code {
  font-size: 10rem;
  font-weight: 700;
  color: #6B5D4C;
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 3px 3px 0 rgba(107, 93, 76, 0.1);
}

.error-code::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #6B5D4C;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  opacity: 0.3;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #212529;
}

.error-message {
  font-size: 1.25rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 2rem; /* Légèrement réduit */
}

.error-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem; /* Légèrement réduit */
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem; /* Légèrement réduit */
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #554837;
  border-color: #554837;
}

.btn-primary:hover {
  background-color: #6B5D4C;
  border-color: #6B5D4C;
}

.btn-outline-light {
  color: #6B5D4C;
  background-color: transparent;
  border-color: #6B5D4C;
}

.btn-outline-light:hover {
  color: #fff;
  background-color: #6B5D4C;
  border-color: #6B5D4C;
}

.btn-pill {
  border-radius: 50px;
}

/* Footer - Supprimé car nous ne l'utiliserons pas dans cette page sans scroll */

.hieroglyphs {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1.5rem; /* Légèrement réduit */
  color: #6B5D4C;
  opacity: 0.7;
}

/* Media queries */
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem; /* Légèrement réduit */
  }
  
  .error-title {
    font-size: 1.8rem; /* Légèrement réduit */
  }
  
  .error-message {
    font-size: 1rem; /* Légèrement réduit */
    margin-bottom: 1.5rem;
  }
  
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 1px solid #dee2e6;
  }
  
  .primary-menu.active {
    display: flex;
  }
  
  .primary-menu li {
    margin: 0.5rem 0;
    margin-left: 0;
  }
  
  .primary-menu li a {
    padding: 0.75rem;
    font-size: 1.1rem;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}