*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Montserrat, Helvetica, sans-serif;
  background: #f4f4f4;
}

ul 
{text-align: justify}

nav {
  position: fixed;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  background: #fafafa;
  box-shadow: inset 0px -1px 0px #c5c5c6;
}

.nav-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
}

.nav-icon span {
  font-family: Roboto Flex, sans-serif;
  font-size: 22px;
  margin-left: 10px;
  font-weight: 400;
  color: #333;
}
.nav-icon img {
  width: 40px;
  transform: rotate(-5deg) translateX(5px);
}
.hamburger {
  display: none;
}
.navlinks-container a {
  margin: 0 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #414141;
  display: inline-block;
  position: relative;
}
.navlinks-container a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #333;
  transition: transform 0.3s ease-out;
}

.navlinks-container a:hover::after {
  transform: scaleX(1)
}

.nav-authentication {
  margin-left: auto;
}

.sign-btns button {
  font-family: Roboto Flex, sans-serif;
  font-size: 16px;
  min-width: 90px;
  padding: 10px 5px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

/*.sign-btns button:nth-child(2) {
  border: none;
  background: #92c3eeb7;
}*/
.sign-user {
  display: none;
}

@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
    position: relative;
  }

  .nav-icon {
    order: 2;
    margin: 0 auto;
  }

  .nav-icon span {
    font-size: 22px;
  }

  .main-navlinks {
    order: 1;
  }
  /* Hamburger */
  .hamburger {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: none;
    display: flex;
    background: #fafafa;
    align-items: center;
    position: relative;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s 0.15s ease-out;
  }
  .hamburger span:nth-child(1),
  .hamburger span:nth-child(3) {
    transition: transform 0.3s ease-out;
  }
  .hamburger span:nth-child(1) {
    transform: translateY(7px);
  }
  .hamburger span:nth-child(3) {
    transform: translateY(-7px);
  }
  .hamburger.open span:nth-child(1) {
    transform: translate(0) rotate(135deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transition: opacity 0s ease-out;
  }
  .hamburger.open span:nth-child(3) {
    transform: translate(0) rotate(-135deg);
  }

  .navlinks-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    background: #fafafa;
    top: 100%;
    left: 0;
    height: 100vh;
    padding: 15px 50px 15px 20px;
    border-right: 1px solid #c5c5c6;
    transform: translate(-100%);
  }
  .open {
    transform: translate(0%);
  }
  .navlinks-container a {
    font-size: 18px;
    margin: 10px 0
  }

  .nav-authentication {
    order: 3;
    margin-left: 0;
  }
  .sign-btns {
    display: none;
  }
  .sign-user {
    display: block;
    cursor: pointer;
    border: none;
  }
  .sign-user img {
    width: 20px;
  }

}

@media (max-width: 500px) {
  .nav-icon img {
    width: 30px;
  }
  .nav-icon span {
    font-size: 20px;
  }
}


/* Separateurs d'annees pour la liste des publications */
.publication-year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
}
.publication-year span {
  display: inline-block;
  background: #003399;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}
.publication-year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c8c8c8;
}


/* Navigation interne de la page Scientific communication */
html { scroll-behavior: smooth; }
#publications, #oral-presentations, #posters { scroll-margin-top: 90px; }
.communication-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 30px;
}
.communication-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.communication-nav a:hover { transform: translateY(-1px); opacity: 0.88; }
.communication-nav .nav-publications { background: #003399; }
.communication-nav .nav-oral { background: #21867a; }
.communication-nav .nav-posters { background: #b5651d; }

/* Separateurs annuels des presentations et posters */
.event-year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
}
.event-year span {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}
.event-year::after { content: ""; flex: 1; height: 1px; background: #c8c8c8; }
.oral-year span { background: #21867a; }
.poster-year span { background: #b5651d; }
@media (max-width: 500px) {
  .communication-nav { flex-direction: column; align-items: flex-start; }
}


/* Pastilles annuelles de la page Data */
.data-year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
}
.data-year span {
  display: inline-block;
  background: #6f5499;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}
.data-year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c8c8c8;
}

/* Navigation entre Data et Scientific communication */
.page-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 26px;
}
.page-switcher a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #003399;
  border-radius: 20px;
  color: #003399;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-switcher a:hover,
.page-switcher a.active-data,
.page-switcher a.active-communication {
  color: #fff;
  background: #003399;
}


/* Bandeau navigation Data */
.page-switcher-header {
  background: #e7f0ff;
  border: 1px solid #c6d9f7;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 28px 0;
}
.page-switcher-header .page-switcher { margin: 0; }

/* Boutons inactifs blancs dans le bandeau */
.page-switcher-header .page-switcher a {
  background: #ffffff;
  color: #003399;
  border-color: #c6d9f7;
}
.page-switcher-header .page-switcher a:hover {
  background: #f5f8ff;
  color: #003399;
}
.page-switcher-header .page-switcher a.active-data,
.page-switcher-header .page-switcher a.active-communication,
.page-switcher-header .page-switcher a.active-home {
  background: #003399;
  color: #ffffff;
  border-color: #003399;
}
