#topbar {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

#topbar a {
  color: #b8d4ff;
}

.badge-18 {
  background: var(--rouge-alerte);
  color: var(--white);
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.site-header {
  border-bottom: 1px solid #e8e8e8;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vert-terrain);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--bleu-lien);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--vert-terrain);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  background: var(--vert-terrain);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid #e8e8e8;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0;
  }
}

.site-footer {
  background: var(--dark);
  color: #d4d4dc;
  font-size: 13px;
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.site-footer a {
  color: #b8d4ff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__regulators {
  border-top: 1px solid #3a3a4a;
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 0.5rem;
}

.site-footer__regulators-title {
  margin: 0 0 0.85rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
}

.footer-reg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem 0.75rem;
}

.footer-reg-list--primary {
  align-items: center;
}

.footer-reg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  outline-offset: 3px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-reg-link--tile {
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.footer-reg-link--tile:hover,
.footer-reg-link--tile:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.footer-reg-link:focus-visible {
  box-shadow: 0 0 0 2px #7eb8ff;
}

.footer-reg-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 44vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.footer-reg-logo--white {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

/* Logo SOS (SVG portrait) : même hauteur max, largeur suivante */
.footer-reg-logo--sos {
  height: 44px;
  max-width: min(140px, 32vw);
}

@media (max-width: 520px) {
  .footer-reg-logo {
    height: 36px;
    max-width: min(180px, 52vw);
  }

  .footer-reg-logo--sos {
    height: 36px;
    max-width: min(120px, 40vw);
  }
}

.site-footer__legal {
  font-size: 12px;
  color: var(--gris-texte);
  border-top: 1px solid #3a3a4a;
  padding-top: 1rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
  font-size: 14px;
  color: var(--gris-texte);
}

.breadcrumb a {
  color: var(--bleu-lien);
}
