:root {
  --overall-size: 2.5rem;
  --nav-bg-color: #20a1f29a;
  /* --clickable-hover-color: #ffffffa7; */
  --nav-txt-color: white;
  --header-bg-color: white;
  --nav-border-color: rgba(255, 165, 0);
  --closebtn-hover-color: red;
  --popup-hover-color: #e4edf5;
}
html {
  scroll-behavior: smooth;
  margin: 0;
  height: 100vh;
}
* {
  transition: all 0.2s;
  font-family: "Montserrat", sans-serif;
}
svg {
  z-index: -1 !important;
}
body {
  margin: 0;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-snap-points-y: repeat(100vh);
  height: 100vh;
  scroll-snap-type: y mandatory;
}

/*Important so scroll and positionning of popup does not cause problems on smaller screens*/
body.popup-open, html.popup-open {
  overflow: hidden !important;
  height: 100% !important;
  scroll-snap-type: none !important;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--header-bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--nav-bg-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--nav-border-color);
}

/* ----------------- POPUP ----------------- */
.popup-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1 !important;
}

.popup {
  background-color: var(--header-bg-color);
  height: 90%;
  width: 90%;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  font-size: calc(var(--overall-size) * 0.7);
  overflow-y: auto;
}

.popup-text ol {
  list-style-position: inside;
}


.close-btn {
  float: right;
  background: none;
  border: none;
  font-size: calc(var(--overall-size) * 1);
}

.close-btn:hover {
  color: var(--closebtn-hover-color);
  cursor: pointer;
}

.clickable:hover {
  cursor: pointer;
  opacity: 75%;
}

.widgetTitle {
  font-size: 1.5em;
  font-weight: bold;
  color: gray;
}

#personalized-services-subtitle {
  font-size: 0.8em;
  color: #333333
}

.popuptitle {
  margin-bottom: 3%;
  font-size: 2em;
}

.service-popup-title {
  font-size: 2em;
}

.service-popup-subtitle {
font-size: 1.5em;
}

/* ----------------- HEADER ----------------- */

header {
  z-index: 1;
  width: 100%;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
  /*padding: 0 1rem;*/
  height: fit-content;
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  font-weight: 500;
  background-color: var(--header-bg-color);
}
header > div {
  display: flex;
  gap: 3rem;
}

header > div > div {
  display: flex;
  font-weight: 400;
}

header img {
  z-index: 1 !important;
}

header .filter {
  filter: contrast(0) brightness(10);
}

.header-phoneNumber {
  position: absolute;
  right: 2vw;
}

.white-txt {
  color: var(--section-11-txt-color);
  background-color: var(--section-11-bg-color);
}

/* POPUPMENU */
.hidden {
  display: none;
}

#menubtn {
  border: none;
  background: none;
  /* color: var(--nav-txt-color); */
  font-size: calc(var(--overall-size) + 1rem);
}
#menubtn:hover {
  animation: rotate 0.5s forwards;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

#closebtn {
  border: none;
  background: none;
  font-size: var(--overall-size);
  float: right;
}

#closebtn:hover {
  color: var(--closebtn-hover-color);
  cursor: pointer;
}

/* ----------------- MAIN ----------------- */

section {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 10vh;
  box-sizing: border-box;
  width: 100%;
}

.section-small-padding {
  padding-top: 7vh;
}

#home > section {
  scroll-snap-align: start;
}

.title-banner {
  background-color: gray;
  color: white;
}

/* ----------------- NAV ----------------- */

nav {
  z-index: 1;
  position: fixed;
  bottom: 0.5rem;
  left: 1rem;
}

nav > button {
  font-size: 30px;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 0.4rem;
  width: fit-content;
  margin: 0 auto;
  border: none;
  background-color: var(--nav-bg-color);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--nav-txt-color);
  cursor: pointer;
  z-index: 1;
}

#nav-logo {
  width: 10rem;
}

.remonter {
  position: fixed;
    bottom: 1rem;
    font-size: 40px;
    left: 18rem;
    border-radius: 10rem;
    height: calc(var(--overall-size)* 0.8);
    width: calc(var(--overall-size)* 0.8);
    border: none;
    background-color: var(--nav-bg-color);
    font-weight: 900;
    color: var(--nav-txt-color);
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 0.35rem;
    border: 0.1rem solid var(--nav-border-color);
    box-shadow: 0.25rem 0.25rem var(--nav-border-color);
}

.list-and-jobs {
  text-align: center;
  color: var(--section-42-txt-color);
  text-align: center;
  position: relative;
  font-size: calc(var(--overall-size)* 0.7);
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

/* .list-and-jobs {
  display: flex;
  justify-content: space-between;
  gap: 2em;
} */

.job-grid {
  display: grid;
  margin-top: 10px;
  font-size: calc(var(--overall-size)* 0.5);
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-left: 10px;
  padding-right: 10px;
}

.picture, .index-picture {
  margin-right: 10px;
  margin-left: 10px;
  text-align: center;
  margin-bottom: 10px;    
  border: 1px solid var(--section-11-bg-color);
}


.picture:hover {
  scale: 1.05;
  border: 3px solid var(--section-11-bg-color);
}

.picture img {
  height: 275px;
  width: 275px;
  border: 3px solid transparent;
  cursor: pointer;
}

.index-picture img {
  width: 100%;
  height: auto;
  border: 3px solid transparent;
  cursor: pointer;
  display: block;
}

.horizontal-nav-list {
  display: flex;
  flex-wrap: wrap; /* Prevents overflowing by making it wrap on the next row. */
  flex-grow: 1; /* Makes it take all space not taken by the other items in the parent container */
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.horizontal-nav-list li {
  margin-top:auto;
  margin-bottom:auto;
}

.horizontal-nav-list li a {
  color: white;
}

.horizontal-nav-list.contact-nav-list li a {
  color: black;
}

.horizontal-nav-list li:not(:last-child) {
  margin-right: 1%;
}

.list-and-jobs ul {
  margin: 0;
  text-align: left;
  padding-top: 2%;
  list-style: none;
}

.list-and-jobs ul li {
  padding-bottom: 2%;
}

.index-jobs {
  width: 50%;
  border: 1px solid var(--section-11-bg-color);
  cursor: pointer;
  padding: 5px;
  scale: 1;
  position: static;
}

@media screen and (max-width: 1439px) {
  .index-jobs {
    position:unset;
    scale:0.6;
  }

  .horizontal-nav-list {
    display: none !important;
  }
  
}

@media screen and (max-width: 1024px) {
  .index-jobs {
    position:unset;
    scale:0.6;
  }
  
  .horizontal-nav-list {
    display: none !important;
  }
}

.index-jobs:hover {
  padding: 0px;
  border: 6px solid var(--section-11-bg-color);
}

.learn-more-text {
  margin-right: 10px;
  float: right;
  color: var(--section-42-txt-color);
  position: relative;
  font-size: calc(var(--overall-size)* 1.2);
  font-family: "Montserrat", sans-serif;
}

.learn-more-text:hover {
  text-decoration: underline;
}

/* .nav-link {
  color: var(--section-10-txt-color);
} */

.menuHeader {
  background-color: #00334d;
  color: white;
  height: 147px;
  
}

.nav-popup {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  z-index: 11;
  top: 0;
  left: 0;
}

.nav-popup.show {
  transform: translateX(0);
}

.activeLink {
  color: white !important;
  background-color: var(--section-11-bg-color) !important;
}

.activeLink:hover {
  color: var(--section-10-txt-color) !important;
}

/* .nav-link:hover {
  color: var(--section-11-bg-color);
} */

body.no-scroll {
  overflow: hidden !important;
  overflow-y: hidden !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  z-index: 10; /* Ensure it is on top of other elements */
  display: none; /* Hidden by default */
}

.overlay.show {
  display: block; /* Show when the 'show' class is added */
}

@font-face {
  font-family: Learning Curve;
  src: url("../styles/fonts/Learningcurve-Pv7Z.otf") format("opentype");
}

.handwriting div{
  /*font-family: Lucida Handwriting*/
  /* font-family: Mathilde; */
  font-family: Learning Curve;
  /* font-size: 76px;
  font-weight: 900; */
}

#contact-title {
  font-size: calc(4rem + 2vw);
  word-break: break-word;
}

#index-title {
  font-size: 2.5rem;
}

#index-subtitle {
  font-size: 2rem;
}

#statistics-section-title {
  font-size: 3.5rem;
  text-align: center;
  color: gray;
}

.contact-info {
  font-size: calc(2rem + 1vw);
  word-break: break-word;
}

#contact-info-section {
  margin-left: 1%;
}

/* ----------------- RESPONSIVE ----------------- */

@media (max-width: 600px) {
  nav {
    width: 80%;
  }
  .prochaine-section,
  .precedente-section {
    font-family: arial;
    font-size: 40px;
    width: 49%;
    height: 5vh;
  }
  .remonter {
    width: 2rem;
    height: 2rem;
    right: 0.5rem;
  }
  .nav-popup {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    font-size: 4rem;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    z-index: 11;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #closebtn {
    font-size: calc(var(--overall-size) * 6);
  }
}

@media (max-width: 1024px) {
  .list-and-jobs {
    display: block; /* override display so it displays on one row when it's small screen. Other */
  }

  .list-and-jobs ul,
  .index-jobs {
    width: 100% !important;
    margin: 1em 0;
    padding: 0 1em;
    box-sizing: border-box;
  }

  
  .index-jobs {
    scale: 1 !important; /* reset scaling for small screens */
  }

  .list-and-jobs ul {
    width: 100%;
    padding: 0 1em;
    box-sizing: border-box;
  }
}

@media (min-width: 1024px) {
  header {
    font-size: 1.4rem;
  }
  header img {
    width: 10rem;
  }
}
