@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-VariableFont_wght.ttf");
}

@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/Caprasimo/Caprasimo-Regular.ttf");
}

:root {
  --primary-color: #ffbe57ff; /* Jaune */
  --primary-light: #ffce80; /*  */
  --secondary-color: #692c8fff; /* Violet */
  --accent-color: #f8f9fa; /* Light gray */
  --text-color: #333333; /* Dark gray */
  --text-font: "Montserrat";
  --heading-font: "Caprasimo";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family:
    var(--text-font),
    sans-serif;
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--primary-light);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1.2em;
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  font-family:
    var(--heading-font),
    serif;
  margin: 1ch 0;
}

p {
  margin: 1.5ch 0;
}

/* Header */
.header {
  background-color: var(--primary-light);
  /* background-color: none; */
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 2rem;
  width: auto;
  /* position: relative; */
  z-index: -1;
  animation: bikeRide 15s infinite linear;
  transition: transform 0.1s linear;
}

@keyframes bikeRide {
  0% {
    transform: translateX(calc(-100vw - 150px));
    opacity: 1;
  }
  98% {
    transform: translateX(calc(100vw + 150px));
    opacity: 1;
  }
  99% {
    transform: translateX(calc(100vw + 150px));
    opacity: 0;
  }
  100% {
    transform: translateX(calc(-100vw - 150px));
    opacity: 0;
  }
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s;
  margin-left: 2ch;
}

.logo-text:hover {
  /* color: var(--text-color); */
  text-shadow: 2px 2px 8px var(--secondary-color);
  color: var(--primary-color);
}

.logo-brand:hover .logo-image {
  animation-play-state: paused;
  transform: translateX(0px) !important;
  opacity: 1 !important;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher .lang-btn {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  font-size: 0.8rem;
  transition: all 0.3s;
  background: var(--primary-light);
}

.language-switcher .lang-btn:hover,
.language-switcher .lang-btn.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  color: white;
  padding: 15em 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 150%;
  background-image: url("/media/logo_main.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  border: 2px solid var(--primary-color);
  /* border-radius: 8px; */
}

.cta-button:hover {
  /* text-shadow: 2px 2px 8px var(--secondary-color); */
  /* box-shadow: 1px 4px 0px var(--secondary-color); */
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: var(--primary-color);
}

/* Sections */
section {
  padding: 4ch;
}

section h2 {
  text-align: center;
  margin: 3rem 0;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

/* Services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: white;
  padding: 2rem;
  border: 2px solid var(--accent-color);
  text-align: center;
}

.service-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#about {
  margin: auto;
  font-size: 2ch;
}
/* Technicians */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: white;
  padding: 2rem;
  border: 2px solid var(--accent-color);
  text-align: center;
  border-radius: 8px;
}

.tech-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.specialty {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* .contact, .technicians { */
/* padding: 0 60px; */
/* } */
.contact a {
  color: var(--text-color);
  text-decoration: none;
}

.contact a:hover {
  color: var(--primary-color);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info p,
.hours ul {
  margin-bottom: 1rem;
}

.hours ul {
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--accent-color);
}

.hours span {
  font-weight: bold;
}

/* Map */
.map-container {
  margin-top: 3rem;
}

.map-container h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.map {
  /* width: 80%; */
  height: 600px;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
}

.static-map {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
}

/* Footer */
footer {
  background: transparent;
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .logo-image {
    height: 1.75rem;
    position: absolute;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
  }

  #about {
    width: 90%;
    font-size: 1em;
    margin: auto;
    p {
      margin: auto;
    }
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map {
    height: 300px;
  }

  .static-map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 15px;
    font-size: 1em;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo-image {
    height: 1.5rem;
    position: absolute;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-brand {
    gap: 0.5rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 0;
  }

  #about {
    width: 90%;
    font-size: 1em;
    margin: auto;
    p {
      margin: auto;
    }
  }

  .language-switcher .lang-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
}

.email, .phone {
  letter-spacing: -0.2ch;
}

img#BM {
  width: 15ch;
  margin:auto;
  vertical-align: center;
  border: 1px black solid;
  padding: 0.5ch;
  border-radius: 5px;
}

#error{
  margin: 10ch auto;
  width: 60%;
  text-align: center;
  img {
    width: 60%;
  }
}
/* .marker { */
  /* display: block; */
  /* border: none; */
  /* border-radius: 50%; */
  /* cursor: pointer; */
  /* padding: 0; */
  /* border: 3px solid */
  /* backdrop-filter: blur(2px); */
  /* box-shadow: 0 20px 1px rgba(255, 190, 87,0.5); */
/* } */
/* .rev { unicode-bidi: bidi-override; direction: rtl; } */

