/* Shell global — header / footer (styles provisoires, à peaufiner) */
@font-face {
  font-family: KidiContactNunito;
  src: url('/fonts/nunito/nunito-400.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: KidiContactNunito;
  src: url('/fonts/nunito/nunito-700.ttf');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: KidiContactNunito;
  src: url('/fonts/nunito/nunito-800.ttf');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: KidiContactNunito;
  src: url('/fonts/nunito/nunito-900.ttf');
  font-weight: 900;
  font-display: swap;
}

/* Header fixed — réserve la hauteur pour éviter le saut de contenu */
body {
  --kf-header-h: 72px;
  padding-top: var(--kf-header-h) !important;
}

.site-wrap {
  position: relative;
}

/* Chrome sticky/hide-on-scroll */
.kf-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  transition: transform 0.28s ease;
  will-change: transform;
}

.kf-chrome--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.kf-shell-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kf-shell-svg-defs svg,
.kf-header svg,
.kf-footer svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.kf-wrap {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}

/* Barre pleine largeur avec vrai padding */
.kf-header.kf-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.kf-footer.kf-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.kf-skip {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 15px;
  background: #182a45;
  color: #fff;
  z-index: 30;
  text-decoration: none;
  font-family: KidiContactNunito, 'Trebuchet MS', sans-serif;
}

.kf-skip:focus {
  top: 10px;
}

.kf-header {
  border-bottom: 1px solid #e8edf3;
  height: var(--kf-header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  position: relative;
  z-index: 25;
  font-family: KidiContactNunito, 'Trebuchet MS', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kf-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #078fec;
  border-radius: 12px;
  width: 138px;
  height: 48px;
  padding: 0 12px;
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.kf-brand img {
  width: 104px;
  height: auto;
  display: block;
}

.kf-desktop-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  align-items: center;
}

.kf-desktop-nav a {
  font-size: 18px;
  font-weight: 800;
  color: #182a45;
  text-decoration: none;
  transition: color .2s;
}

.kf-desktop-nav a:hover,
.kf-desktop-nav a[aria-current='page'] {
  color: #ef2892 !important;
}

.kf-header-youtube {
  font-size: 15px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 800;
  margin-left: 28px;
  color: #078fec !important;
  text-decoration: none;
}

.kf-header-youtube svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.kf-menu-toggle {
  display: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kf-mobile-nav {
  font-family: KidiContactNunito, 'Trebuchet MS', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kf-mobile-nav[hidden] {
  display: none;
}

.kf-footer {
  border-top: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 105px;
  background: #fff;
  font-family: KidiContactNunito, 'Trebuchet MS', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kf-footer-name {
  font-size: 23px;
  letter-spacing: -.7px;
  font-weight: 900;
  color: #ef2892 !important;
  text-decoration: none;
}

.kf-footer nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: #68768c;
  font-weight: 700;
}

.kf-footer nav a {
  color: #68768c;
  text-decoration: none;
}

.kf-footer nav a:hover {
  color: #078fec !important;
}

.kf-footer nav a[aria-current='page'] {
  color: #ef2892 !important;
}

@media (max-width: 1100px) {
  .kf-header.kf-wrap,
  .kf-footer.kf-wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
  .kf-header {
    gap: 20px;
  }
  .kf-desktop-nav {
    gap: 24px;
  }
  .kf-desktop-nav a {
    font-size: 16px;
  }
  .kf-header-youtube {
    margin-left: 12px;
  }
}

@media (max-width: 800px) {
  body {
    --kf-header-h: 64px;
  }
  .kf-header.kf-wrap,
  .kf-footer.kf-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .kf-header {
    height: var(--kf-header-h);
  }
  .kf-brand {
    width: 118px;
    height: 44px;
    border-radius: 11px;
  }
  .kf-brand img {
    width: 98px;
  }
  .kf-desktop-nav {
    gap: 18px;
  }
  .kf-desktop-nav a {
    font-size: 15px;
  }
  .kf-header-youtube {
    display: none;
  }
  .kf-footer nav {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  body {
    --kf-header-h: 60px;
  }
  .kf-header.kf-wrap,
  .kf-footer.kf-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .kf-header {
    height: var(--kf-header-h);
  }
  .kf-brand {
    width: 112px;
    height: 42px;
    border-radius: 10px;
  }
  .kf-brand img {
    width: 94px;
  }
  .kf-desktop-nav {
    display: none;
  }
  .kf-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f2f8fd;
    margin-left: auto;
  }
  .kf-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #182a45;
    border-radius: 2px;
  }
  .kf-mobile-nav {
    position: absolute;
    z-index: 30;
    top: calc(var(--kf-header-h) - 2px);
    left: 20px;
    right: 20px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 10px 30px #182a4510;
    border-radius: 14px;
  }
  .kf-mobile-nav a {
    display: block;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 12px;
    color: #182a45;
    text-decoration: none;
  }
  .kf-mobile-nav a[aria-current='page'],
  .kf-mobile-nav a:hover {
    color: #ef2892 !important;
  }
  .kf-footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-block: 23px;
  }
  .kf-footer-name {
    font-size: 22px;
  }
  .kf-footer nav {
    gap: 23px;
    font-size: 11px;
  }
}
