/* === RESET ET GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #ccc;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 70px; /* espace pour header fixe */
}

/* === HEADER FIXE ET RESPONSIVE === */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: linear-gradient(90deg, #1c1c1c, #2a2a2a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.9);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 40px;
  z-index: 1000;
  min-height: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo {
  color: #a0a0a0;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 3px;
  user-select: none;
  text-shadow: 0 0 6px #555555cc;
  flex-shrink: 0;
  margin-right: 20px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-grow: 1;
  justify-content: flex-end;
}

nav a {
  color: #999999;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: inset 0 0 0 0 #555555;
}

nav a:hover,
nav a:focus {
  color: #f0f0f0;
  background-color: #444444;
  box-shadow: inset 0 0 8px 2px #666666;
  outline: none;
}

/* === CONTENU PRINCIPAL === */
main {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 25px 30px;
  background: #222222;
  border-radius: 10px;
  box-shadow: 0 0 20px #111111;
}

h1, h2, h3 {
  color: #bbbbbb;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 4px #333333cc;
}

p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ddd;
}

/* === LIENS DANS CONTENU === */
a {
  color: #8aa8a8;
  text-decoration: underline;
}

a:hover, a:focus {
  color: #aad0d0;
  text-decoration: none;
}

/* === ALERTES / IMPORTANT === */
.alert {
  background-color: #660000;       /* Rouge foncé */
  color: #ffdddd;                  /* Texte rouge clair */
  border-left: 6px solid #ff0000; /* Bordure rouge vif */
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  box-shadow: 0 0 12px #ff4444cc; /* Lueur rouge */
  font-weight: 700;
  font-size: 1.1rem;
}

/* === FOOTER === */
footer {
  background: #1a1a1a;
  color: #555;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 5px #111111;
  user-select: none;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  header {
    padding: 10px 20px;
  }
  .logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-right: 10px;
  }
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 0.9rem;
    padding: 5px 10px;
  }
  main {
    margin: 20px 10px 40px;
    padding: 15px;
  }
}
