/* ═══════════════════════════════════════════════════════════════
   BASE.CSS — chargé sur TOUTES les pages du site (20/20)
   Contient uniquement ce qui est réellement commun partout :
   reset, polices, en-tête/navigation (+ menu mobile), footer,
   et petits utilitaires d'accessibilité (skip-link, visually-hidden).

   Les styles propres à un seul type de page vivent dans leur propre
   fichier : hero.css, regions.css, events.css, content-page.css,
   index-map.css, error-page.css (voir le <head> de chaque page).
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

/* ───── Réinitialisation ───── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
}

/* ───── Polices ───── */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* ───── Liens (par défaut blancs : pensés pour l'en-tête brun) ───── */
a:link {
  color: white;
  text-decoration: none;
}

a:visited {
  color: white;
}

a:active {
  color: black;
}

/* ───── En-tête / navigation ───── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #daaa67;
  padding: 10px 80px;
  box-sizing: border-box;
  box-shadow: 0px 3px 10px -2px #573e23;
  overflow: visible; /* permet à l'image de dépasser */
  z-index: 1500;
  transition: all 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
  white-space: nowrap;
  margin-left: auto;
}

.nav-bar a {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.nav-bar a.active {
  font-weight: 700;
  border-bottom: 2px solid #573e23;
  padding-bottom: 4px;
}

.nav-bar img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: -40px; /* pousse l'image vers le bas pour qu'elle dépasse */
}

/* Menu mobile (hamburger) — présent uniquement sur les pages de zones,
   mais défini ici pour n'avoir qu'une seule source de vérité. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #573e23;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  header {
    padding: 10px 20px;
  }

  .nav-bar {
    position: relative;
    justify-content: space-between;
  }

  .nav-bar img {
    height: 70px;
    margin-bottom: -20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #daaa67;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 480px;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-bar a.active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ───── Utilitaires d'accessibilité ───── */

/* Masque visuellement un élément tout en le gardant accessible aux lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #573e23;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 3000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER — présent sur toutes les pages
   ══════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 1;
  background: #573e23;
  color: #f0e3c8;
  padding: 56px 40px 0;
  overflow: hidden;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(240, 227, 200, 0.2);
}

.footer-brand {
  flex: 1 1 260px;
  max-width: 320px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: "Merriweather", serif;
  font-size: 14px;
  line-height: 1.6;
  color: #d8c7a3;
}

.site-footer h2 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f0d9ae;
  margin-bottom: 16px;
}

.footer-nav,
.footer-contact {
  flex: 1 1 180px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a,
.footer-contact a {
  color: #f0e3c8 !important;
  font-size: 15px;
  margin-bottom: 10px;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-nav a:focus-visible,
.footer-contact a:focus-visible {
  border-bottom-color: #f0d9ae;
}

.footer-contact p {
  font-family: "Merriweather", serif;
  font-size: 14px;
  color: #d8c7a3;
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #c9b593;
}

.footer-bottom a {
  color: #f0d9ae !important;
}

@media (max-width: 700px) {
  .site-footer {
    padding: 40px 20px 0;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav a,
  .footer-contact a {
    margin-left: auto;
    margin-right: auto;
  }
}
