@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Quicksand:wght@300;500;700&family=Sacramento&display=swap");

@font-face {
  font-family: "tilda-sans-regular";
  src: url("../medias/font/tilda-sans_regular.woff2") format("woff2");
}
@font-face {
  font-family: "tilda-sans-semi";
  src: url("../medias/font/tilda-sans_semibold.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

button,
input {
  border: none;
}

:root {
  --primary-color: #3962e0;
  --color-50: #e9eefc;
  --color-100: #c6d2f6;
  --color-200: #a2b6f1;
  --color-300: #7f9aeb;
  --color-400: #5c7ee5;
  --color-600: #204bcf;
  --color-700: #1b3fac;
  --color-800: #153289;
  --color-900: #102565;
  --color-950: #0a1842;

  --white: #f1f1f4;
  --gun-powder-100: #dadae2;
  --gun-powder-200: #c3c3d0;
  --gun-powder-300: #acacbe;
  --gun-powder-400: #9595ac;
  --gun-powder-500: #7e7e9b;
  --gun-powder-600: #696987;
  --gun-powder-700: #575770;
  --gun-powder-800: #434356;
  --gun-powder-900: #333342;
  --black: #22222b;
  --danger-color: #d32f2f;
  --transition-speed: 0.3s;
}

body {
  overflow-x: hidden;
  max-width: 1920px;
  margin-right: auto;
  margin-left: auto;
  background: var(--white);
  color: var(--black);
  font-family: "tilda-sans-regular", sans-serif;
  font-size: 14px;
  font-style: normal;
  line-height: normal;
  width: 100vw;
  position: relative;
}

main {
  display: flex;
  flex-direction: column;
  padding: 32px;
  padding-top: 128px;
}

section {
  padding: 32px 168px;
}

.icons {
  width: 20px;
  height: 20px;
}

.paragraphe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------------- Fonts -------------- */

a {
  text-decoration: none;
  color: var(--black);
}

h1 {
  font-family: "tilda-sans-semi", sans-serif;
  font-size: 60px;
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

h3 {
  font-family: "tilda-sans-semi", sans-serif;
  font-size: 1.5rem;
  font-style: normal;
}

h4 {
  font-family: "Sacramento", cursive;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  color: var(--white);
  border-radius: 30px;
  border: 2px solid var(--white);
  width: fit-content;
  height: 35px;
  padding: 10px 15px;
  text-transform: lowercase;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: var(--white);
}

.tag p {
  font-size: 12px;
  width: fit-content;
}

@media screen and (max-width: 1024px) {
  body {
    font-size: 12px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .tag p {
    font-size: 10px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 28px;
  }
}

/* -------------- Header -------------- */

header {
  width: 100%;
  position: fixed;
  z-index: 50;
  max-width: 1920px;
  margin-right: auto;
  margin-left: auto;
}

header nav svg {
  width: fit-content;
}

.menu {
  display: flex;
  height: 80px;
  padding: 0 16px;
  margin: 16px 32px;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  background: var(--color-100);
}

.menu-btn {
  display: none;
  width: 45px;
  height: 45px;
  padding: 10px;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: var(--black);
  margin: 3px 0;
  transition: 0.4s;
}

nav {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.list-page,
.list-help {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.list-page {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

header .button.active {
  box-shadow: #3963e02a 0px 4px 8px 2px inset;
}

.list-help {
  display: flex;
  gap: 15px;
}

.button-help-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

@media screen and (max-width: 1440px) {
  section {
    padding: 0;
  }
}

@media screen and (max-width: 1024px) {
  main {
    padding: 16px;
    padding-top: 128px;
  }

  .menu {
    margin: 16px;
    padding: 16px;
  }

  .menu-btn {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-100);
    position: absolute;
    top: 80px;
    right: 16px;
    width: calc(100% - 32px);
    border-bottom: 3px solid var(--primary-color);
    padding-top: 16px;
    border-radius: 0 0 16px 16px;
  }

  .list-page {
    padding: 16px;
    gap: 16px;
    width: 100%;
  }

  .list-page li,
  .list-page a {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .list-page {
    flex-direction: column;
    align-items: center;
  }
}

/* -------------- Footer -------------- */
footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(1920px - 64px);
  margin: 16px 32px;
}

.lien-principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
}

.contact-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.lien-important {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--black);
}

@media screen and (max-width: 1024px) {
  footer {
    width: auto;
    margin: 16px;
  }
}

@media screen and (min-width: 768px) {
  footer {
    width: calc(100% - 64px);
  }
}

/* -------------- Changer de couleur -------------- */
.choose-color {
  position: fixed;
  left: 50px;
  top: 40vh;
  display: none;
}

.bouton-color {
  width: 25px;
  height: 25px;
  border-radius: 25px;
  cursor: pointer;
}

.bouton-color.blue {
  background-color: #6cb4e4;
}

.bouton-color.pink {
  background-color: #ff3dff;
}

/* -------------- Image -------------- */
.image-container {
  width: 500px;
  height: 500px;
}

.fit-image {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  object-fit: cover;
}

/* -------------- Boutons -------------- */

/*Bouton ligne*/
.bouton-ligne {
  width: 100%;
  animation: all 1s ease-in-out;
}

.bouton-ligne div {
  display: flex;
  padding: 25px;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--white);
  color: var(--white);
}

.bouton-ligne div:hover {
  background-color: var(--color-700);
  color: var(--black);
}

.bouton-ligne:hover svg {
  animation: slide1 1s ease-in-out infinite;
  margin-left: 9px;
  fill: var(--black);
}

.bouton-ligne:hover svg path {
  fill: var(--black);
}

@keyframes slide1 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, 0);
  }
}

.line-button {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: flex;
  height: 40px;
  align-items: center;
  padding: 8px;
  gap: 8px;
  border-radius: 8px;
  width: fit-content;
}

.button.grey {
  background-color: var(--white);
}

.button.normal {
  background-color: var(--color-100);
}

.button.normal:hover {
  background-color: var(--color-200);
}

.button.normal.active:hover {
  background-color: unset;
}

.button.blue,
.button.blue.active:hover {
  background: var(--primary-color);
  color: var(--white);
}

.button.blue:hover {
  background: var(--color-600);
}

.button.icon {
  border-radius: 40px;
  height: 40px;
  width: 40px;
}

.button.filtre {
  background-color: var(--color-100);
}

.button.filtre.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* -------------- Frame -------------- */

.frame-custom {
  height: 91px;
  margin: 0 10px;
  padding: 5px 15px;
  position: relative;
  border: 3px solid var(--primary-color); /* Utilisez une bordure transparente par défaut */
  transition: border 1s ease-in-out; /* Ajoutez une transition pour la propriété "border" */
}

.frame-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--primary-color);
  background: var(--white);
}

.corner1 {
  top: -6px;
  left: -6px;
}

.corner2 {
  top: -6px;
  right: -6px;
}

.corner3 {
  left: -6px;
  bottom: -6px;
}

.corner4 {
  right: -6px;
  bottom: -6px;
}

/* -------------- Bannière -------------- */

.banner {
  padding: 0;
  width: 100%;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--white);
}

.marquee {
  position: relative;
  overflow: hidden;
  --offset: 20vw;
  --move-initial: calc(-25% + var(--offset));
  --move-final: calc(-50% + var(--offset));
}

.marquee__inner {
  width: fit-content;
  display: flex;
  position: relative;
  transform: translate3d(var(--move-initial), 0, 0);
  animation: marquee 10s linear infinite;
  animation-play-state: running;
}

.marquee span {
  font-size: 10vw;
  padding: 0 2vw;
}

.marquee:hover .marquee__inner {
  animation-play-state: running;
}

@keyframes marquee {
  0% {
    transform: translate3d(var(--move-initial), 0, 0);
  }

  100% {
    transform: translate3d(var(--move-final), 0, 0);
  }
}

/* -------------- Loader -------------- */
.loader {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--black);
  position: absolute;
  z-index: 100;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

.underline {
  height: 2px;
  background-color: var(--black);
  display: inline-block;
  animation: fill 2s ease infinite;
}

@keyframes fill {
  0% {
    width: 0%;
  }

  50% {
    width: 10%;
  }

  100% {
    width: 0%;
  }
}

.tag {
  display: flex;
  border-radius: 12px;
  padding: 4px 8px;
  width: fit-content;
  font-weight: 700;
  background-color: var(--white);
  box-shadow: 0 4px 6px 0 rgba(34, 34, 43, 0.2) inset;
  align-items: center;
  gap: 4px;
}

.services .tag {
  box-shadow: none;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 500;
}

.tag .puce {
  width: 4px;
  height: 4px;
  background-color: var(--white);
  border-radius: 4px;
}
