/* togmenu */

#togMenu {
  position: relative;
  width: 30px;
  aspect-ratio: 1/1;
  z-index: 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  padding: 0;
  cursor: pointer;
}

#togMenu.open {
  width: auto;
}

#togMenu .burger {
  display: block;
  width: 1.875rem;
  height: 1.5rem;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
}

.burger span {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.1s;
  -o-transition: all 0.1s;
  transition: all 0.1s;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blanc);
  border: 0px solid;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
}

#burger span#t1 {
  top: 15%;
}

#burger span#t2 {
  top: calc(50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

#burger span#t3 {
  bottom: 15%;
}

#togMenu.open .burger span {
  width: 131%;
  height: 3px;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
}

#togMenu.open #burger span#t1 {
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 0;
}

#togMenu.open #burger span#t2 {
  display: none;
}

#togMenu.open #burger span#t3 {
  -webkit-transform-origin: bottom left;
  -ms-transform-origin: bottom left;
  transform-origin: bottom left;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  bottom: 0;
}
/* header */

#menu_principal {
  display: none;
}

#menu_principal ul {
  list-style: none;
  padding: 0;
}

#menu_principal ul a {
  text-decoration: none;
  color: var(--blanc);
  font-weight: var(--normal);
  display: block;
}

#menu_principal.open {
  display: flex;
  top: var(--header-height);
  flex-direction: column;
  left: 0;
  position: absolute;
  z-index: 3;
  background-color: var(--secondary);
  height: calc(100vh - var(--header-height));
  width: 100%;
  padding-left: calc((100% - var(--container-width)) / 2);
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: scroll;
}

#menu_principal nav {
  padding-top: 3.62rem;
  padding-bottom: 3.62rem;
  width: 100%;
}

#site-header {
  width: 100%;
  z-index: 4;
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
}

#site-header .menu_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary);
  border: 2px solid var(--blanc);
  padding: 0 var(--gap-312);
  height: 100%;
  width: 100%;
}

.menu_contact {
  line-height: normal;
  font-size: 1.5rem;
  text-align: center;
  color: var(--blanc);
  letter-spacing: -0.045rem;
  font-weight: var(--extra-bold);
  text-decoration: none;
}

#menu_principal .top-menu > li,
#menu_principal .top-menu > li > a {
  position: relative;
}

#menu_principal .top-menu > li:not(:last-child) > a:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 1.5px;
  bottom: 0;
  left: 0;
  background-color: var(--blanc);
}

#menu_principal .top-menu > li > a {
  padding: 1rem 5.31rem 1rem 0;
  line-height: 140%;
  font-size: 2rem;
}

#menu_principal .sub-menu > li > a {
  padding: 0;
  padding-left: 1.88rem;
  font-size: 1.8rem;
  line-height: 175%;
}

@media (max-width: 1023px) {
  #menu_principal .menu-item-has-children > a {
    margin-bottom: 0.62rem;
  }
}
@media (min-width: 1024px) {
  #menu_principal .menu-item-has-children:hover::after {
    position: absolute;
    content: "";
    width: 50px;
    aspect-ratio: 70/46;
    background: url("../images/custom/arrow_tertiary_large.svg") no-repeat
      center center / contain;
    top: 50%;
    right: calc((8rem - 70px) / 2);
    transform: translateY(-50%);
  }
  #menu_principal .top-menu > li > a {
    padding: 1.5rem 5.31rem 1.5rem 0;
  }
  #menu_principal .sub-menu > li > a {
    padding: 1rem 0rem 1rem 3.56rem;
  }
  #menu_principal li.menu-item-has-children > a {
    padding-right: 8rem;
  }
}
@media (min-width: 1536px) {
  #menu_principal .top-menu > li > a {
    padding: 2rem 5.31rem 2rem 0;
  }
  #menu_principal .menu-item-has-children:hover::after {
    width: 70px;
  }
  #menu_principal li.menu-item-has-children > a {
    padding-right: 8rem;
  }
}

/* cta */

.cta_container_mobile {
  padding-right: 3.62rem;
  display: flex;
  flex-direction: column;
  gap: var(--gap-125);
  margin-left: auto;
  padding-bottom: 4rem;
}

.cta_container_mobile .bouton {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta_container_mobile {
    flex-direction: row;
  }
}

@media (max-width: 1023px) {
  .hide_header #site-header {
    top: -100%;
    transition: top 0.4s ease;
  }
  .home:not(.scrollingUp):not(.scrolled),
  .home.scrollingUp:not(.scrolled) .entete_home {
    margin-top: var(--header-height);
    transition: top 0.4s ease;
  }

  .home.hide_header .entete_home {
    transition: top 0.4s ease;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  /* header */
  #site-header {
    width: var(--header-width);
    height: 100%;
  }

  #site-header .menu_bar {
    border-width: 3px;
    position: relative;
    height: 100%;
    flex-direction: column;
    padding: var(--gap-312) 0;
    z-index: 6;
  }

  .menu_contact {
    font-size: 1.2rem;
  }

  #menu_principal.open {
    top: 0;
    left: var(--header-width);
    width: calc(100vw - var(--header-width));
    height: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  #menu_principal nav {
    padding: 3.62rem 3.62rem 2.5rem 3.62rem;
    width: 100%;
  }

  #menu_principal .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
  }

  #menu_principal ul.top-menu > li:hover .sub-menu {
    display: block;
  }

  /* menu gauche */

  #menu_principal .top-menu {
    width: fit-content;
  }

  #menu_principal .top-menu > li:hover > a {
    font-weight: var(--bold);
    text-decoration-line: underline;
  }

  #menu_principal .top-menu > li > a {
    border-right: 3px solid var(--blanc);
  }

  #menu_principal .top-menu > li:not(:last-child) > a:after {
    width: 110px;
    height: 3px;
  }

  /* menu droite */
  #menu_principal .sub-menu > li > a {
  }
}

@media (min-width: 1280px) {
  #menu_principal nav {
    padding-left: 5.62rem;
    padding-right: 5.62rem;
  }

  .cta_container_mobile {
    padding-right: 5.62rem;
  }

  #menu_principal .top-menu > li > a {
    font-size: 2.5rem;
  }

  #menu_principal .sub-menu > li > a {
    font-size: 2rem;
  }
  .menu_contact {
    font-size: 1.5rem;
  }
}

@media (min-width: 1536px) {
  #menu_principal nav {
    padding-left: 7.62rem;
    padding-right: 7.62rem;
  }
  .cta_container_mobile {
    padding-right: 7.62rem;
  }

  #menu_principal .top-menu > li > a {
    font-size: 3.125rem;
  }

  #menu_principal .sub-menu > li > a {
    font-size: 2.5rem;
  }
}

/* footer */

footer {
  background-color: var(--secondary);
  padding-top: var(--gap-312);
  padding-bottom: var(--gap-312);
  border-top: 3px solid var(--blanc);
  border-right: 3px solid var(--blanc);
}

footer .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: var(--gap-625);
}

footer .contact .phone + a,
footer .contact .address + .phone {
  margin-top: var(--gap-125);
}

footer .sns a + a,
footer .contact a:not(.phone) + a {
  margin-top: var(--gap-062);
}

footer .address p,
footer .address span {
  line-height: normal;
  text-transform: uppercase;
  color: var(--blanc);
}

footer .address span {
  padding-left: calc(12px + var(--gap-062));
  font-size: var(--fs-m);
  font-weight: var(--bold);
  margin-bottom: var(--gap-062);
  display: inline-block;
  position: relative;
}

footer .address span:before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 3px solid var(--blanc);
}

footer .address p {
  font-weight: var(--semi-bold);
}

footer .contact .phone {
  display: block;
  font-size: var(--fs-l);
  font-weight: var(--extra-bold);
  color: var(--blanc);
  text-decoration: none;
}

#page footer .bouton {
  text-transform: none;
  border-width: 2px;
  font-size: var(--fs-s);
  padding-left: 1.25rem;
  padding-right: calc(var(--gap-062) + 20px + 1.25rem);
}

#page footer .bouton:after {
  height: 17px;
  width: 17px;
  background-image: url("../images/custom/arrow-alt.svg");
  right: 1.25rem;
}

#page footer .bouton:hover:after {
  background-image: url("../images/custom/arrow_blanc_hover.svg");
}

#page footer .bouton.contact {
  padding-right: calc(var(--gap-062) + 22px + 1.25rem);
}
#page footer .bouton.contact:after {
  width: 22px;
  height: 19px;
  background-image: url(../images/custom/contact.svg);
}

#page footer .sns .bouton {
  font-weight: var(--semi-bold);
  padding-left: calc(0.94rem + 0.62rem + 26px);
} /*
#page footer .sns .bouton:nth-child(1) {
    background: url(../images/custom/facebook.svg) no-repeat 0.94rem center /contain;
    background-size: 26px 26px;
}
#page footer .sns .bouton:nth-child(2) {
    background: url(../images/custom/linkedin.svg) no-repeat 0.94rem center /contain;
    background-size: 26px 26px;
}
#page footer .sns .bouton:nth-child(3) {
    background: url(../images/custom/instagram.svg) no-repeat 0.94rem center /contain;
    background-size: 26px 26px;
}*/

#page footer .sns .bouton.reseau_facebook {
  background: url(../images/custom/facebook.svg) no-repeat 0.94rem center /
    contain;
  background-size: 26px 26px;
}
#page footer .sns .bouton.reseau_linkedin {
  background: url(../images/custom/linkedin.svg) no-repeat 0.94rem center /
    contain;
  background-size: 26px 26px;
}
#page footer .sns .bouton.reseau_instagram {
  background: url(../images/custom/instagram.svg) no-repeat 0.94rem center /
    contain;
  background-size: 26px 26px;
}

#page footer .sns .bouton:hover {
  background-color: var(--tertiary);
}

.join {
  background-color: var(--tertiary);
  border: 2px solid var(--blanc);
  border-radius: var(--rounded);
  padding: 3.12rem;
  width: fit-content;
  height: fit-content;
}

.join span.title {
  color: var(--secondary);
  font-weight: var(--bold);
  font-size: var(--fs-l);
  line-height: 100%;
  margin-bottom: 2.5rem;
  display: block;
}

.join a {
  display: block;
  text-decoration: none;
  font-size: var(--fs-m);
  line-height: 100%;
  color: var(--secondary);
  padding-right: calc(1.31rem + 2.1rem + 37px);
  position: relative;
  width: fit-content;
}

.join a:after {
  display: block;
  content: "";
  width: 41px;
  height: 42px;
  position: absolute;
  background: url("../images/custom/arrow_huge.svg") no-repeat right center /
    contain;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

footer .vertical_line {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1535px) {
  footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-625);
  }
}

@media (min-width: 1536px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  footer .vertical_line {
    display: block;
    width: 3px;
    background-color: var(--blanc);
  }
  footer .logo {
    max-width: 15vw;
  }

  .join {
    width: 20rem;
  }
}

@media (min-width: 1536px) {
  footer .contact .phone {
    font-size: var(--fs-l);
  }
  #page footer .bouton {
    font-size: var(--fs-base);
  }
}

#sub_footer {
  background-color: var(--secondary);
  border-bottom: 3px solid var(--blanc);
  border-right: 3px solid var(--blanc);
}

#sub_footer .container {
  padding: var(--gap-125) 0;
  border-top: 3px solid var(--blanc);
}

#sub_footer ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  justify-content: flex-start;
  padding: 0;
}

#sub_footer li {
  padding: 0 var(--gap-125);
  border-left: 1px solid var(--blanc);
  line-height: 150%;
  font-size: var(--fs-s);
  color: var(--blanc);
  text-wrap: nowrap;
}

#sub_footer li a {
  position: relative;
  text-decoration: none;
  padding-right: calc(1.25rem + 9px + 1.25rem);
}

#sub_footer li a:after {
  display: block;
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  content: "";
  width: 9px;
  height: 10px;
  background: url("../images/custom/arrow-alt.svg") no-repeat center center /
    contain;
}

#sub_footer li a:hover:after {
  background: url("../images/custom/arrow-alt-hover.svg") no-repeat center
    center / contain;
}

#sub_footer li:last-child {
  border-right: 1px solid var(--blanc);
}

@media (min-width: 1536px) {
  #sub_footer li {
    font-size: var(--fs-m);
  }
}
