/* ============================================================
   Page d'agence : compléments à offre.css (copié dans /partage/ à la publication)
   ============================================================ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.page-agence { margin: 0; font-family: Poppins, 'Segoe UI', system-ui, sans-serif; background: #FFFFFF; }
.page-agence *, .page-agence *::before, .page-agence *::after { box-sizing: border-box; }
.page-agence img { max-width: 100%; display: block; }
/* Les ancres du menu ne passent pas sous le bord de l'écran */
.page-agence section[id] { scroll-margin-top: 16px; }

/* ---------- En-tête avec menu ---------- */
.a-entete { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); flex-wrap: wrap; }
.a-logo { display: inline-flex; }
.a-menu { display: flex; align-items: center; gap: var(--e1); flex-wrap: wrap; }
.page-agence .a-menu a {
  color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px;
}
.page-agence .a-menu a:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 599px) {
  .a-entete { justify-content: center; row-gap: 4px; }
  .page-agence .a-menu a { font-size: 13px; padding: 8px 10px; }
}
@media (min-width: 1024px) {
  .a-menu { gap: var(--e2); }
  .page-agence .a-menu a { font-size: 15px; padding: 10px 16px; }
}

/* ---------- Menu mobile : hamburger et panneau (moins de 768 px) ---------- */
.a-burger, .a-menu-fermer { display: none; }
@media (max-width: 767px) {
  .a-js .a-entete { justify-content: space-between; flex-wrap: nowrap; }
  .a-js .a-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.10); cursor: pointer;
  }
  .a-js .a-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #FFFFFF; }
  .a-js .a-burger:focus-visible, .a-menu-fermer:focus-visible { outline: 3px solid var(--chaud); outline-offset: 2px; }

  .a-js .a-menu {
    position: fixed; z-index: 51; top: 0; right: 0; width: min(320px, 86vw); height: 100%;
    background: var(--indigo); padding: var(--e8) var(--e3) var(--e4);
    display: flex; flex-direction: column; align-items: stretch; gap: var(--e1);
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease-out, visibility 0s .25s;
    box-shadow: -12px 0 40px rgba(12, 5, 72, 0.35);
  }
  .a-menu-ouvert .a-menu { transform: none; visibility: visible; transition: transform .25s ease-out; }
  .page-agence .a-js .a-menu a, .a-js .page-agence .a-menu a {
    font-size: 18px; padding: var(--e2); min-height: 52px; border-radius: 12px;
  }
  .a-js .a-menu-fermer {
    display: inline-flex; align-items: center; justify-content: center; position: absolute; top: var(--e2); right: var(--e2);
    width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF; font-size: 28px; line-height: 1; cursor: pointer; font-family: inherit;
  }
  .a-menu-fond { position: fixed; inset: 0; z-index: 50; background: rgba(12, 5, 72, 0.55); }
  .a-menu-ouvert, .a-menu-ouvert body { overflow: hidden; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .a-js .a-menu, .a-menu-ouvert .a-menu { transition: none; }
}
