/* En-tête et pied du site (15/10/2026) — repris À L'IDENTIQUE de la page d'accueil (widget « HEADER COMPLET » et
   CSS « FOOTER CLEAN »), pour que le blog et les pages générées portent le même habillage que l'accueil. */

/* =========================
   NOVABRIDGE — HEADER COMPLET
   Mobile first
========================= */
.nb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  font-family: Inter, sans-serif;
}

.nb-header__container {
  width: min(calc(100% - 24px), 1240px);
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 10px 0;
}

.nb-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.nb-header__logo {
  display: block !important;
  width: auto !important;
  height: px !important;
  max-height: 50px !important;
  object-fit: contain;
}

.nb-header__desktop {
  display: none;
}

.nb-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-header__cta {
  display: none;
}

.nb-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
  background: linear-gradient(135deg, #ffd84b, #f4c400);
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.nb-header__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(244, 196, 0, 0.30);
}

.nb-header__btn::after {
  content: "↗";
  margin-left: 8px;
  font-size: 0.95rem;
}

.nb-header__btn--full {
  width: 100%;
}

/* HAMBURGER BUTTON */
.nb-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd84b, #f4c400);
  box-shadow:
    0 12px 28px rgba(244, 196, 0, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 58px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nb-header__menu-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.nb-header__menu-lines,
.nb-header__menu-lines::before,
.nb-header__menu-lines::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: #111;
  left: 50%;
}

.nb-header__menu-lines {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nb-header__menu-lines::before {
  top: -7px;
  transform: translateX(-50%);
}

.nb-header__menu-lines::after {
  top: 7px;
  transform: translateX(-50%);
}

.nb-header__menu-toggle .nb-header__menu-lines,
.nb-header__menu-toggle .nb-header__menu-lines::before,
.nb-header__menu-toggle .nb-header__menu-lines::after {
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nb-header__menu-toggle.is-active .nb-header__menu-lines {
  background: transparent;
}

.nb-header__menu-toggle.is-active .nb-header__menu-lines::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nb-header__menu-toggle.is-active .nb-header__menu-lines::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* MOBILE MENU */
.nb-header__mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  padding-bottom: 4px;
}

.nb-header__mobile.is-open {
  display: block;
}

.nb-header__mobile-inner {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 46px rgba(17, 25, 39, 0.10);
  overflow: hidden;
}

.nb-header__mobile-nav {
  display: grid;
}

.nb-header__mobile-nav a {
  text-decoration: none;
  color: #171b22;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: background 0.2s ease;
}

.nb-header__mobile-nav a:hover {
  background: rgba(244, 196, 0, 0.06);
}

.nb-header__mobile-nav a:last-child {
  border-bottom: 0;
}

.nb-header__mobile-cta-wrap {
  padding: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(246, 247, 242, 0.7);
}

/* DESKTOP */
@media (min-width: 1024px) {
  .nb-header__container {
    width: min(calc(100% - 40px), 1240px);
    min-height: 78px;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    padding: 12px 0;
  }

  .nb-header__logo {
    height: 80px !important;
    max-height: 80px !important;
  }

  .nb-header__desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .nb-header__desktop a {
    text-decoration: none;
    color: #556070;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
  }

  .nb-header__desktop a:hover {
    color: #171b22;
  }

  .nb-header__cta {
    display: inline-flex;
  }

  .nb-header__menu-toggle {
    display: none;
  }

  .nb-header__mobile {
    display: none !important;
  }
}

/* =========================
   FOOTER CLEAN NOVABRIDGE
========================= */

.nb-footer {
  background: #fff;
  padding: 60px 0 30px;
  font-family: Inter, sans-serif;
  border-top: 1px solid rgba(15,23,40,0.06);
}

.nb-footer__container {
  width: min(calc(100% - 32px), 1100px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 40px;
}

/* LOGO FIX */
.nb-footer__brand img {
  height: 64px;          /* IMPORTANT */
  width: auto;           /* évite l’écrasement */
  display: block;
  margin-bottom: 12px;
}

.nb-footer__brand p {
  font-size: 0.9rem;
  color: #556070;
  line-height: 1.6;
  margin: 0;
}

/* NAV */
.nb-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.nb-footer__nav a {
  text-decoration: none;
  color: #556070;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nb-footer__nav a:hover {
  color: #111;
}

/* CTA */
.nb-footer__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  background: linear-gradient(135deg, #ffd84b, #f4c400);
  box-shadow: 0 12px 28px rgba(244,196,0,0.25);
  transition: 0.25s;
}

.nb-footer__cta a:hover {
  transform: translateY(-2px);
}

/* BOTTOM */
.nb-footer__bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #8a95a5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nb-footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .nb-footer__nav {
    justify-content: center;
  }

  .nb-footer__cta {
    display: flex;
    justify-content: center;
  }
}
