:root {
  --length: 0;
  --bg-color: #fff7ed;
  --text-color: #062139;
}

html {
  scroll-behavior: smooth;
  pointer-events: auto;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  --bg-color: #272727;
  --text-color: #fff7ed;
}

#toggle-theme{
  border: none;
  width: 50px;
  color: #062139;
  background-color: transparent;
  font-size: x-large;
  cursor: pointer;
  z-index: 1;
}
#toggle-theme:focus{
  outline: none;
}
.floating-icon {
  position: fixed;
  right: 20px;
  top:12vh;
  font-size: 2rem;
  color: white;
  mix-blend-mode: difference;
}

a:link {
  text-decoration: inherit;
  color: inherit;
  cursor: pointer;
}

a:visited {
  text-decoration: inherit;
  color: inherit;
  cursor: pointer;
}

.flex-col-lv {
  display: flex;
  flex-direction: column;
}

.flex-row-lv {
  display: flex;
  flex-direction: row;
}

.justify-center-lv {
  justify-content: center;
}

#header-top-line {
  position: sticky;
  top: 0;
  height: 10vh;
  width: 100vw;
  border-bottom: 1px solid black;
  display: flex;
  flex-direction: row;
  background-color: #fff7ed;
  z-index: 10;
}

#logo-header-top-line {
  position: relative;
  left: 5vw;
  height: 100%;
  padding: 20px;
}


#header-top-line-menu {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  align-items: center;
  margin-right: 5vw;
  color: #0B0B45;
}

#header-top-line-menu-mobile {
  display: none;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  align-items: center;
  margin-right: 5vw;
  color: #0B0B45;
}

.top-line-button {
  padding: 0 20px;
  cursor: pointer;
  color: black;
}

.top-line-button:hover {
  color: #0B0B45;
  scale: 1.1;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff7ed;
  min-width: 300px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown-content-touched {
  display: block;
}

/* Afficher le dropdown au survol du parent */
.dropdown-button:hover .dropdown-content {
  display: block;
}

.dropdown-button {
  display: flex;
  cursor: pointer;
}

.dropdown-button>i {
  padding-left: 10px;
}

.section {
  width: 100vw;
  height: unset;
}

.part-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10vw;
}

.part-title>span {
  margin-bottom: 1rem;
  font-size: x-large;
  font-weight: bold;
}

.part-title>p {
  margin: 0;
}

.contact-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #333;
  padding: 15px 50px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
  margin-top: 10vh;
}

.contact-color-blue {
  color: #062139;
  border-color: var(--text-color);
}

.contact-color-white {
  color: white;
  border-color: white;
}

.contact-content {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.contact-text {
  font-size: larger;
}

.hovericon-left {
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  -webkit-transform: translateX(-10px);
  transform: translateX(-10px);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: absolute;
  left: -50px;
  /* position décalée à droite sans influencer le centrage */
}

.contact-button:hover .hovericon-left {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  left: -40px;
}

.hovericon {
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  -webkit-transform: translateX(-10px);
  transform: translateX(-10px);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: absolute;
  right: -50px;
  /* position décalée à droite sans influencer le centrage */
}

.contact-button:hover .hovericon {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  right: -25px;
}


#footer {
  background-color: #000000c4;
  border-top: 2px solid #062139;
  height: 10vh;
  color: #fff7ed;
  display: flex;
  align-items: center;
  padding-left: 5vw;
}

@media only screen and (max-width: 640px) {

  .part-title>p {
    text-align: center;
  }

  #header-top-line-menu {
    display: none;
  }

  #header-top-line-menu-mobile {
    display: flex;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 5.5vh;
    left: unset;
    right: 0;
    background-color: #fff7ed;
    min-width: 300px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }
}