@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  background-color: #ffffff;
  padding: 0;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #000000;
  font-weight: 300;
  line-height: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

/* Variables */ :root {
  --container-max: 1200px;
  --header-top-height: 150px;
  --logo-top-height: 60px;
  --header-sticky-height: 60px;	
  --logo-sticky-height: 35px;
}

/* Container centré */
.px-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER BASE */
.px-header {
  position: relative;
  width: 100%;
}

/* Top header (haut, noir) */
.px-header__top {
  height: var(--header-top-height);
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
}

/* Sticky header (compact) */
.px-header__sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-sticky-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-110%);
  /*transition: transform 250ms ease;*/
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
  z-index: 1000;
}

.px-header.is-sticky .px-header__sticky {
  transform: translateY(0);
}

.px-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo à gauche */
.px-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}

.px-logo__img {
  display: block;
  height: 44px;
  width: auto;
}

/* Taille logo dans le header haut */
.px-header__top .px-logo__img {
  height: var(--logo-top-height);
}

/* Taille logo dans le sticky */
.px-header__sticky .px-logo__img {
  height: var(--logo-sticky-height);
}
/* Par défaut */
.px-logo__img--dark {
  display: none;
}

/* Header haut (fond noir) */
.px-header__top .px-logo__img--light {
  display: block;
}

.px-header__top .px-logo__img--dark {
  display: none;
}

/* Header sticky (fond clair) */
.px-header__sticky .px-logo__img--light {
  display: none;
}

.px-header__sticky .px-logo__img--dark {
  display: block;
}

/* MAIN spacing (pour ne pas être caché par le sticky) */
.px-main {
  padding-top: 40px;
}

/* NAV */
.px-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.px-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  opacity: 0.9;
}

.px-nav a:hover {
  opacity: 1;
}

/* Couleurs selon header */
.px-header__top .px-nav { color: #fff; }
.px-header__sticky .px-nav { color: #111; }


/* Burger caché en desktop */
.px-burger {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 900px) {
  .px-burger { display: inline-flex; }

  .px-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 90px 20px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-110%);
    transition: transform 250ms ease;
    z-index: 1100;
  }

  /* Menu vertical */
  .px-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Quand ouvert */
  body.px-nav-open .px-nav {
    transform: translateY(0);
  }

  /* Couleur liens en mobile */
  .px-nav { color: #111; }
}





/* DEV ONLY: permet de scroller quand la page est trop courte */
body.px-dev-scroll {
  min-height: 220vh;
}



















