header #block-abm-branding {
  background: #e0f7ff;
  width: 100%;
  /* padding-left: 8rem; */
  padding: 0vh 3.5vw;
}

.menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: fixed;
  background-color: transparent;
  width: 100%;
  z-index: 100;
  height: 100px;
  transition: height 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.menu-wrapper .logo img {
  transition: height 0.3s ease-in-out;
  height: 80px;
}

@media screen and (max-width: 780px) {
  .menu-wrapper {
    flex-direction: column;
    position: relative;
    height: auto;
  }

  .menu-wrapper .logo img {
    height: 60px;
    padding: 10px 0;
  }
}

.menu-wrapper .main {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media screen and (max-width: 780px) {
  .menu-wrapper .main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
  }
}

.menu-wrapper .main>li {
  padding: 0 8px;
  border-left: 1px solid #2f3772;
}

@media screen and (max-width: 780px) {
  .menu-wrapper .main>li {
    border-left: none;
  }
}

@media screen and (min-width: 781px) {
  .menu-wrapper.not-at-top {
    height: 50px;
    background-color: #fff;
  }

  .menu-wrapper.not-at-top .logo img {
    height: 45px;
  }

  .menu-wrapper.not-at-top .menu-main-right {
    font-size: 0;
  }
}

.menu-wrapper .main>li:first-of-type {
  border-left: none;
}

.menu-wrapper .main>li>a {
  color: #2f3772;
}

.menu-main-right>.btn-menu-right {
  color: #fff;
  font-size: 15px;
  padding: 4px 12px;
  background-color: #2f3772;
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 8px;
  margin-left: auto;
  width: fit-content;
  border-radius: 16px;
  border: solid 1px #2f3772;
  overflow: hidden;
  transition: background-color 0.3s ease-in-out;
}

@media screen and (max-width: 780px) {
  .menu-main-right>.btn-menu-right {
    margin-inline: auto;
  }
}

.menu-main-right>.btn-menu-right:hover {
  color: #2f3772;
  background-color: #fff;
}

main.row {
  padding-top: 60px;
}

.home-bg {
  min-height: 500px;
  max-width: 950px;
  margin-inline: auto;
  padding: 20px 3vw;
  color: var(--darkblue);
  position: relative;
  background-image: none !important;
}

.home-bg .home-wrapper {
  position: relative;
}

.home-bg .home-logo-home {
  position: absolute;
  top: 0;
  left: 0;
  height: 200px;
}

.home-bg .home-logo-home img {
  position: absolute;
  top: 0;
  left: 0;
  height: 200px;
  width: 150px;
  object-fit: contain;
}

.home-bg h1 {
  font-size: 105px;
  font-weight: 100;
  font-family: "playfair", serif;
  color: #5ca292;
}

.home-bg p {
  line-height: 1.3;
}

#block-taxoblock div.block-menu .titre,
#block-taxoblock div.block-menu .pre-titre {
  font-size: 46px;
  color: #2f3772;
}

@media screen and (max-width: 780px) {

  #block-taxoblock div.block-menu .titre,
  #block-taxoblock div.block-menu .pre-titre {
    font-size: 24px;
  }
}

#block-taxoblock div.block-menu ul li>a:hover {
  text-decoration: none;
}

#block-taxoblock div.block-menu ul li a::before {
  transition: background-position 0.3s ease-in-out;
}

#block-taxoblock div.block-menu ul li a:hover::before {
  background-position-x: 5px;
}

.logos-branding {
  padding: 0 3vw;
  margin-bottom: 64px;
}

.logos-branding .view-content {
  display: flex;
  height: 40px;
  justify-content: center;
}

.logos-branding-title {
  font-size: 50px;
  text-align: center;
  font-family: "playfair", sans-serif;
  font-weight: 500;
  color: #2f3772;
  line-height: 1;
  margin-bottom: 32px;
}

@media screen and (max-width: 780px) {
  .logos-branding-title {
    font-size: 24px;
  }

  .logos-branding .view-content {
    flex-direction: column;
    height: auto;
  }
}

.logos-abm.views-row>a {
  display: block;
  height: 100%;
  text-align: center;
}

@media screen and (max-width: 780px) {
  .logos-abm.views-row>a {
    text-align: left;
  }
}

.logo-img {
  padding: 10px;
}

.logos-branding .logo-img-theme {
  width: auto;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 780px) {
  .logos-branding .logo-img-theme {
    padding-bottom: 10px;
    width: initial;
    height: 50px;
  }
}

.logos-abm.views-row {
  min-width: 180px;
  padding: 0 32px;
}

.logos-abm.views-row:not(:first-child) {
  border-left: 1px solid #2f3772;
}

@media screen and (max-width: 780px) {
  .logos-abm.views-row:not(:first-child) {
    border-left: none;
  }
}

.footer-container {
  position: relative;
  z-index: 305;
  padding: 2rem 3vw 0 2rem;
}

@media screen and (max-width: 780px) {
  .footer-container {
    padding: 1rem;
  }
}

.footer-container>ul {
  border-top: 1px solid #fff;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 16px;
  text-align: right;
}

@media screen and (max-width: 780px) {
  .footer-container>ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: initial;
  }
}

.footer-container>ul a,
.footer-container>ul span {
  cursor: pointer;
}

.footer-container>ul a:hover,
.footer-container>ul span:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 8px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

@media screen and (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.logo-footer-img {
  width: 100%;
  object-fit: contain;
}

.footer-grid-middle {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
  text-align: left;
}

@media screen and (max-width: 780px) {
  .footer-grid-middle {
    flex-direction: column;
    align-items: center;
  }
}

.footer-grid-middle p {
  margin-bottom: 0;
}

.footer-grid-middle p {
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.footer-socials-link {
  height: fit-content;
}

.logo-social-footer {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-socials a {
  width: 25px;
  height: 25px;
}

.footer-socials a img {
  max-height: 100%;
  max-width: 100%;
}

#footer-address {
  line-height: 1.1;
  margin: 0;
}

@media screen and (max-width: 780px) {
  #footer-address {
    text-align: center;
  }
}

.footer-grid-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}

@media screen and (max-width: 780px) {
  .footer-grid-right {
    margin-right: auto;
    align-items: center;
  }
}

.footer-grid-right>a {
  color: #fff;
  text-decoration: none;
  width: fit-content;
  padding-right: 8px;
}

.footer-grid-right>a:not(:last-of-type) {
  border-bottom: 1px solid #fff;
}

.home-title-wrapper {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.home-title-median {
  padding-left: 20%;
}

.home-bg .arrow-down {
  position: relative;
  display: block;
  width: 10px;
  height: 35px;
  margin: auto;
  background: url(../images/arrow-down.svg) no-repeat center;
  background-size: contain;
  top: 3px;
  animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0);
  }
}

.home-bg h1.home-title-year {
  width: 40%;
  font-size: 140px;
  font-weight: 500;
  padding-left: 5%;
  line-height: 0.5;
}

.home-title-chapo {
  width: 60%;
  padding-top: 20px;
}

#block-abmtitleblock {
  padding-top: 100px;
}

@media screen and (max-width: 780px) {
  #block-abmtitleblock {
    padding-top: 10px;
  }
}

.accordion .card-header button .acc-arrow,
.accordion .card-header button.collapsed .acc-arrow {
  background-size: contain;
  width: 15px !important;
  height: 15px !important;
  transform: translateY(-50%);
  top: 50%;
}

.menu>li>a {
  color: #fff;
  font-family: "geomanist", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1;
  background: #4b535c;
  padding: 10px 30px 10px 20px;
  display: block;
  width: 100%;
  position: relative;
  border-bottom: 1px solid #fff;
}

.menu>li>a::after {
  background-size: contain;
  top: 50%;
  transform: translateY(-50%);
}

body:has(.amp) .menu>li.actif .ss-menu a::after {
  content: "";
  background: url(../images/greffe-menu-yellow.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

body:has(.organes) .menu>li.actif .ss-menu a::after {
  content: "";
  background: url(../images/greffe-menu-green.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.menu>li>a::after {
  background: url(../images/greffe-menu.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.menu li.actif a::after {
  background: url(../images/white-arrow.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.menu>li.actif .ss-menu>li.actif a::after,
.menu>li.actif .ss-menu li:not(.actif):hover a::after {
  background: url(../images/greffe-menu.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.menu>li.actif .ss-menu li:not(.actif):hover a::after {
  background: url(../images/greffe-menu-blue-active.png) center no-repeat;
  background-size: contain;
  width: 10px;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

body:has(.organes).path-taxonomy h1 {
  font-family: "playfair", sans-serif;
}

body:has(.amp).path-taxonomy h1 {
  font-family: "playfair", sans-serif;
}

body:has(.organes).page-node-type-page h1,
body:has(.organes).page-node-type-page-simple h1 {
  font-family: "geomanist", sans-serif;
}

body:has(.amp).page-node-type-page h1,
body:has(.amp).page-node-type-page-simple h1 {
  font-family: "geomanist", sans-serif;
}

.menu>li.actif .ss-menu>li.actif>a,
.menu>li.actif .ss-menu>li .sss-menu>li.actif a {
  color: #fff;
  background: #2f3772;
}

.menu>li.actif .ss-menu>li:not(.actif):hover>a,
.menu>li.actif .sss-menu>li:not(.actif):hover>a,
.path-taxonomy .views-row:hover {
  color: #2F3772;
  background: #e0e1ea;
}

body:has(.amp) .menu>li.actif>a {
  background: #fab200;
}

body:has(.amp) .menu>li>a {
  background: #fab200;
}

.block-file-2 .file,
.rapport {
  background: #2f3772;
}

body:has(.amp).path-taxonomy h1 {
  color: #fab200;
  border-bottom: 1px solid #fab200;
  font-family: "playfair", sans-serif;
}

body:has(.amp).path-taxonomy .views-row ul.links li a {
  background: #fab200;
}

body:has(.amp).page-node-type-page h1,
body:has(.amp).page-node-type-page-simple h1 {
  color: #fab200;
  font-family: "playfair", sans-serif;
}

body:has(.organes) .accordion .card-header {
  background-color: #5ca292;
}

body:has(.organes) .accordion .card-header button:focus {
  border: solid 1px #5ca292;
}

body:has(.amp) .accordion .card-header {
  background-color: #fab200;
}

body:has(.amp) .accordion .card-header button:focus {
  border: solid 1px #fab200;
}

.menu>li.actif .ss-menu a {
  font-size: 16px;
  letter-spacing: 1px;
  padding-block: 15px;
}

.path-taxonomy h2 a {
  font-weight: 400;
  font-size: 24px;
}

.menu>li.actif .ss-menu a {
  border-right: none;
  border-left: none;
}

.menu>li.actif .ss-menu li:not(:last-child) a {
  border-bottom: #2F3772 solid 1px;
}

.menu {
  box-shadow: 0 3px 6px #00000029;
}

.rapport-wrapper-btns {
  position: relative;
  display: flex;
  background: #e7e7e7;
  width: fit-content;
  margin: auto;
  border-radius: 50px;
  margin-bottom: 20px;
}

.rapport-wrapper-btns .rapport {
  font-family: geomanist, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  border-radius: 50px;
  background-color: transparent;
  width: 200px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.rapport-wrapper-btns .rapport a,
.rapport-wrapper-btns .rapport.current {
  display: inline-block;
  height: 100%;
  padding: 10px;
  font-size: 14px;
}

.rapport-wrapper-btns .rapport a::before {
  content: '';
}

.rapport-wrapper-btns .rapport.current a {
  color: #FFF;
}

.rapport-wrapper-btns .background {
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 50px;
  width: 50%;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, left 0.3s ease-in-out;
}

.rapport.greffe:not(.current):hover+.procreation+.background {
  left: 0;
  color: #fff;
  background-color: #5ca292;
}

.rapport-wrapper-btns.organes .background {
  left: 0;
  color: #fff;
  background-color: #5ca292;
}

.rapport-wrapper-btns.amp .background {
  left: 50%;
  color: #fff;
  background-color: #fab200;
}

.rapport.greffe:not(.current):hover+.background {
  left: 0;
  color: #fff;
  background-color: #5ca292;
}

.rapport.procreation:not(.current):hover+.background {
  left: 50%;
  color: #fff;
  background-color: #fab200;
}

.rapport.current:has(+ .rapport:not(.current):hover),
.rapport:not(.current):hover+.rapport.current,
.rapport a {
  color: #2F3772 !important;
}

.rapport:not(.current):hover a,
.rapport.current {
  color: #fff !important;
}


.rapport.greffe:not(.current):hover a,
.rapport.procreation:not(.current):hover a {
  color: #fff;
}

#block-abmtitleblock .block-file-2 {
  width: fit-content;
  margin: auto;
}

.block-file .file,
.block-file-2 .file {
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.block-file .file:hover,
.block-file-2 .file:hover {
  background-color: #2F3772 !important;
  text-decoration: none;
}

#block-abmtitleblock:has(.organes) .block-file-2 a,
#block-abmtitleblock:has(.amp) .block-file-2 a {
  font-weight: 300;
  text-transform: none;
  font-family: geomanist, sans-serif;
  font-size: 14px;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#block-abmtitleblock:has(.organes) .block-file-2 a {
  background-color: #5ca292;
}

#block-abmtitleblock:has(.amp) .block-file-2 a {
  background-color: #fab200;
}

#block-abmtitleblock:has(.organes) .block-file-2 a:hover,
#block-abmtitleblock:has(.amp) .block-file-2 a:hover {
  background-color: #2F3772;
  text-decoration: none;
}

#block-abmtitleblock .title-rapport {
  font-family: 'playfair', serif;
  font-size: 30px;
  margin: auto;
  width: fit-content;
  color: #2F3772;
  margin-bottom: 20px;
  text-align: center;
}

#block-blocdemenu .block-file-2,
#block-blocdemenu .rapport1,
#block-blocdemenu .rapport2 {
  display: none;
}

h1.page-title {
  font-weight: 400;
}

h1.page-title>span {
  display: block;
  font-family: geomanist, sans-serif;
  font-weight: 500;
  font-size: 20px;
}

.file:has(a[title="Voir le PDF"]) {
  text-align: right;
}

.file:has(a[title="Voir le PDF"]) a {
  background: #2F3772;
  border-radius: 30px;
  position: relative;
  width: 80px;
  height: 30px;
  display: inline-block;
}

.file a[title="Voir le PDF"]::after {
  content: 'PDF';
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  z-index: 1;
}

#block-abm-page-title {
  padding-bottom: 20px;
  margin-bottom: 20px;
}

body:not(.path-taxonomy):has(.amp) #block-abm-page-title {
  border-bottom: solid 1px #fab200;
}

body:not(.path-taxonomy):has(.organes) #block-abm-page-title {
  border-bottom: solid 1px #5ca292;
}

@media screen and (max-width: 780px) {
  .rapport-wrapper-btns {
    display: none;
  }

  .rapport-wrapper-btns .rapport {
    width: 50%;
    font-size: 12px;
  }

  #block-abmtitleblock .title-rapport {
    padding-top: 16px;
    padding-inline: 16px;
    font-size: 18px;
  }

  .home-title-wrapper {
    flex-direction: column;
  }

  .home-bg h1 {
    max-width: 90%;
    font-size: 40px;
  }

  .home-title-median {
    padding-left: 10%;
  }

  .home-bg h1.home-title-year {
    font-size: 70px;
  }

  .home-title-chapo {
    width: 90%;
  }

  #block-taxoblock div.block-menu ul {
    flex-direction: column;
  }

  #block-taxoblock div.block-menu:not(:last-child) ul li:not(:nth-child(4)) {
    border-right: none;
    border-bottom: solid 2px #5ca292;
  }

  #block-taxoblock div.block-menu:last-child ul li:not(:nth-child(6)) {
    border-right: none;
    border-bottom: solid 2px #fab200;
  }

  #block-taxoblock div.block-menu ul li {
    width: 100%;
    max-width: initial;
  }
}