/* ═══════════════════════════════════════════════════════
   STYLE.CSS — chargé uniquement par index.html
   Fichier autonome : reset, polices, header, footer et la carte
   interactive de Suisse sont tous regroupés ici.
   ═══════════════════════════════════════════════════════ */

@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;
}

/* ───── 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;
}

body {
  background: #111;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Georgia", serif;
}

/* ───── 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 img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: -40px; /* pousse l'image vers le bas pour qu'elle dépasse */
}

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

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

/* ───── 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
   ══════════════════════════════════════════════════════ */

.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;
  }
}

/* ═══════════════════════════════════════════════════════
   Carte interactive de la Suisse (zones cliquables + tooltip)
   ═══════════════════════════════════════════════════════ */

.index-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 40px;
}

.map-wrapper {
  position: relative;
  display: inline-block;
  max-width: 90vw;
}

.map-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zone {
  cursor: pointer;
  fill: transparent;
  stroke: transparent;
  transition:
    fill 0.25s ease,
    stroke 0.25s ease;
}

.zone:hover,
.zone:focus-visible {
  fill: rgba(255, 200, 100, 0.3);
  stroke: rgba(255, 200, 100, 0.7);
  stroke-width: 3;
  outline: none;
}

.tooltip {
  position: absolute;
  background: rgba(20, 20, 20, 0.92);
  color: #f0ddb0;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  border: 1px solid rgba(200, 150, 80, 0.4);
  white-space: nowrap;
  z-index: 10;
}

.tooltip.visible {
  opacity: 1;
}
