/************************* STYLES DES ELEMENTS PARTIELS *************************/

/******************** HEADER ********************/
header {
  font-weight: 500;
  box-shadow: var(--box-shadow-light);
}

header .header-container {
  padding: 0 1.5rem;
}

/* pour corriger la marge du logo RF */
header .header-container .logo-rf {
  margin-left: -8px;
}
header .header-container .header-title {
  font-size: 1.1rem;
  color: var(--text-grey);
  font-weight: 500;
  white-space: nowrap;
}

header .external-link::after {
  background: var(--text-grey);
}

header .external-link:hover::after {
  background: var(--cereq-color-dark);
}

/* pour l'icône podcast */
header .header-links .icone-podcast {
  width: max-content;
}
header .header-links .icone-podcast::before {
  position: relative;
  display: block;
  background-color: var(--text-grey);
  width: 1.5rem;
  height: 1.5rem;
  mask: url("../assets/images/icone-podcast.svg");
  -webkit-mask: url("../assets/images/icone-podcast.svg");
}

header .header-links .icone-podcast:hover::before {
  background-color: var(--cereq-color-dark);
}

/* logos et titre */
header .header-institution {
  display: flex;
  align-items: center;
}

/***** MENU DESKTOP *****/
header #menu-desktop {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header #menu-desktop .header-institution img {
  max-width: 6rem;
}

header #menu-desktop .header-institution .separator {
  border-left: 1px solid #c5c5c5;
  height: 40px;
  margin-left: 20px;
}

header #menu-desktop .header-institution p {
  margin: 0 20px;
}

/* liens */
header #menu-desktop .header-links ul {
  display: flex;
  align-items: center;
  gap: 15px;
}

header #menu-desktop .header-links ul li > a {
  color: var(--text-grey);
}
header #menu-desktop .header-links ul li > a:hover {
  color: var(--cereq-color-dark);
}

header #menu-desktop .header-links ul li:not(:first-of-type) > a {
  font-size: 1.5rem;
}

header #menu-desktop .header-links ul li:first-of-type > a {
  font-size: 0.9rem;
  font-weight: 600;
}

/***** FIN MENU DESKTOP *****/

/***** MENU MOBILE *****/
header #menu-mobile {
  display: none;
  padding: 0.5rem 0;
}

header #menu-mobile .header-institution::after {
  background-color: var(--border-light-grey);
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  transform: translateY(2.5rem);
  width: calc(100% - 3rem);
}

header #menu-mobile .header-institution img {
  max-width: 5rem;
}

header #menu-mobile .header-institution #menu-open {
  /* pour pousser le bouton à droite */
  margin-left: auto;
}

header #menu-mobile #menu-open i {
  font-size: 1.2rem;
}

header #menu-mobile p {
  margin-top: 1rem;
}
/***** FIN MENU MOBILE *****/

/***** MENU MODAL *****/
header #menu-modal {
  display: none;
  padding-top: 1rem;
}

/* bouton fermer */
header #menu-modal #menu-close {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
header #menu-modal #menu-close i {
  font-size: 1.2em;
  vertical-align: middle;
}

header #menu-modal .header-links {
  margin-top: 1rem;
}

header #menu-modal .header-links a:not(button a) {
  color: var(--text-grey);
}

header #menu-modal .header-links a:not(button a):hover {
  color: var(--cereq-color-dark);
}

header #menu-modal .header-links .external-link {
  font-size: 0.9rem;
}
header #menu-modal .header-links ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 20px 0;
}
header #menu-modal .header-links ul li {
  margin: 10px 20px 0 0;
}
header #menu-modal .header-links ul li a {
  font-size: 1.5rem;
}

/***** FIN MENU MODAL *****/

/******************** FIN HEADER ********************/

/******************** FOOTER ********************/
footer {
  background-color: var(--text-dark);
  color: #ffffff;
  font-weight: 400;
  font-size: 0.875rem;

  /* pour footer fixe */
  flex-shrink: 0;
}

footer .footer-container {
  padding: 1.5rem 1.5rem;
}

footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 30px;
}

footer a {
  color: #ffffff;
  width: max-content;
}

footer a:hover {
  color: var(--cereq-color);
}

footer .footer-links p,
footer .footer-socials p {
  font-weight: 500;
}

footer .footer-links p {
  margin-bottom: 20px;
}

footer .footer-links a {
  margin-right: 40px;
}

footer .footer-socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer .external-link::after {
  background: #fff;
}

footer .external-link:hover::after {
  background: var(--cereq-color);
}

/* logos */
footer img {
  max-width: 200px;
  /* pour aligner avec le reste */
  margin-top: -10px;
  margin-left: -12px;
}

/* réseaux sociaux */
footer .footer-socials ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer .footer-socials ul li {
  font-size: 1.5rem;
}

footer .footer-socials .icone-podcast {
  width: max-content;
}
footer .footer-socials .icone-podcast::before {
  position: relative;
  display: block;
  background-color: #ffffff;
  width: 1.5rem;
  height: 1.5rem;
  mask: url("../assets/images/icone-podcast.svg");
  -webkit-mask: url("../assets/images/icone-podcast.svg");
}

footer .footer-socials .icone-podcast:hover::before {
  background-color: var(--cereq-color);
}

/******************** FIN FOOTER ********************/

/******************** BOUTON BACK TO TOP ********************/
.scrollup {
  background-color: var(--cereq-color);
  opacity: 0.6;
  padding: 0.8rem 0.5rem;
  border-radius: 0.4rem;
  border: none;
  position: fixed;
  right: 0.8rem;
  bottom: -20%;
  z-index: 10;
  transition: 0.4s;
}

.scrollup.show-scroll {
  bottom: 2rem;
}

.scrollup-icon {
  font-size: 1.1rem;
  color: #fff;
}

/******************** FIN BOUTON BACK TO TOP ********************/

/******************** RESPONSIVE ********************/

/* Breakpoints en em */
/* Mobile	480px	30em
Tablette	768px	48em
Petit laptop	1024px	64em
Desktop	1280px	80em */

@media screen and (max-width: 64em) {
  header #menu-mobile {
    display: block;
  }
  header #menu-desktop {
    display: none;
  }
  header #menu-modal {
    display: none;
  }

  footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  footer .footer-links p {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 48em) {
  footer img {
    max-width: 150px;
    margin-left: -8px;
  }
}
/******************** FIN RESPONSIVE ********************/
