/* ===== Polices ===== */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #121212;
  color: #ddd;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Conteneur centralisé et cadre réduit ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1em;
}

/* ===== Bannière ===== */
.banner {
  background: url('img/dark-street.jpg') no-repeat center center/cover;
  padding: 3.5rem 1rem 4rem 1rem;
  color: #eee;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  user-select: none;
}

/* ===== Menu sticky ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: #181818;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
  z-index: 1000;
  user-select: none;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1em;
}

nav {
  position: sticky;
  top: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  z-index: 1000;
}

nav img.logo {
  height: 100px;
  margin-bottom: 0.8rem;
}

nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Menu burger input caché */
.nav-toggle {
  display: none;
}

/* Burger lines */
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
}

/* Menu ul */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu li {
  margin-left: 1.8rem;
}

.nav-menu a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #6de0f7;
  outline: none;
}

/* ===== LEAFLET MAP ===== */
#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}


/* ===== Responsive menu burger ===== */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #181818;
    height: calc(100vh - 60px);
    width: 70%;
    max-width: 300px;
    flex-direction: column;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -3px 0 7px rgba(0,0,0,0.7);
  }

  .nav-menu li {
    margin: 1.5rem 0;
    text-align: right;
    margin-right: 1.5rem;
  }

  .nav-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }
}

/* ===== Main contenu ===== */
.main-content {
  padding: 2rem 0 4rem 0;
}

/* Sections avec images en cercle et espacements */
section {
  margin-bottom: 2rem;
  border-radius: 8px;
}

/* Titres */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #eee;
  margin-top: 0;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

/* Paragraphes et listes */
p, ul {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1em;
}

ul {
  padding-left: 1.4em;
}

ul li {
  margin-bottom: 0.4em;
}

a {
  color: #6de0f7;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Images en cercle */
section img {
  display: block;
  max-width: 150px;
  max-height: 150px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #444;
  box-shadow: 0 0 8px #333;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  color: #ddd;
}

thead th {
  border-bottom: 2px solid #555;
  padding: 0.8em;
  text-align: left;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #eee;
}

tbody td {
  border-bottom: 1px solid #444;
  padding: 0.6em 0.8em;
}

/* Footer */
footer {
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 2em 1em;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  user-select: none;
}

/* Responsive text and layout */
@media (max-width: 480px) {
  .banner h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  section img {
    max-width: 110px;
    max-height: 110px;
  }
}
