/* Navigation commune aux guides et aux articles */
.ed-header, .blog-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 16px rgba(17,52,56,.07); }
.ed-nav .ed-nav-contact, .blog-nav .blog-nav-contact { min-height: 50px; padding: 12px 18px; border: 1px solid #edb57c; background: #edb57c; color: #173f43; font-weight: 800; }
.ed-nav .ed-nav-contact:hover, .blog-nav .blog-nav-contact:hover { border-color: #f4c898; background: #f4c898; color: #173f43; }
.secondary-mobile-menu { display: none; }
.blog-button-light, .blog-button-primary { border-color: #edb57c; background: #edb57c; color: #143b3d; font-weight: 800; }
.blog-button-light:hover, .blog-button-primary:hover { border-color: #f4c898; background: #f4c898; color: #143b3d; }
.ed-closing .button-light { border-color: #edb57c; background: #edb57c; color: #143b3d; font-weight: 800; }
@media (max-width: 1000px) {
  .ed-header-inner, .blog-header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding-block: 7px; }
  .ed-brand, .blog-brand { display: inline-flex; flex: 0 0 auto; }
  .ed-brand img, .blog-brand img { width: 130px; height: 58px; }
  .secondary-desktop-nav { display: none; }
  .secondary-mobile-menu { display: block; }
  .secondary-mobile-menu summary { display: flex; min-height: 46px; min-width: 92px; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; border: 1px solid #a3bbb0; color: #173f43; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
  .secondary-mobile-menu summary::-webkit-details-marker { display: none; }
  .secondary-mobile-menu summary:focus-visible { outline: 3px solid #417c71; outline-offset: 3px; }
  .secondary-mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 20px; background: #fff; box-shadow: 0 10px 16px rgba(17,52,56,.13); }
  .secondary-mobile-nav a { display: flex; min-height: 47px; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #e6ece6; color: #173f43; font-size: 13px; font-weight: 700; text-decoration: none; }
}
@media (max-width: 590px) {
  .ed-page, .blog-page { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Menus et boutons commerciaux, communs aux pages éditoriales */
.ed-nav, .blog-nav { flex-wrap: nowrap; gap: 12px; }
.ed-nav .ed-nav-contact, .blog-nav .blog-nav-contact,
.blog-button-light, .blog-button-primary, .ed-closing .button-light {
  min-height: 54px;
  border-color: var(--action);
  background: var(--action);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.ed-nav .ed-nav-contact:hover, .blog-nav .blog-nav-contact:hover,
.blog-button-light:hover, .blog-button-primary:hover, .ed-closing .button-light:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
  color: #fff;
}
.ed-aside, .blog-aside { top: 112px; }
@media (max-width: 1350px) {
  .ed-header-inner, .blog-header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; }
  .ed-brand, .blog-brand { display: inline-flex; flex: 0 0 auto; }
  .ed-brand img, .blog-brand img { width: 130px; height: 58px; }
  .secondary-desktop-nav { display: none; }
  .secondary-mobile-menu { display: block; }
  .secondary-mobile-menu summary { display: flex; min-height: 46px; min-width: 78px; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border: 1px solid #a3bbb0; color: #173f43; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
  .secondary-mobile-menu summary::-webkit-details-marker { display: none; }
  .secondary-mobile-menu summary:focus-visible { outline: 3px solid #417c71; outline-offset: 3px; }
  .secondary-mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 20px; background: #fff; box-shadow: 0 10px 16px rgba(17,52,56,.13); }
  .secondary-mobile-nav a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #e6ece6; color: #173f43; font-size: 14px; font-weight: 700; text-decoration: none; }
  .secondary-mobile-nav a:is(.ed-nav-contact, .blog-nav-contact) { margin: 8px 0 12px; padding: 12px 15px; border: 0; background: var(--action); color: #fff; }
  .secondary-mobile-nav a:is(.ed-nav-contact, .blog-nav-contact):hover { background: var(--action-hover); }
}
@media (max-width: 590px) {
  .ed-header-inner, .blog-header-inner { gap: 8px; }
  .ed-page, .blog-page { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .ed-brand img, .blog-brand img { width: 110px; height: 50px; }
}

/* Les actions de contact conservent leur aspect bouton au survol dans les en-têtes éditoriaux. */
:is(.ed-nav, .blog-nav) a:is(.nav-phone, .nav-contact-link):hover { text-decoration: none; }
