/* --- GLOBAL --- */
body {
    
    background-image: url('../images/map_stealabrainrot.png'); 
    background-size: cover; 
    background-repeat: no-repeat;
}

/* --- NAVIGATION --- */
nav {
    background-color: #600000;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ff0000;
}

/* --- CONTAINERS --- */
.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 20px #ff0000;
}

.container-navigator {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 10px;
}

.container-navigator-admin {
    max-width: 50px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 10px;
}

.container-catalogue {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 20px #ff0000;
}

/* --- TITRES --- */
h1, h2, h3 {
    color: #ffffff;
    text-shadow: 0 0 10px #ff0000;
}

/* --- BOUTONS --- */
button {
    background-color: #ff0000;
    border: none;
    padding: 10px 23px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

/* --- PRODUITS --- */
.product {
    background-color: #1a1a1a;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px #ff0000 inset;
}

.product img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

/* --- FORMULAIRES --- */
input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0 1rem 0;
    border-radius: 5px;
    border: 1px solid #ff0000;
    background-color: #0d0d0d;
    color: #ffffff;
    box-shadow: 0 0 10px #ff0000 inset;
}

input:focus, textarea:focus {
    outline: none;
    border: 1px solid #ff6666;
    box-shadow: 0 0 15px #ff6666 inset;
}

/* --- APERCU IMAGE --- */
#previewImg {
    border-radius: 5px;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

/* --- PARAGRAPHES --- */
p {
    color: #ddd;
}

/* --- LIEN DÉCORATIF --- */
a {
    transition: 0.3s;
}

a:hover {
    color: #ff6666;
}

/* --- POP UP PARAMETRES---*/

.settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  color: white;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}


/* --- HIDDEN CLASS --- */
.hidden {
    display: none !important;
}

/* Force le masquage des vues */
#loginView.hidden,
#registerView.hidden {
    display: none !important;
}

/* Par défaut, toujours afficher loginView */
#loginView {
    display: block;
}

/* Par défaut, toujours cacher registerView */
#registerView {
    display: none;
}