/* header */
/* HEADER FIXE */
#site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--ring);
  position: sticky;
  top: 0;
  z-index: 300;
}

.bar {
  display: flex;
  justify-content: space-between;
  /*align-items: center;
  padding: .8rem 2rem; */
}

.container {
  width: min(90%, 1200px);
  margin: auto;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-ink);
  font-weight: bold;
}

.logo .badge {
  color: white;
  width: 200px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-right: 0.6rem; */
  font-weight: 700;
  margin: 5px 0px;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--brand);
}

nav a.active {
  color: var(--brand);
  font-weight: 700;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

/* CONTACT NUMBERS */
.contact-numbers {
  background: var(--brand);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  box-shadow: 0 0 0 3px var(--ring);
  transition: all 0.3s ease;
}

.contact-numbers a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.contact-numbers a:hover {
  color: var(--bg);
  text-decoration: underline;
}

/* Disparition du numéro d'urgence au scroll */
#site-header.scrolled .contact-numbers .emergency-number {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* === SECTION DROPDOWN === */
.section-dropdown { position: relative; }

.section-toggle {
  background: none;
  border: 1px solid var(--ring);
  border-radius: 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}

.section-toggle:hover { border-color: var(--brand); color: var(--brand); }

.dropdown-chevron {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.section-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

.section-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 215px;
  z-index: 200;
  overflow: hidden;
}

.section-dropdown.open .section-menu { display: block; }

.section-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.section-item:hover { background: var(--soft); }

.section-item.active {
  background: var(--soft);
  color: var(--brand-ink);
  font-weight: 700;
}

.si-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pa-dot     { background: #0ea5e9; }
.farm-dot   { background: #16a34a; }
.equine-dot { background: #b45309; }

/* Masquer le dropdown sur la page d'accueil */
.page-home .section-dropdown { display: none; }

/* MENU BURGER par défaut */
/* BURGER */
#burger {
  display: none;
  flex-direction: column;
  gap: .3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .8rem 2rem;
  align-self: center;
  width: 30px;
}

#burger span {
  width: 25px;
  height: 3px;
  background: var(--brand-ink);
  border-radius: 2px;
}

/* Animation burger -> croix */
/* #menu-toggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
} */

/* RESPONSIVE */
/* #menu-toggle {
  display: flex;
} */
@media (max-width: 1024px) {

  #burger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: var(--bg);
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 0.5rem;
  }

  nav.open {
    display: flex;
  }

  /* #main-nav a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
  } */

  .contact-numbers {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    width: 100%;
  }

  .contact-numbers .emergency-number {
    display: block;
  }

  /* Centrer tous les liens du menu mobile */
  nav {
    align-items: center;
  }

  /* Sections : plus de dropdown, liens à plat */
  .section-toggle {
    display: none;
  }

  .section-menu {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: static;
    border: none;
    box-shadow: none;
    background: none;
    min-width: auto;
    border-radius: 0;
    overflow: visible;
    gap: 0;
  }

  /* Section items identiques aux autres liens du nav */
  .section-item,
  .section-item.active {
    background: none;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
  }

  .section-item.active {
    color: var(--brand);
    font-weight: 700;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
  }

  .section-item:hover {
    background: none;
    color: var(--brand);
  }
}