/* Menu EndoDay : panneau L'endométriose (desktop) + menu burger (mobile).
   Chargé sur toutes les pages, après les styles propres à chaque gabarit. */

html { scroll-padding-top: 76px; }
body { overflow-x: clip; }

nav.site .row { position: relative; }
nav.site .nav-toggle { display: none; }
nav.site .nav-burger { display: none; }

/* Liens du menu plus lisibles : encre pleine et semi gras */
nav.site .navlinks a { font-weight: 600; color: var(--ink); }
nav.site .navlinks a.active { color: var(--rose); }

/* Bouton "Télécharger l'app" (accueil uniquement), en dehors de .navlinks :
   reste toujours collé à droite, jamais entraîné par le centrage des liens. */
nav.site a.nav-cta { color: var(--on-noir, #fff); flex-shrink: 0; }
nav.site a.nav-cta:hover { color: var(--on-noir, #fff); opacity: .9; }

/* Sur grand écran, les liens du menu sont centrés dans l'espace entre la marque
   et le bouton (pas sur toute la largeur de la barre, sinon ils dérivent vers
   le milieu de l'écran au lieu d'être alignés avec ces deux repères). */
@media (min-width: 921px) {
  nav.site .navlinks { flex: 1; justify-content: center; white-space: nowrap; }
}
@media (max-width: 920px) {
  nav.site a.nav-cta { display: none; }
}

nav.site .nav-item > a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
nav.site .nav-item svg.chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

nav.site .nav-group { display: flex; flex-direction: column; gap: 7px; }
nav.site .nav-group + .nav-group { margin-top: 16px; }
nav.site .nav-group-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rose-deep); background: var(--rose-soft); align-self: flex-start; padding: 3px 10px; border-radius: 999px; margin-bottom: 3px; }
nav.site .nav-panel a { font-size: 13.5px; font-weight: 500; color: var(--ink-dim); text-decoration: none; line-height: 1.4; }
nav.site .nav-panel a:hover { color: var(--rose); }
nav.site .nav-all { font-weight: 600; color: var(--violet-deep); }

@media (min-width: 921px) {
  /* Le panneau s'ouvre au CLIC (classe .open posée en JS), pas au survol :
     un menu au survol se referme dès que la souris quitte la zone. */
  nav.site .nav-item > a { cursor: pointer; }
  nav.site .nav-panel { position: absolute; top: calc(100% + 6px); right: 0; width: min(820px, calc(100vw - 32px)); display: none; grid-template-columns: repeat(3, 1fr); gap: 20px 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(34,26,44,0.28), 0 4px 14px -6px rgba(34,26,44,0.12); padding: 24px 28px 20px; z-index: 30; }
  nav.site .nav-item.open .nav-panel { display: grid; }
  nav.site .nav-item.open svg.chev { transform: rotate(180deg); }
  nav.site .nav-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; }
}

/* ---------- Footer riche : réseaux, sites, maillage interne ---------- */
footer.site .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1.2fr; gap: 28px; }
footer.site .foot-col h3 { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rose-deep); margin: 0 0 10px; }
footer.site .foot-col > a:not(.brand) { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-dim); text-decoration: none; padding: 4px 0; line-height: 1.45; }
footer.site .foot-col > a:not(.brand):hover { color: var(--rose); }
footer.site .foot-col a.foot-more { font-weight: 600; color: var(--violet-deep); margin-top: 4px; }
footer.site .foot-tagline { font-size: 13.5px; color: var(--ink-dim); margin: 10px 0 0; max-width: 28ch; }
footer.site .foot-social { display: flex; gap: 10px; margin-top: 14px; }
footer.site .foot-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-dim); text-decoration: none; }
footer.site .foot-social a:hover { color: var(--rose); border-color: var(--rose); }
footer.site .foot-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer.site .foot-sites { display: flex; flex-direction: column; margin-top: 12px; }
footer.site .foot-sites a { font-size: 13px; font-weight: 600; color: var(--violet-deep); text-decoration: none; padding: 3px 0; }
footer.site .foot-sites a:hover { color: var(--rose); }
footer.site .foot-bottom { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
footer.site .foot-legal { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
footer.site .foot-legal a { color: var(--muted); text-decoration: none; }
footer.site .foot-legal a:hover { color: var(--rose); }
footer.site .foot-bottom .disclaimer { border-top: none; padding-top: 0; margin-top: 12px; }
@media (max-width: 920px) {
  footer.site .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  footer.site .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  footer.site .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  nav.site .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px 2px; cursor: pointer; }
  nav.site .nav-burger span { display: block; width: 22px; height: 2.2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  nav.site .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
  nav.site .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  nav.site .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

  nav.site .navlinks { display: none; }
  nav.site .nav-toggle:checked ~ .navlinks {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 54px -22px rgba(34,26,44,0.35);
    padding: 6px 20px 24px;
    max-height: calc(100vh - 62px); overflow: auto; z-index: 40;
    font-size: 15px;
  }
  nav.site .navlinks > a { font-weight: 600; color: var(--ink); padding: 13px 2px; border-bottom: 1px solid var(--line); }
  nav.site .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  nav.site .nav-item > a { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); padding: 13px 2px; width: 100%; }
  nav.site .nav-item svg.chev { width: 16px; height: 16px; transition: transform .2s; }
  nav.site .nav-item.open svg.chev { transform: rotate(180deg); }
  /* Replié par défaut : accordéon, pour ne pas repousser le lien Blog hors de vue */
  nav.site .nav-panel { display: none; }
  nav.site .nav-item.open .nav-panel { display: block; padding: 2px 0 14px; }
  nav.site .nav-col + .nav-col { margin-top: 16px; }
  nav.site .nav-panel a { display: block; padding: 5px 0 5px 12px; font-size: 14px; }
  nav.site .nav-all { padding: 12px 0 0 12px; }
}
