/* ==========================================================================
   Nestkids : en-tête, méga-menu, panneau mobile et pied de page (phase 2)
   D'après sources/menu.py, sources/variant_c2.py et maquettes/html/nl/.
   Les boutons <button> du menu sont préfixés par « body » pour passer devant
   les styles de boutons du kit Elementor (.elementor-kit-N button).
   ========================================================================== */

/* --- Dessins des pastilles -------------------------------------------------- */
.nk-ico path, .nk-ico circle, .nk-ico ellipse {
  fill: none; stroke: #2F4A3A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.nk-chev { margin-left: 6px; flex: none; transition: transform .2s ease; }
.nk-arrow { margin-left: 8px; flex: none; }

/* --- En-tête : container Elementor avec la classe nk-header ----------------- */
.nk-header { position: relative; z-index: 50; border-bottom: 1px dashed rgba(47,74,58,.35); }
.elementor-widget.nk-header-nav { position: static; }
.nk-header-nav .nk-nav__list { justify-content: flex-end; }
/* .elementor-widget en plus : bat la règle d'Elementor qui force les SVG liés à 48 px
   (.elementor-widget-image a img[src$=".svg"] { width: 48px }). */
.nk-header .elementor-widget-theme-site-logo.elementor-widget img { display: block; width: auto; max-width: none; height: 44px; }
@media (max-width: 767px) { .nk-header .elementor-widget-theme-site-logo.elementor-widget img { height: 38px; } }
.nk-footer .elementor-widget-theme-site-logo.elementor-widget img { width: auto; max-width: none; }
.elementor-widget.nk-header-lang { margin-left: auto; }
/* Le menu complet demande ~1160 px : entre 1025 et 1199 px, on passe déjà au bouton + panneau. */
@media (min-width: 1025px) and (max-width: 1199px) {
  .elementor-element.elementor-widget.nk-header-nav,
  .elementor-element.elementor-widget.nk-btn-header { display: none !important; }
  .elementor-element.elementor-widget.nk-header-burger.elementor-hidden-desktop { display: block !important; }
}

/* --- Menu principal ---------------------------------------------------------- */
.nk-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nk-nav__item { position: relative; }
.nk-nav__item.nk-has-mega { position: static; }

.nk-nav .nk-nav__link,
body .nk-nav button.nk-nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin: 0;
  border: 0; border-radius: 999px; background: transparent; color: #17171A;
  font-family: 'Work Sans', system-ui, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.4;
  text-decoration: none; cursor: pointer; box-shadow: none; transition: background-color .2s ease;
}
.nk-nav .nk-nav__link:hover,
body .nk-nav button.nk-nav__link:hover,
body .nk-nav button.nk-nav__link:focus,
.nk-nav .nk-has-sub.is-open > .nk-nav__link,
body .nk-nav .nk-has-sub.is-open > button.nk-nav__link { background: #DDE8D5; color: #17171A; }
body .nk-nav button.nk-nav__link:focus:not(:focus-visible) { background: transparent; }
body .nk-nav .nk-has-sub.is-open > button.nk-nav__link:focus { background: #DDE8D5; }
.nk-nav .nk-nav__link.is-active,
body .nk-nav button.nk-nav__link.is-active {
  text-decoration: underline; text-decoration-color: #F2CF4A;
  text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.nk-has-sub.is-open > .nk-nav__link .nk-chev { transform: rotate(180deg); }

/* --- Sous-menus : panneaux papier --------------------------------------------- */
.nk-sub {
  display: none; position: absolute; z-index: 60;
  background: #FCFBF6; box-shadow: 0 1px 2px rgba(23,23,26,.06), 0 30px 50px -34px rgba(23,23,26,.4);
}
.nk-sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 32px; } /* passerelle souris */
.nk-has-sub.is-open > .nk-sub { display: flex; }
html:not(.nk-js) .nk-has-sub:hover > .nk-sub,
html:not(.nk-js) .nk-has-sub:focus-within > .nk-sub { display: flex; }

/* Liste (Praktisch, Over ons) */
.nk-sub--list { top: calc(100% + 32px); left: -10px; width: 340px; border-radius: 24px; padding: 10px; flex-direction: column; gap: 2px; }
.nk-sub--list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nk-sub a.nk-sub__row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px;
  color: #17171A; text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1.35;
}
.nk-sub a.nk-sub__row:hover, .nk-sub a.nk-sub__row:focus-visible, .nk-sub a.nk-sub__row[aria-current] { background: #F4F0DF; color: #17171A; }
.nk-bubble { flex: none; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.nk-bubble--sm { width: 34px; height: 34px; }
.nk-bubble--butter { background: #F7E7A6; }
.nk-bubble--sage { background: #DDE8D5; }
.nk-bubble--sun { background: #F2CF4A; }
.nk-sub a.nk-sub__callout {
  margin: 6px 4px 2px; padding: 14px 16px; border-radius: 16px; background: #F7E7A6;
  display: flex; flex-direction: column; gap: 2px; color: #17171A; text-decoration: none;
}
.nk-sub__callout .nk-hand { font-size: 24px; line-height: 1; }
.nk-sub__callout-text { font-size: 14px; color: #4A4A42; }
.nk-sub a.nk-sub__callout:hover { box-shadow: inset 0 0 0 2px #F2CF4A; }

/* Méga-menu (Opvang) */
.nk-sub--mega {
  top: calc(100% + 8px); left: 48px; right: 48px; max-width: 1240px; margin: 0 auto;
  border-radius: 28px; padding: 22px; gap: 18px;
}
.nk-sub--mega::before { height: 40px; }
.nk-sub a.nk-mega__card {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border-radius: 22px; background: #F4F0DF; color: #17171A; text-decoration: none;
  transition: box-shadow .2s ease;
}
.nk-sub a.nk-mega__card:hover, .nk-sub a.nk-mega__card:focus-visible { box-shadow: inset 0 0 0 2px #F2CF4A; color: #17171A; }
.nk-mega__top { display: flex; justify-content: space-between; align-items: center; }
.nk-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.nk-tag--butter { background: #F7E7A6; }
.nk-tag--sun { background: #F2CF4A; }
.nk-tag--sage { background: #DDE8D5; }
.nk-mega__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.nk-mega__text { font-size: 14px; line-height: 1.5; color: #4A4A42; }
.nk-mega__more { display: inline-flex; align-items: center; margin-top: auto; font-size: 14px; font-weight: 700; }
.nk-mega__promo {
  flex: 0 0 260px; border-radius: 22px; background: #DDE8D5; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.nk-mega__promo img { display: block; width: 120px; height: auto; }
.nk-mega__hand { margin: 0; font-size: 26px; line-height: 1; }
.nk-sub a.nk-mega__link { font-size: 14px; font-weight: 700; color: #17171A; text-decoration: underline; text-underline-offset: 3px; }
.nk-sub a.nk-mega__link:hover { text-decoration-color: #F2CF4A; text-decoration-thickness: 2px; }

/* Petites pilules de lien (encart du méga-menu, panneau mobile) */
a.nk-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px;
  border-radius: 999px; font-family: 'Work Sans', system-ui, sans-serif; font-size: 16px; font-weight: 700; line-height: 1;
  text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
a.nk-pill.nk-pill--forest { background: #2F4A3A; color: #FCFBF6; }
a.nk-pill.nk-pill--forest:hover, a.nk-pill.nk-pill--forest:focus-visible { background: #DDE8D5; color: #2F4A3A; box-shadow: inset 0 0 0 1.5px #2F4A3A; }
a.nk-pill.nk-pill--sun { min-height: 52px; background: #F2CF4A; color: #17171A; }
a.nk-pill.nk-pill--sun:hover, a.nk-pill.nk-pill--sun:focus-visible { background: #FFFFFF; color: #17171A; box-shadow: inset 0 0 0 2px #F2CF4A; }
a.nk-pill.nk-pill--block { display: flex; width: 100%; }

/* --- Sélecteur de langue NL · EN --------------------------------------------- */
.nk-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #DDE8D5; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.nk-lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; padding: 0 10px;
  border-radius: 999px; color: #4A4A42; text-decoration: none; line-height: 1;
}
.nk-lang a:hover { color: #17171A; }
.nk-lang a.is-active { background: #F4F0DF; color: #17171A; font-weight: 700; }
@media (max-width: 767px) { .nk-lang a { height: 44px; } }

/* --- Bouton menu (mobile) ---------------------------------------------------- */
body button.nk-burger {
  width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #17171A; border-radius: 999px; background: transparent; color: #17171A; box-shadow: none;
}
body button.nk-burger:hover, body button.nk-burger:focus { background: #DDE8D5; color: #17171A; }

/* --- Panneau mobile plein écran ---------------------------------------------- */
html.nk-menu-open { overflow: hidden; }
.nk-mpanel {
  position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column;
  background: #F4F0DF; color: #17171A; overflow-y: auto; overscroll-behavior: contain;
  font-family: 'Work Sans', system-ui, sans-serif;
}
.nk-mpanel[hidden] { display: none; }
.nk-mpanel__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px; border-bottom: 1px dashed rgba(47,74,58,.35); }
.nk-mpanel__logo img { display: block; height: 36px; width: auto; }
.nk-mpanel__spacer { flex: 1; }
body button.nk-mpanel__close {
  width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: #17171A; color: #F4F0DF; box-shadow: none;
}
body button.nk-mpanel__close:hover, body button.nk-mpanel__close:focus { background: #2F4A3A; color: #F4F0DF; }
.nk-mpanel__nav { padding: 8px 20px 0; }
.nk-mpanel__nav ul { list-style: none; margin: 0; padding: 0; }
.nk-mpanel .nk-mpanel__row,
body .nk-mpanel button.nk-mpanel__row {
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0;
  padding: 16px 4px; border: 0; border-bottom: 1px dashed rgba(47,74,58,.3); border-radius: 0;
  background: transparent; color: #17171A; box-shadow: none; text-align: left; text-decoration: none;
  font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; cursor: pointer;
}
body .nk-mpanel button.nk-mpanel__row:hover, body .nk-mpanel button.nk-mpanel__row:focus,
.nk-mpanel a.nk-mpanel__row:hover { background: transparent; color: #17171A; }
body .nk-mpanel button.nk-mpanel__row:hover, .nk-mpanel a.nk-mpanel__row:hover { color: #2F4A3A; }
.nk-mpanel .nk-mpanel__row.is-active, body .nk-mpanel button.nk-mpanel__row.is-active { font-weight: 900; }
.nk-mpanel__row[aria-expanded="true"] .nk-chev { transform: rotate(180deg); }
.nk-mpanel__item:has(> .nk-mpanel__row[aria-expanded="true"]) > .nk-mpanel__row { border-bottom-color: transparent; }
.nk-mpanel .nk-mpanel__acc { padding: 6px 0 10px 8px; border-bottom: 1px dashed rgba(47,74,58,.3); }
.nk-mpanel a.nk-mpanel__sub { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: #17171A; text-decoration: none; font-size: 16px; line-height: 1.35; }
.nk-mpanel a.nk-mpanel__sub[aria-current] { font-weight: 700; }
.nk-mpanel__foot { margin-top: auto; padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 14px; }
.nk-mpanel__contact { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; line-height: 1.5; color: #4A4A42; }
body .nk-mpanel__contact a { color: inherit; font-weight: 400; text-decoration: underline; text-decoration-color: #F2CF4A; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nk-mpanel__tagline { margin: 4px 0 0; font-size: 24px; line-height: 1; }
.nk-mpanel a:focus-visible, .nk-mpanel button:focus-visible { outline: 2px solid #2F4A3A; outline-offset: 3px; }

/* --- Pied de page : container Elementor avec la classe nk-footer ------------- */
.nk-footer { color: #F4F0DF; }
.nk-footer .nk-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Survol : une barre sun qui se trace de gauche à droite (dégradé en fond, ce qui suit
   aussi un lien coupé sur deux lignes). Le padding d'un lien en ligne ne bouge rien. */
.nk-footer .nk-links a,
.nk-footer .elementor-widget-text-editor a {
  color: #F4F0DF; font-weight: 400; font-size: 15px; line-height: 1.4; text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(#F2CF4A, #F2CF4A);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .3s ease;
}
.nk-footer .nk-links a:hover,
.nk-footer .nk-links a:focus-visible,
.nk-footer .elementor-widget-text-editor a:hover,
.nk-footer .elementor-widget-text-editor a:focus-visible {
  color: #F4F0DF; background-size: 100% 2px;
}
/* Liens légaux séparés par un fin trait vertical dessiné en CSS (pas de « · », rien de lu
   par les lecteurs d'écran). Il est hors du lien : le soulignement ne passe pas dessous. */
.nk-footer .nk-links--inline { display: inline-flex; flex-wrap: wrap; gap: 4px 25px; font-size: 13px; line-height: 1.5; }
.nk-footer .nk-links--inline a { position: relative; }
.nk-footer .nk-links--inline a + a::before {
  content: ""; position: absolute; left: -13px; top: 50%;
  width: 1px; height: 12px; margin-top: -7px;
  background: rgba(244,240,223,.45);
}
/* Liens légaux : même barre sun au survol que les autres liens, sans soulignement permanent
   (les traits verticaux suffisent à les distinguer). */
.nk-footer .nk-links--inline a { font-size: 13px; padding-bottom: 2px; }
@media (prefers-reduced-motion: reduce) {
  .nk-footer .nk-links a, .nk-footer .elementor-widget-text-editor a { transition: none; }
}
.nk-footer a:focus-visible { outline: 2px solid #F2CF4A; outline-offset: 3px; }
.nk-footer .elementor-widget-text-editor p { margin: 0; }
.nk-footer .elementor-heading-title { margin: 0; }
.nk-footer-legal { border-top: 1px solid rgba(244,240,223,.3); }
@media (min-width: 768px) { .nk-footer-legal.e-con { align-items: baseline; } }
.nk-logo-pill img { display: block; height: 40px; width: auto; }
/* Le lien autour du logo est inline-block : sans ceci, il réserve la place des jambages
   sous l'image (8 px de plus en bas qu'en haut dans la pastille). */
.nk-logo-pill a { display: block; line-height: 0; }

/* --- Panneau mobile : lien vers la page de la rubrique (« Alles over opvang ») -- */
.nk-mpanel a.nk-mpanel__hub {
  display: inline-flex; align-items: center; padding: 8px 4px 10px; color: #2F4A3A; font-size: 15px; font-weight: 700;
  text-decoration: underline; text-decoration-color: #F2CF4A; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.nk-mpanel a.nk-mpanel__hub[aria-current] { color: #17171A; }

/* --- En-tête fixe (ajouté le 3/12/2026) -------------------------------------------
   Il reste en haut de l'écran. Dès qu'on a défilé : ombre douce, pointillé effacé.
   En descendant, il se range vers le haut ; il revient dès qu'on remonte
   (assets/js/navigation.js, classes is-scrolled / is-tucked sur le <header>). */
.elementor-location-header { position: sticky; top: 0; z-index: 100; transition: transform .3s ease, box-shadow .3s ease; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .elementor-location-header { top: 0; } }
.elementor-location-header .nk-header { transition: border-color .3s ease; }
.elementor-location-header.is-scrolled { box-shadow: 0 1px 2px rgba(23,23,26,.06), 0 18px 30px -24px rgba(23,23,26,.45); }
.elementor-location-header.is-scrolled .nk-header { border-bottom-color: transparent; }
.elementor-location-header.is-tucked { transform: translateY(-110%); }
/* Ancres (#tarieven…) : la cible ne passe pas sous l'en-tête */
html { scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) {
  .elementor-location-header, .elementor-location-header .nk-header { transition: none; }
  .elementor-location-header.is-tucked { transform: none; }
}
