/* Styles globaux partagés entre toutes les pages */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header et Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-img {
  height: 80px;
  width: auto;
}

nav {
  padding: 8px 2rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: opacity 0.3s;
  font-size: 1.3rem;
}

.nav-links a:hover {
  opacity: 0.8;
  color: #8b0000;
}

/* Menu Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #8b0000;
  transition: all 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer */
footer,
.footer {
  background: #2d2d2d;
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}

.footer p {
  margin-bottom: 1.2rem;
}

.footer-credit {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

.footer-logo {
  height: 40px;
  vertical-align: middle;
}

/* Titres génériques */
h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #8b0000;
  text-align: center;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav {
    padding: 8px 1rem;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 86px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  h2 {
    font-size: 2rem;
  }
}
